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:
2) In register.php replace this code:
with
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.
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')
PHP Code:
if ($who=="adult") {
eval("dooutput(\"".gettemplate("registeradult")."\");");
} else {
eval("dooutput(\"".gettemplate("registercoppa")."\");");
}
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")."\");");
}
}

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.

Comment