vBulletin.org Mod

chaotic_geo

New Member
Bypass registration rules and add to signup page

Code:
http://www.vbulletin.org/forum/showthread.php?t=198913

&

This post:

Code:
http://www.vbulletin.org/forum/showpost.php?p=1736360&postcount=13

Please, thanks.
 
Bypass registration rules and add to signup page
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
PHP:
$customfields_other
ADD AFTER
PHP:
            <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>
Edit with this plugin edit.. it works on 3.8.1 as intended.

changeing signup to checkdate
which still enableds DOB on 3.8.1
else its without DOB.
PHP:
// if ($_REQUEST['do'] == 'signup') 
if ($_REQUEST['do'] == 'checkdate') 
{ 
$_REQUEST['do'] = 'register'; 
$_POST['agree'] = '1'; 
}
 
Back
Top