PDA

View Full Version : help


bargie
08-16-2001, 08:18 PM
does anyone know if i can make say another signup page, but this one makes them an moderator automaticly, but dosen't asign them to a fourm, but so they can see invisable categories.

??

bargie

mjames
08-17-2001, 01:36 AM
So you're asking for the choice of having people sign-up and being automatically moved to a certain user group? That is actually a good idea...

bargie
08-17-2001, 07:49 AM
yeah can it be done?

bargie
08-17-2001, 07:36 PM
ok don't worry about this one! done it!

mjames
08-18-2001, 03:15 AM
Originally posted by bargie
ok don't worry about this one! done it!
How did you accomplish it? Please share.

bargie
08-18-2001, 08:27 AM
in the file register.php find the line $newusergroupid=2; it about ln 248 all you have to do is replace that number,
the ones i know

1=unregistered guest
2=normal user
3=coppa (i think)
4=moderated coppa i think
5=supper moderator
6=admin
7=moderator

this would then put them straight into the user group using the normal register page.

i however copyed the adultregister and adultsignup template and then renamed them to modsignup and modregister, then done a find and replace in register.php of "adult" to "mod" saved file as registermod.php went back into the custom templates and changed the register.php forms to registermod.php no problems as of yet, there probably is a quicker and better way to do this hack, and if anyone knows then post.

you may need to add stuff to make a coppa one. (more templates)

oh then made a link to the new file registermod.php?s=$session[sessionhash]&action=signup

happy hacking
hope it works