Connect with Facebook
Go Back   vBulletin Setup > vBulletinSetup Information > Community Forum Management > Making Money Marketing vBulletin


Please Register to get full access to the forums.
Reply
 
LinkBack Thread Tools Display Modes
Old 12-03-2006, 09:11 PM   #1
Brent
Guest
 
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?
  Reply With Quote
Old 12-04-2006, 12:02 AM   #2
vBulletin Owner
 
Join Date: Oct 2006
Posts: 125
mike will become famous soon enough
Now, this is something I would be interested in.
mike is offline   Reply With Quote
Old 12-04-2006, 01:56 AM   #3
Brent
Guest
 
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
  Reply With Quote
Old 12-04-2006, 02:04 AM   #4
Brent
Guest
 
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> 
  Reply With Quote
Old 12-04-2006, 08:58 AM   #5
Nater
Guest
 
Posts: n/a
Nice. I knew it had to do something with that. I am changing that right now
  Reply With Quote
Old 12-04-2006, 12:17 PM   #6
vBulletin Owner
 
Join Date: Oct 2006
Posts: 125
mike will become famous soon enough
I like this. The less a visitor has to do when registering, the more likely they will be to complete the process.
mike is offline   Reply With Quote
Old 12-04-2006, 12:26 PM   #7
Brent
Guest
 
Posts: n/a
Updated my above post with the template
  Reply With Quote
Old 12-04-2006, 12:33 PM   #8
vBulletin Owner
 
Join Date: Oct 2006
Posts: 125
mike will become famous soon enough
Awesome, now it is even better. I have been wanting to simplify the registration for a long time.
mike is offline   Reply With Quote
Old 12-04-2006, 01:10 PM   #9
briansol
Guest
 
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.
  Reply With Quote
Old 12-04-2006, 01:11 PM   #10
Brent
Guest
 
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.
  Reply With Quote
Old 12-05-2006, 12:52 PM   #11
Brent
Guest
 
Posts: n/a
I have updated the template to reflect the changes recommended here: Simplify Registration Process in vBulletin
  Reply With Quote
Old 01-02-2007, 02:39 PM   #12
Get Shorty
Guest
 
Posts: n/a
I'd love to do this on my forum, but I need the birthday to be filled out, since I only allow users that are 18 or older...
  Reply With Quote
Old 01-02-2007, 11:04 PM   #13
Get Shorty
Guest
 
Posts: n/a
Well, I did it anyway, and just added a disclaimer that you must be 18 to register.
  Reply With Quote
Reply

Tags
accept, process, registration, removing, rules

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
Remove 'agree to forum rules' step from registration MaestroX vBulletin Hacks & Questions 11 11-07-2008 02:31 PM
Process of making sure backups work for your forum funkdoctorspock vBulletin Hacks & Questions 22 06-28-2008 04:26 PM
does anyone know of a accept hack? ukfg vBulletin Hacks & Questions 3 09-10-2007 10:24 AM


All times are GMT -6. The time now is 10:40 AM.

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