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.
I installed the hack, following the directions exactly since this is one of the things I needed most and it looked pretty simple... (I'm brand new to vB, to scripting as well...) This is my second attempt at installing a hack and the first failed as well... I think I'm probably missing something pretty basic... I installed MyphpAdmin and ran the query... went to the file on the server and changed the code in step 2... Created the new template and copied the code to it... went to a different machine and killed all cookies and went to log in as new user... It gave me the basic same old registration screen... Question 2 is; once I get this up, how can I hide the question about the time zone and make it default to my choice? All my users live in same town... The server is actually set so if user doesn't make any choice they're good to go... 3rd... will custom questions added on that normally show up at bottom of regular template show up on bottom of this? TIA
Use hidden form fields. For example, instead of this:
Code:
<tr>
<td bgcolor="{secondaltcolor}"><normalfont><b>Use 'Email Notification' by default</b></normalfont><br>
<smallfont>Using this option emails you whenever someone replies to a thread that you have participated in.</smallfont></td>
<td bgcolor="{secondaltcolor}"><normalfont>
<input type="radio" name="[high]emailnotification[/high]" value="yes" checked> yes
<input type="radio" name="[high]emailnotification[/high]" value="no" > no
</normalfont></td>
</tr>