The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
user registration at FORUMHOME
hello,
i tried to add a mini User Registration field at my FORUMHOME, so that new users dont need to click on Register button. they can register simply from the index page. i used this code: HTML Code:
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center"> <tr> <td class="alt1" align="left"> <span class="smallfont"><script type="text/javascript" src="$vboptions[bburl]/clientscript/vbulletin_md5.js"></script> <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></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('$vbphrase[fill_out_both_password_fields]'); return false; } else if (password1.value != password2.value) { alert('$vbphrase[entered_passwords_do_not_match]'); return false; } else { <if condition="$show['coppa']"> pass_copy = password1.value; passconfirm_copy = password2.value; </if> var junk_output; md5hash(password1, document.forms.register.password_md5, junk_output, $show[nopasswordempty]); md5hash(password2, document.forms.register.passwordconfirm_md5, junk_output, $show[nopasswordempty]); <if condition="$show['coppa']"> document.forms.register.password.value = pass_copy; document.forms.register.passwordconfirm.value = passconfirm_copy; </if> return true; } return false; } </script> <form action="register.php?do=addmember" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="hidden" name="do" value="addmember" /> <input type="hidden" name="url" value="$url" /> <input type="hidden" name="agree" value="$agree" /> <input type="hidden" name="password_md5" /> <input type="hidden" name="passwordconfirm_md5" /> User name: <input type="text" class="bginput" name="username" maxlength="$vboptions[maxuserlength]" style="width:70px" /><br /> Password: <input type="password" class="bginput" name="password" size="25" maxlength="50" style="width:70px" /><br /> Confirm password: <input type="password" class="bginput" name="passwordconfirm" size="25" maxlength="50" style="width:70px" /><br /> Email: <input type="text" class="bginput" name="email" size="25" maxlength="50" dir="ltr" style="width:70px" /><br /> Confirm email: <input type="text" class="bginput" name="emailconfirm" size="25" maxlength="50" dir="ltr" style="width:70px" /><br /> $human_verify <br /> <input type="submit" class="button" value="Submit" accesskey="s" /> <input name="agree" id="cb_rules_agree" value="1" type="checkbox"><strong>Agree?</strong> </form> </span></td> </tr> </table> at the output it shows $human_verify instead of showing random question (i choose random question for human varifiction) whats the problem? can anyone help me plz |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|