View Full Version : Quick Register Hack...
Lord Brar
November 13th, 2004, 09:03 AM
:p MY Biggest hack ever - Quick Register Form on the Forum Home
> The Code :
<table width="100%">
<tr><td class="thead">Quick Register</td></tr>
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<script type="text/javascript">
function verify_passwords(password1, password2)
{
// do various checks, this will save people noticing mistakes on next page
if (password1.value == '' || password2.value == '')
{
alert('Fill out both password fields');
return false;
}
else if (password1.value != password2.value)
{
alert('Entered passwords do not match');
return false;
}
else
{
md5hash(password1, document.forms.register.password_md5);
md5hash(password2, document.forms.register.passwordconfirm_md5);
return true;
}
return false;
}
</script>
<form action="register.php" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);">
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="addmember" />
<input type="hidden" name="url" value="index.php" />
<input type="hidden" name="agree" value="" />
<input type="hidden" name="password_md5" />
<input type="hidden" name="passwordconfirm_md5" />
<tr><td class="alt2" align="center"><span class="smallfont">
User Name:<br />
<input type="text" class="bginput" name="username" maxlength="15" value="" style="width:110px" />
<br />
Password:<br />
<input type="password" class="bginput" name="password" maxlength="15" value="" style="width:110px" />
<br />
Confirm Password:<br />
<input type="password" class="bginput" name="passwordconfirm" maxlength="15" value="" style="width:110px" />
<br />
Email Address:<br />
<input type="text" class="bginput" name="email" maxlength="50" value="" style="width:110px" />
<br />
Confirm Email Address:<br />
<input type="text" class="bginput" name="emailconfirm" maxlength="50" value="" style="width:110px" />
<br />
<input type="submit" class="button" value="Submit" accesskey="s" />
</span></td></tr>
</table>
Now put that template in the forumhome template...
:*( No, I don't know how to impliment image vertification in it...
Apply it and wait for a flood of new registrations. Good Luck!
Disjunto
November 13th, 2004, 10:49 AM
useful... but just seems a way to add 2000 more spam registrations to forums :| and you have missed out the IF conditionals so that will display to everyone :|
Lord Brar
November 13th, 2004, 12:53 PM
Ah yeah, I have the conditions on my site...
2. Have email verification on... tha would prevent your spam registrations ;)
DarkWarriorXII
November 13th, 2004, 04:19 PM
Nice hack. I'm gonna add this to my site.
Floris
November 13th, 2004, 11:41 PM
We should add this on our site too. :)
rex_b
November 14th, 2004, 12:19 AM
I get an error saying user has not accepted forum rules, cannot proceed.
rex_b
November 14th, 2004, 12:29 AM
OK I added the checkbox and made it a little more seamless and taking up a lot less space here:
<!-- Quick Register Box -->
<if condition="$show['guest']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="6"><div align="center"><phrase 1="$vboptions[bbtitle]">Quick
Register </phrase></div></td>
</tr>
<tr>
<td class="alt1" colspan="6"> <div align="center">
<span class="smallfont"><script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<script type="text/javascript">
function verify_passwords(password1, password2)
{
// do various checks, this will save people noticing mistakes on next page
if (password1.value == '' || password2.value == '')
{
alert('Fill out both password fields');
return false;
}
else if (password1.value != password2.value)
{
alert('Entered passwords do not match');
return false;
}
else
{
md5hash(password1, document.forms.register.password_md5);
md5hash(password2, document.forms.register.passwordconfirm_md5);
return true;
}
return false;
}
</script>
<form action="register.php" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);">
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="addmember" />
<input type="hidden" name="url" value="index.php" />
<input type="hidden" name="agree" value="" />
<input type="hidden" name="password_md5" />
<input type="hidden" name="passwordconfirm_md5" />
User Name:
<input type="text" class="bginput" name="username" maxlength="15" value="" style="width:70px" />
Password:
<input type="password" class="bginput" name="password" maxlength="15" value="" style="width:70px" />
Confirm Password
<input type="password" class="bginput" name="passwordconfirm" maxlength="15" value="" style="width:70px" />
Email
<input type="text" class="bginput" name="email" maxlength="50" value="" style="width:70px" />
Confirm Email
<input type="text" class="bginput" name="emailconfirm" maxlength="50" value="" style="width:70px" />
<br><input type="checkbox" name="agree" id="cb_rules_agree" value="1" /><strong>Check to Agree with <a href="register.php?">forum
rules </a></strong><br>
<input type="submit" class="button" value="Submit" accesskey="s" />
</span>
</div></td>
</tr>
</thead>
</table>
</if>
<!-- / Quick Register Box -->
example here: www.religiousforums.com/forum/ (http://www.religiousforums.com/forum/)
OneBigJoke
November 14th, 2004, 02:07 AM
Thank you for this, I will install it on my site. Cool stuff you made there.
Lord Brar
November 14th, 2004, 04:00 AM
Ok.. Here's the improved code which does not give errors ;) and shows only for guests :P
<if condition="$show['guest']">
<table width="100%">
<tr><td class="thead">Quick Register</td></tr>
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<script type="text/javascript">
function verify_passwords(password1, password2)
{
// do various checks, this will save people noticing mistakes on next page
if (password1.value == '' || password2.value == '')
{
alert('Fill out both password fields');
return false;
}
else if (password1.value != password2.value)
{
alert('Entered passwords do not match');
return false;
}
else
{
md5hash(password1, document.forms.register.password_md5);
md5hash(password2, document.forms.register.passwordconfirm_md5);
return true;
}
return false;
}
</script>
<form action="register.php" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);">
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="addmember" />
<input type="hidden" name="url" value="index.php" />
<input type="hidden" name="agree" value="1" />
<input type="hidden" name="password_md5" />
<input type="hidden" name="passwordconfirm_md5" />
<tr><td class="alt2" align="center"><span class="smallfont">
User Name:<br />
<input type="text" class="bginput" name="username" maxlength="15" value="" style="width:110px" />
<br />
Password:<br />
<input type="password" class="bginput" name="password" maxlength="15" value="" style="width:110px" />
<br />
Confirm Password:<br />
<input type="password" class="bginput" name="passwordconfirm" maxlength="15" value="" style="width:110px" />
<br />
Email Address:<br />
<input type="text" class="bginput" name="email" maxlength="50" value="" style="width:110px" />
<br />
Confirm Email Address:<br />
<input type="text" class="bginput" name="emailconfirm" maxlength="50" value="" style="width:110px" />
<br />
<input type="submit" class="button" value="Submit" accesskey="s" />
</span></td></tr>
</table>
</if>
Good Luck! :)
reteep
November 14th, 2004, 04:22 PM
Quite nice, I guess I'll add this to my site, too. Thanks!
Floris
November 14th, 2004, 07:50 PM
Thank you for the update! :)
HiDeo
November 15th, 2004, 01:30 AM
Installed on my forum, thanks !
OneBigJoke
November 18th, 2004, 01:28 AM
Argh, I totally missed the update, but thank you for it. haha. (/me applies it again)
Zacharicus
November 20th, 2004, 03:16 AM
That's great stuff! Hope it helps on registrations. Doesn't get any easier than that at least!
Example: www.intelligencenetwork.net
teamrocketman
December 14th, 2004, 03:32 AM
Uh, okay, there are a few problems I see with this... how do I get my members to be bound by my tos?
ambumann
December 14th, 2004, 03:36 AM
Nice hack, I might just add it! :)
Nick0r
December 19th, 2004, 12:08 AM
This worked great, improved my registrations rates quite a bit.
teamrocketman
December 19th, 2004, 04:42 PM
I just found an idea!
Lord Brar
December 25th, 2004, 12:30 PM
Uh, okay, there are a few problems I see with this... how do I get my members to be bound by my tos?
sorry for being soooooo late to reply :P
Use Rex's version on previous page for it :)
Pitbull FM
December 27th, 2004, 03:09 PM
Mind if I rerelease this with Hive Mail Inagration added for those of us that offer hivemail too?
Lord Brar
December 27th, 2004, 03:14 PM
Mind if I rerelease this with Hive Mail Inagration added for those of us that offer hivemail too?
Well, I haven't released this stuff anywhere else other than this site just cos I don't have any time to support it actively [Not that it needs any support ;) But still... ].
Feel free to do it. And feel free to even release it at any other site you wish like. ;) A credit / link to spamup.com would be really appreciated :P
Good Luck!
teamrocketman
December 28th, 2004, 12:54 AM
Great idea, but I was thinking about making it disabled until you check the "I agree to forums terms" box. Meh, you can just find that on www.dynamicdrive.com
vau7
January 19th, 2005, 01:37 PM
NoI have a Problem with Rex_B's Version (http://www.vBulletin-Fans.com/showpost.php?p=75519&postcount=7), especially the Checkbox.
I've tested to registering without checking the box and it works . :-(
How change it that the box must be checked?
If not checked it must redirect to register_not_agreed
Here is mine:
<!-- Quickreg --><if condition="$show['guest']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="6"><div align="left"><phrase 1="$vboptions[bbtitle]">Einwohnermeldeamt</phrase></div></td>
</tr>
<tr>
<td class="alt1" colspan="6"> <div align="center"><phrase 1="$vboptions[bbtitle]"><table width="100%">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<script type="text/javascript">
function verify_passwords(password1, password2)
{
// do various checks, this will save people noticing mistakes on next page
if (password1.value == '' || password2.value == '')
{
alert('Das Passwort bitte zwei mal eingeben.');
return false;
}
else if (password1.value != password2.value)
{
alert('Die Geheimwörter stimmen nicht überein.');
return false;
}
else
{
md5hash(password1, document.forms.register.password_md5);
md5hash(password2, document.forms.register.passwordconfirm_md5);
return true;
}
return false;
}
</script>
<form action="register.php" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);">
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="addmember" />
<input type="hidden" name="url" value="index.php" />
<input type="hidden" name="agree" value="" />
<input type="hidden" name="password_md5" />
<input type="hidden" name="passwordconfirm_md5" />
<tr>
<td align="center" class="alt2"><span class="smallfont">Insulanername:
<input type="text" class="bginput" name="username" maxlength="15" value="" style="width:110px" />
<br />
Geheimwort:
<input type="password" class="bginput" name="password" maxlength="15" value="" style="width:110px" />
Bestätige Geheimwort:
<input type="password" class="bginput" name="passwordconfirm" maxlength="15" value="" style="width:110px" />
<nobr />
Flaschenpost:
<input type="text" class="bginput" name="email" maxlength="50" value="" style="width:110px" />
Bestätige Flaschenpost:
<input type="text" class="bginput" name="emailconfirm" maxlength="50" value="" style="width:110px" />
<nobr /><br><label for="cb_rules_agree"><input type="checkbox" name="agree" id="cb_rules_agree" value="1" /><strong>Ich habe die Forenregeln von Board-insel.de gelesen und bin damit einverstanden.</strong></label>
</span><br>
<input type="submit" class="button" value="Submit" accesskey="s" />
</span>
</td>
</tr>
</table></phrase>
</div></td>
</tr>
</thead>
</table>
</if>
<!-- / Quickreg -->
OneBigJoke
January 27th, 2005, 09:09 PM
I can't wait for a revised version with optimized templates and everything cool requested for 3.0.6 and words in phrases, etc.
PLEASE make it?
Lord Brar
January 28th, 2005, 12:31 AM
NoI have a Problem with Rex_B's Version (http://www.vBulletin-Fans.com/showpost.php?p=75519&postcount=7), especially the Checkbox.
I've tested to registering without checking the box and it works . :-(
How change it that the box must be checked?
If not checked it must redirect to register_not_agreed
Here is mine:
<!-- Quickreg --><if condition="$show['guest']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="6"><div align="left"><phrase 1="$vboptions[bbtitle]">Einwohnermeldeamt</phrase></div></td>
</tr>
<tr>
<td class="alt1" colspan="6"> <div align="center"><phrase 1="$vboptions[bbtitle]"><table width="100%">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<script type="text/javascript">
function verify_passwords(password1, password2)
{
// do various checks, this will save people noticing mistakes on next page
if (password1.value == '' || password2.value == '')
{
alert('Das Passwort bitte zwei mal eingeben.');
return false;
}
else if (password1.value != password2.value)
{
alert('Die Geheimwörter stimmen nicht überein.');
return false;
}
else
{
md5hash(password1, document.forms.register.password_md5);
md5hash(password2, document.forms.register.passwordconfirm_md5);
return true;
}
return false;
}
</script>
<form action="register.php" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);">
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="addmember" />
<input type="hidden" name="url" value="index.php" />
<input type="hidden" name="agree" value="" />
<input type="hidden" name="password_md5" />
<input type="hidden" name="passwordconfirm_md5" />
<tr>
<td align="center" class="alt2"><span class="smallfont">Insulanername:
<input type="text" class="bginput" name="username" maxlength="15" value="" style="width:110px" />
<br />
Geheimwort:
<input type="password" class="bginput" name="password" maxlength="15" value="" style="width:110px" />
Bestätige Geheimwort:
<input type="password" class="bginput" name="passwordconfirm" maxlength="15" value="" style="width:110px" />
<nobr />
Flaschenpost:
<input type="text" class="bginput" name="email" maxlength="50" value="" style="width:110px" />
Bestätige Flaschenpost:
<input type="text" class="bginput" name="emailconfirm" maxlength="50" value="" style="width:110px" />
<nobr /><br><label for="cb_rules_agree"><input type="checkbox" name="agree" id="cb_rules_agree" value="1" /><strong>Ich habe die Forenregeln von Board-insel.de gelesen und bin damit einverstanden.</strong></label>
</span><br>
<input type="submit" class="button" value="Submit" accesskey="s" />
</span>
</td>
</tr>
</table></phrase>
</div></td>
</tr>
</thead>
</table>
</if>
<!-- / Quickreg -->
I am not able to connect to Rex using AIM... I'll try to point him to this post and see if it can help!
I can't wait for a revised version with optimized templates and everything cool requested for 3.0.6 and words in phrases, etc.
PLEASE make it?
I'll try it as soon as I upgrade to 3.0.6 (I am just patched till now :) )
Floris
February 26th, 2005, 10:30 PM
What happens if you have image verification turned on?
And is it possible to do this with only 1 input field for pass/mail ?
So you can do:
Name:____
Pass:_____
Mail:_____
[ ] I agree to the TOS
[register!button]
(TOS is actually a link to the tos url)
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.