putting RSS in a block!!

hey i am totally new to this drupal thing..plz help me out in putting RSS feeds into a block

One user, multiple personas

I'm trying to setup an otherwise fairly simple social networking site (profiles, blogs, forums or groups) where a single user can have multiple personas or profiles. I'm not looking for something that makes it easy for people to create sock puppets, but rather for people to have different profiles and nicknames related to different interests. Dogster.com/Catster.com are good examples of sites that do this, where each account can have several cats and dogs assigned to it and each animal has it's own profile and posts as itself to blogs and forums. Yahoo makes it easy to have and switch between multiple profiles, but it's not transparent that two profiles belong to the same person (in fact, I'm not sure that an outside user can tell.) I see this as useful for those of us who wear multiple hats (the vast majority of people who read my Middle Eastern culture column are not interested in my opinions on system administration and I know several people who have multiple myspace or youtube profiles because their interests are so divergent that otherwise people get lost in the stuff they don't care about) or for a family site where each family has it's own account (created by an adult) but each child can have their own profile and post as themselves from within that account.

Cron error when run as cron, cron.php runs fine when called separately

My cron.php file runs just fine when I call it via www.swduncan.org/cron.php, but when I try to run the file with php in crontab I get:

Warning: main(./includes/bootstrap.inc): failed to open stream: No such file or directory in /mnt/gs01/herd02/13637/domains/swduncan.org/html/cron.php on line 9

Warning: main(): Failed opening './includes/bootstrap.inc' for inclusion (include_path='.:/usr/local/php-4.4.7-1/share/pear') in /mnt/gs01/herd02/13637/domains/swduncan.org/html/cron.php on line 9

htaccess breaks my code - how do I neutralize it in a directory?

I've got a password generation system that I'm using from another (pre-Drupal) site that I developed. The trouble is it won't work unless I disable Drupal's default htaccess file that's sitting in the directory above it.

How can I 'cancel' this .htaccess file so that the settings aren't inherited by this particular directory?

Many thanks

Ian

Inlcuding php files

Hi.

I have some php files that I would like all pages on my site to include. Do I have to cut'n'paste them into the content of each of my pages? I've tried putting the line
include "beth.php" ;
into my content, and also tried it with the full pathname, but when I try to use the classes defined in them it tells me that the classes are non-existent.

I've also tried uploading them as attatched files, but it still doesn't work. Any suggestions please?

Re-display Multi-Select List with All previously Selected Values

Hi,

I've used a multi-select text select list( called 'course prerequisites') in a CCK content type (to create a new course) that I created. 'course prerequisites' is a list by title of all existing courses. The user selects multiple values. When the course is edited, this multi-select text select list is shown as last saved....that is the entire list of course titles with highlighted values.

I' ve been trying to do this in a custom node module.

I've been able to automatically populate 'course prerequisites' with the title of all existing courses.

I've been able to create individual records in a table, prereqs(col1 --> nid, col2 --> prereqs) , for each value selected from the multi-select select list, 'course prerequisites'.

However, I've NOT been able to display the multi-select text select list as I would like.(...all course titles with the previously selected titles highlighted) when the node is in edit mode. Only the first item selected from the list is shown highlighted.

How do I do this ? I've been modifying node_load as shown below

function todo_load($node) {
   
   $t = db_fetch_object(db_query('SELECT course_title FROM {prereqs} WHERE nid = %d', $node->nid));

 return $t; 
}

Obviously, only data items for the current node is retrieved.....and included in $node for display...

Ive tried this.....doesn't work..

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x