Version: , by Admin (Coder)
Developer Last Online: Nov 2024
Version: 2.2.x
Rating:
Released: 09-11-2001
Last Update: Never
Installs: 22
No support by the author.
This hack will let you select whether to use a lite registration page or not, directly from the admin control panel.
Using this will make your page look like this (with the header and footer of course):
Requested by inetd and so many more.
Pretty simple really:
1) Run this query using Telnet or phpMyAdmin:
Code:
INSERT INTO setting VALUES (NULL,6,'Use lite registration page?','litereg','0','Using this option will only display required fields for users when signing up.','yesno','18')
2) In register.php replace this code:
PHP Code:
if ($who=="adult") {
eval("dooutput(\"".gettemplate("registeradult")."\");");
} else {
eval("dooutput(\"".gettemplate("registercoppa")."\");");
}
with
PHP Code:
if ($who=="adult") {
if ($litereg) {
eval("dooutput(\"".gettemplate("registerlite")."\");");
} else {
eval("dooutput(\"".gettemplate("registeradult")."\");");
}
} else {
if ($litereg) {
eval("dooutput(\"".gettemplate("registerlite")."\");");
} else {
eval("dooutput(\"".gettemplate("registercoppa")."\");");
}
}
3) Add a new template named registerlite and use the file I attached for its contents (template done by kier ).
That's it. Now you'll have an option for this in your options page, under "User and registration options".
Hope you like this, please feedback.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Hey FireFly...possible addition/feature that may be cool to see(if nobody already asked, or it doesn't do it)
if it's set for it to use lite registration....then any users who signed up using lite registrations(which requires just email, username, and password I assume) those users would get a popup, or a PM informing them to update their profile info(icq, aim, msn, etc, etc, etc)
after checking the regular registrationtemplate and noticing the difference.
Will this be all that I need to do to make sure the default is set to yes for receiving email from admins again?
One question: My forums will only be targeting people on CET (Central European Time) - is this all I have to do to set this as a hidden value (CET as standard):
AWESOME Hack. One question, how can you use the image verification with this. If you have it enabled it dosn't show up and tells you that the image is wrong.
Yes, could someone get this to work with image verification please? I would also like to make it so only the username, password, and email fields are required to be completed. Could someone post the template contents to achieve this?