PDA

View Full Version : problem with new registrations...


Tryfwar
12-23-2002, 05:25 PM
I have a problem in that when new users register they are automaticly sent to usergroupid=2 which i initially setup as Members.

I need them to be automaticly sent to usergroupid=15 which is my Guest usergroup.

So i ended up enabling the 'Moderate New Members' option in the options. I then have to accept each member 1 at a time and very quickly revert their usergorup from 2 to 15 :(

Anyone know what i can do as a quick fix to make it so that new registerd users automaticly goto the Guest ID please ? :)

Dean C
12-23-2002, 05:52 PM
This is not tested btw

In register.php find:


$newusergroupid=2;


Replace it with:


$newusergroupid=15;


Find:


$usergroup=$DB_site->query_first("SELECT usertitle FROM usergroup WHERE usergroupid=2");


Replace it with:


$usergroup=$DB_site->query_first("SELECT usertitle FROM usergroup WHERE usergroupid=15");


Find:


$DB_site->query("UPDATE user SET usergroupid=2$dotitle WHERE userid='$u'");


Replace with:


$DB_site->query("UPDATE user SET usergroupid=15$dotitle WHERE userid='$u'");


Regards

- miSt

Tryfwar
12-23-2002, 07:46 PM
Gonna try it now, thanks Mist :)

Tryfwar
12-23-2002, 08:12 PM
woot, it worked! Thanks for that :)

The above worked fine now that i have disabled moderation of new members. When moderation of new members was still enabled after the above mods and i accepted the 2-3 new members, they still seemed to fall into the id=15 usergroup ! :(

I intend not to use moderation again but was just puzzled by this as i couldn't find any more refrences to userid=2 *shrug*

Dean C
12-24-2002, 04:08 PM
Hehe yea i just found all references to usegroupid 2 :p