Will it work on a forum you DO allow guest posting? And can the page be reduced to a simpler and quicker registration form - only name, password/password verify, email/email verify, additional required fields and human verify - and a login form.
My idea was to provide room for text that "sells" the visitor on the benefits of registration. It's a great place to put it, since the error page comes up every time a visitor (or a member who does not have proper permissions) tries to do anything on the forum they don't have permission to do. The regular error message is no kind of enticement and the long form registration is too daunting. I want to make is quick and easy to register, yet still give them the opportunity to use the long form if they want.
I appreciate you testing this out. I believe it could be a great asset to any forum that wants to turn visitors into members.
Best R'gards,
Jim
--------------- Added [DATE]1281681230[/DATE] at [TIME]1281681230[/TIME] ---------------
PS: Here's the code I put together for the STANDARD_ERROR template:
Code:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<if condition="$show['search_noindex']"><meta name="robots" content="noindex,follow" /></if>
$headinclude
<title>$vboptions[bbtitle] - A Message From The Administrator</title>
<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>
$headinsert
</head>
<body>
$header
<if condition="$navbar">
$navbar
<else />
<br /><br /><br />
</if>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2">$vbphrase[vbulletin_message]</td>
</tr>
<tr>
<td class="panelsurround" align="left">
<div class="panel">
<div align="$stylevar[left]">
<if condition="$show['permission_error']">
<!-- Quick Login -->
<div style="float:right; width:320px; padding-top:40px;">
<div align="$stylevar[left]">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<input type="hidden" name="do" value="login" />
<input type="hidden" name="url" value="/community" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
$postvars
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<fieldset class="fieldset">
<legend>$vbphrase[log_in]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" align="center">
<tr>
<td>$vbphrase[username]:<br /><input type="text" class="bginput" name="vb_login_username" size="30" accesskey="u" tabindex="1" /></td>
</tr>
<tr>
<td>$vbphrase[password]:<br /><input type="password" class="bginput" name="vb_login_password" size="30" tabindex="1" /></td>
</tr>
<tr>
<td>
<span style="float:$stylevar[right]"><a href="login.php?$session[sessionurl]do=lostpw">Forgot Password?</a></span>
<label for="cb_cookieuser"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser" tabindex="1" />Remember Me</label>
</td>
</tr>
<tr>
<td align="$stylevar[right]">
<input type="submit" class="button" value="$vbphrase[log_in]" accesskey="s" tabindex="1" />
<input type="reset" class="button" value="Reset" accesskey="r" tabindex="1" />
</td>
</tr>
</table>
</fieldset>
</form>
</div>
</div>
<!-- /Quick Login -->
<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" />
<if condition="!$show['birthday']">
<input type="hidden" name="day" value="$day" />
<input type="hidden" name="month" value="$month" />
<input type="hidden" name="year" value="$year" />
</if>
<if condition="$show['coppa']">
<input type="hidden" name="coppauser" value="1" />
</if>
<div class="smallfont" style="margin-bottom:$stylevar[formspacer]px;width:60%;">
<div>$vbphrase[custom_permission_error]</div>
<div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
<strong>$vbphrase[username]</strong>:<br />
<input class="bginput" id="regusername" type="text" name="username" size="50" maxlength="$vboptions[maxuserlength]" value="$username" />
</div>
<fieldset class="fieldset">
<legend>Enter a Password For Your Account</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="400">
<tr>
<td>
$vbphrase[password]:<br />
<input type="password" class="bginput" name="password" size="25" maxlength="50" value="$password" />
</td>
<td>
$vbphrase[confirm_password]:<br />
<input type="password" class="bginput" name="passwordconfirm" size="25" maxlength="50" value="$passwordconfirm" />
</td>
</tr>
</table>
</fieldset>
<fieldset class="fieldset">
<legend>A Real Email Address is Required</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="300">
<tr>
<td>
$vbphrase[email_address]:<br />
<input type="text" class="bginput" name="email" size="25" maxlength="50" value="$email" dir="ltr" />
</td>
<td>
$vbphrase[confirm_email_address]:<br />
<input type="text" class="bginput" name="emailconfirm" size="25" maxlength="50" value="$emailconfirm" dir="ltr" />
</td>
</tr>
</table>
</fieldset>
<if condition="$show['customfields_profile']">
<fieldset class="fieldset">
<legend>Additional Required Information</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="300">
<tr>
<td>$customfields_profile</td>
</tr>
</table>
</fieldset>
</if>
$human_verify
<if condition="$show['birthday']">$birthdayfields</if>
<div style="margin:6px 0;" align="center">
$eznloptinbox
<input name="agree" id="cb_rules_agree" type="submit" class="button" value="Submit" accesskey="s" title="Please read the rules before clicking" />
<strong>Clicking Submit Means You Read and Agree to <a target="_blank" href="$vboptions[bburl]/faq.php">The Forum Rules</a>.</strong>
</div>
</div>
</form>
<else />
<!-- main error message -->
<div style="margin: 10px">$errormessage</div>
<!-- / main error message -->
</if>
</div>
</div>
</td>
</tr>
</table>
$footer
</body>
</html>