Go Back   vBulletin Setup > vBulletinSetup Information > Making Money Marketing vBulletin > vBulletin Programming & Coding


Please Register to get full access to the forums.
Post New Thread  Reply



#1   12-03-2006, 09:11 PM
Posts: n/a
Removing the accept rules from Registration process.


Hi,

I want to remove the part of registration where you are required to accept the rules of the forum before being show the actual registration page. When someone clicks register I want them to be taken directly to the registration page and not have to accept the rules. How do I go about doing this?
Quote   |  



#2   12-04-2006, 12:02 AM
mike will become famous soon enough Join Date: Oct 2006 Posts: 125


Now, this is something I would be interested in.
Quote   |  



#3   12-04-2006, 01:56 AM
Posts: n/a


I have simplified my Registration page drastically and this is the only thing holding me back. You can check it out here: Mustang Evolution - Registration
Quote   |  



#4   12-04-2006, 02:04 AM
Posts: n/a


I got it :cool:

To do this in register.php find:
PHP Code:
if (empty($_REQUEST['do']) AND $vbulletin->GPC['a'] == '')
{
    
$_REQUEST['do'] = 'signup';

Replace with:
PHP Code:
if (empty($_REQUEST['do']) AND $vbulletin->GPC['a'] == '')
{
    
$_REQUEST['do'] = 'register';

Find:
PHP Code:
    if (!$vbulletin->GPC['agree'])
    {
        eval(
standard_error(fetch_error('register_not_agreed'$vbulletin->options['forumhome'], $vbulletin->session->vars['sessionurl_q'])));
    } 
and delete it

There you go done.

If you want to simplify it even further you can use this template code to remove everything but the Username, Password, Email and Referrer field:

HTML Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head>
$headinclude
<title>$vboptions[bbtitle] - <if condition="$show['coppa']">$vbphrase[coppa] </if>$vbphrase[registration]</title> </head> <body>

$header

<br /> <table cellpadding="2" cellspacing="0" border="0" width="100%" align="center"> <tr> <td> <if condition="$show['coppa']">
			$vbphrase[until_receive_signed_form]
		</if> </td> </tr> <if condition="$show['errors']"> <tr> <td><strong>$vbphrase[errors_occurred_during_registration]:</strong> <ul>
			$errorlist
			</ul> </td> </tr> </if> </table> <br /> <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="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" /> <input type="hidden" name="options[adminemail]" value="1" id="cb_adminemail" /> <input type="hidden" name="options[showemail]" value="1" id="cb_showemail" /> <input type="hidden" name="timezoneoffset" id="sel_timezoneoffset" value="$timezonesel" /> <input type="hidden" name="dst" id="sel_dst" value="2" /> <if condition="!$show['birthdays']"> <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> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat"><phrase 1="$vboptions[bbtitle]">$vbphrase[register_at_x]</phrase></td> </tr> <tr> <td class="panelsurround" align="center"> <div class="panel"> <div style="width:$stylevar[formwidth]" align="$stylevar[left]"> <fieldset class="fieldset"> <legend>$vbphrase[username]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="400"> <tr> <td>Choose a Username</td> </tr> <tr> <td> <input type="text" class="bginput" name="username" size="50" maxlength="$vboptions[maxuserlength]" value="$username" /> </td> </tr> </table> </fieldset> <fieldset class="fieldset"> <legend>$vbphrase[password]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="400"> <tr> <td colspan="2">$vbphrase[enter_password_for_account]</td> </tr> <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>$vbphrase[email_address]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="400"> <tr> <td colspan="2">$vbphrase[enter_valid_email_address]</td> </tr> <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> <if condition="$show['coppa']"> <tr> <td>$vbphrase[if_under_13_provide_parent]</td> </tr> <tr> <td>
						$vbphrase[parent_guardian_email]:<br /> <input type="text" class="bginput" name="parentemail" size="25" maxlength="50" value="$parentemail" dir="ltr" /> </td> </tr> </if> </table> </fieldset> <if condition="$show['referrer']"> <fieldset class="fieldset"> <legend>$vbphrase[referrer]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%"> <tr> <td><phrase 1="$vboptions[bbtitle]">$vbphrase[if_referred_enter_name]</phrase></td> </tr> <tr> <td>
						$vbphrase[referrer]:<br /> <div id="referrerfield"><input id="referrerfield_txt" type="text" class="bginput" name="referrername" value="$referrername" size="50" maxlength="250" /></div> <if condition="$show['popups']"> <div id="referrerfield_menu" class="vbmenu_popup" style="display:none; z-index:50"></div> <script type="text/javascript" src="clientscript/vbulletin_ajax_namesugg.js?v=$vboptions[simpleversion]"></script> <script type="text/javascript"> <!--
								vbmenu_register('referrerfield', true);
								rnc = new vB_AJAX_NameSuggest('rnc', 'referrerfield_txt', 'referrerfield');
								rnc.allow_multiple = false;
							//--> </script> </if> </td> </tr> </table> </fieldset> </if>
			$imagereg
			
		</div> </div> <div style="margin-top:$stylevar[cellpadding]px"> <input type="submit" class="button" value="$vbphrase[complete_registration]" accesskey="s" /> <input type="reset" class="button" name="Reset" value="$vbphrase[reset_fields]" /> </div> </td> </tr> </table> </form>

$footer

</body> </html>
Quote   |  



#5   12-04-2006, 08:58 AM
Posts: n/a


Nice. I knew it had to do something with that. I am changing that right now
Quote   |  



#6   12-04-2006, 12:17 PM
mike will become famous soon enough Join Date: Oct 2006 Posts: 125


I like this. The less a visitor has to do when registering, the more likely they will be to complete the process.
Quote   |  



#7   12-04-2006, 12:26 PM
Posts: n/a


Updated my above post with the template
Quote   |  



#8   12-04-2006, 12:33 PM
mike will become famous soon enough Join Date: Oct 2006 Posts: 125


Awesome, now it is even better. I have been wanting to simplify the registration for a long time.
Quote   |  



#9   12-04-2006, 01:10 PM
Posts: n/a


one thing you might want to do, is to still display the rules somewhere, maybe in a link, or under the regi form.

it may save your a$$ should a legal issue come up.
Quote   |  



#10   12-04-2006, 01:11 PM
Posts: n/a


Quote:
Originally Posted by briansol View Post
one thing you might want to do, is to still display the rules somewhere, maybe in a link, or under the regi form.

it may save your a$$ should a legal issue come up.
I am redoing the rules as I type this.
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > Making Money Marketing vBulletin > vBulletin Programming & Coding


Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Process of making sure backups work for your forum funkdoctorspock vBulletin Questions 22 06-28-2008 04:26 PM
does anyone know of a accept hack? ukfg vBulletin Hacks - Modifications 3 09-10-2007 10:24 AM
Remove 'agree to forum rules' step from registration MaestroX Released vBulletin Hack 10 04-24-2007 07:47 PM


All times are GMT -6. The time now is 01:27 AM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions, vBulletin Skins, Styles, Templates
vBulletin Hacks / Modifications, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory