Drupal is up and running but how do I ...?

Help? Ordered Taxonomy

I have looked around and don't see a module to accomplish this - but with all of them out there, it's possible I'm just not seeing the right combination of settings.

I want a taxonomy to have a specific ordering and nodes within it to have a specific ordering. To say, Node A has a link for (next) that leads to Node B, etc. And Taxonomy 1 has a link (next) that leads to Taxonomy 2. These links should appear in the links section at the end of each node.

og_galleries setup errors

installed og_galleries (along with the required modules)

i go to admin/settings/og_galleries and get:

* warning: ksort() expects parameter 1 to be array, null given in /home/matthew/webroot/springbreak-hookup.com/webroot/modules/og_galleries/og_galleries.module on line 439.
* warning: Invalid argument supplied for foreach() in /home/matthew/webroot/springbreak-hookup.com/webroot/includes/form.inc on line 655.

i DO see that i'm supposed to setup a "Views View"; however, I'm a little lost on what that means....

More user info

So I added an extra table to my db to hold some other user info (i.e. firstname,lastname ...) ... I am trying to use hook_user but I have some questions:

1) Do I use hook_alter_form to add my extra form fields? or hook_user(op="form")? If the latter, how exactly? If the former, how do I set the pre-set values when the user goes to edit his/her profile?

2) For the moment I am using hook_alter_form ... when I do this, all my extra info gets stored in the users tbl (data field) why? I thought that if I just cleared that extra info in my hook_user(op=save) handler (see below) then that wouldn't happen


function ds_save_user($edit, $user, $category){

// create unix timestamp for bday
$birthday = mktime(0,0,1,$edit['month'],$edit['day'],$edit['year']);

// check if user exists in user_info tbl
$query = "SELECT uid FROM {users_info} WHERE uid=%d";

if(db_result(db_query($query,$edit['uid']))){
// UPDATE
$query = "UPDATE {users_info} SET firstname='%s',lastname='%s',gender='%s',birthday= %d,zip='%s' WHERE uid=%d";
$result = db_query($query,$edit['firstname'],$edit['lastname'],$edit['gender'],$birthday,$edit['zip'],$edit['uid']);
}else{
// INSERT NEW
$query = "INSERT INTO {users_info} (uid,firstname,lastname,gender,birthday,zip) VALUES (%d,'%s','%s','%s',%d,'%s')";
$result = db_query($query,$edit['uid'],$edit['firstname'],$edit['lastname'],$edit['gender'],$birthday,$edit['zip']);

PHP Link Exchange Script that works with Drupal

Just curious if anyone can recommend a link exchange script that will work with Drupal CMS.

Thanks.

ini_set()

First of all hi to everybody, now let's get to the point.

My webhost doesn't allow me to use the ini_set() function. I have no idea what this function does because I don't know anything about PHP (that's why I got Drupal).

What's going to happen if I remove this? (it doesn't work anyways, so there's no point in keeping it)

Thanx in advance,
Ankur Sethi

PS : I can just remove the function and get on with it, but I just wanted to know, so....

Order of images (nodes) in image gallery

Hello

I am using "image gallery" and import images with "image_import".
Is there a way to change sorting order of displayed images (nodes), for example with sorting by node name? The current approach with time stamps is quite invonvenient when I want to add images later to an existing gallery.

Thanks for any help
Andre

Pages

Subscribe with RSS Subscribe to RSS - Post installation