The Arcive of vBulletin Modifications Site. |
|
Bypass registration rules and add to signup page Details »»
|
|||||||||||||||||||||||||||
|
Bypass registration rules and add to signup page
Developer Last Online: Dec 2011
Description: This mod will remove the first step of the registration process that asks a user to agree to the forum rules, and add it to the following registration page where a user normally chooses a username. All steps (except coppa) will now be available as a single-page signup for users.
Tested & Working on 3.6.10 and 3.7.3 PL1 INSTALLATION INSTRUCTIONS: 1. Download product-moverules.xml from this thread. 2. Go to Admincp -> Manage Products -> Add/Import Product to import this product. 3. Edit template register. FIND Code:
$customfields_other Code:
<fieldset class="fieldset">
<legend>$vbphrase[forum_rules]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td>$vbphrase[to_proceed_must_agree]</td>
</tr>
<tr>
<td>
<div class="page" style="border:thin inset; padding:$stylevar[cellpadding]px;<if condition="!is_browser('konqueror')"> height:175px; overflow:auto</if>">
<if condition="$show['coppa']">
<!-- coppa regulations -->
<p><strong>$vbphrase[coppa_policy]</strong></p>
<phrase 1="$vboptions[bbtitle]" 2="$vboptions[forumhome].php$session[sessionurl_q]" 3="register.php?$session[sessionurl]do=coppaform" 4="$vboptions[webmasteremail]">$vbphrase[coppa_rules_description]</phrase>
<!-- / coppa regulations -->
</if>
<!-- regular forum rules -->
<phrase 1="$vboptions[forumhome].php$session[sessionurl_q]" 2="$vboptions[bbtitle]">$vbphrase[forum_rules_description]</phrase>
<!-- regular forum rules -->
</div>
<div><label for="cb_rules_agree"><input type="checkbox" name="agreebypass" id="cb_rules_agree" value="1" /><strong><phrase 1="$vboptions[bbtitle]">$vbphrase[read_agree_abide_by_rules]</phrase></strong></label></div>
</td>
</tr>
</table>
</fieldset>
Attached image: The registration process will bring you directly to this page with the registration rules embedded in it. Show Your Support
|
|||||||||||||||||||||||||||
| Благодарность от: | ||
| Dr.CustUmz | ||
| Comments |
|
#2
|
|||
|
|||
|
Thanks :-)
Just what I needed. |
|
#3
|
||||
|
||||
|
Glad you like it. Thanks for the install!
|
|
#4
|
|||
|
|||
|
I didn't check properly. It doesn't work on my forum (3.8.0 rc1). No matter if I check the box I land on a "You didn't accept rules" page. Any idea what may be wrong?
|
|
#5
|
||||
|
||||
|
My bad.
Change this in the template edit: Code:
<div><label for="cb_rules_agree"><input type="checkbox" name="agree" id="cb_rules_agree" value="1" /><strong><phrase 1="$vboptions[bbtitle]">$vbphrase[read_agree_abide_by_rules]</phrase></strong></label></div> Code:
<div><label for="cb_rules_agree"><input type="checkbox" name="agreebypass" id="cb_rules_agree" value="1" /><strong><phrase 1="$vboptions[bbtitle]">$vbphrase[read_agree_abide_by_rules]</phrase></strong></label></div> |
|
#6
|
|||
|
|||
|
Thanks. Everything works fine.
|
|
#7
|
|||
|
|||
|
This mod stopped working in 3.8. Anyway to get this working again?
|
|
#8
|
||||
|
||||
|
I'd also love to get this for 3.8 if possible?
|
|
#9
|
|||
|
|||
|
I had to make a super-fast-and-dirty hack to make this work again. This is a core file change, so don't do it unless you're fine doing it before every upgrade:
In register.php find this: PHP Code:
PHP Code:
|
|
#10
|
||||
|
||||
|
Quick and dirty hack is installed and working on 3.8
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|