vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Popup Quick Register (https://vborg.vbsupport.ru/showthread.php?t=227905)

RTMdotORG 11-13-2009 10:00 PM

Popup Quick Register
 
1 Attachment(s)
Popup Quick Register
I myself take no credit for designing this Add-On.
I only edited both mods to make one.

I would expect this to be a popular add-on, so i'm helping out.

Credit goes to Gio~Logist from this thread: https://vborg.vbsupport.ru/showthrea...t=quick+thread

and ry215 from this thread: https://vborg.vbsupport.ru/showthrea...quick+register

YOU MUST HAVE BOTH OF THE ABOVE MODS INSTALLED FOR THIS TO WORK.

What does this do?
This changes your Register button on your navbar to a pop-up which shows the quick register with human verification. I've tested fully on 3.8.4 and I have not come across any errors.

LIVE DEMO: www.ripthemic.org/forums


Installation Instructions:
1. Make sure you have both of the Mods above installed.
2. Go to Styles & Templates in your AdminCP > Style Manager > Select which skin you would like to edit > Navigation / Breadcrumbs Templates > Navbar.

Find:
Code:

<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
Replace with:
Code:

<if condition="$show['registerbutton']"><td class="vbmenu_control"><div style="margin-bottom:2px;"><a href="#quickthread" id="quickthread" class="smallfont">Register</a> <script type="text/javascript"> vbmenu_register("quickthread"); </script></div>

        <div id="quickthread_menu" style="display:none">


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="500" align="center">

<tr>
        <td class="panelsurround" align="center">
        <div class="panel">
                <div style="width:$stylevar[formwidth]" align="$stylevar[left]">       

               
                <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                        <td>
                       
                <!-- message area -->
                <if condition="$vboptions['quickregister_active'] AND $show['guest']">
<!-- Start Quick Register by +++++++.com -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('quickregister')"><img id="collapseimg_quickregister" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_quickregister].gif" alt="" border="0" /></a>
<strong>$vbphrase[quickregister_quickregister]</strong>
</td>
</tr>
</thead>
<tbody id="collapseobj_quickregister" style="$vbcollapse[collapseobj_quickregister]">
<tr>
<td class="alt1" align="center">
<span class="smallfont"><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>

<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="$vboptions['quickregister_welcomemsg']">
    $vboptions[quickregister_welcomemsgtext]<br><br>
        </if>
    $vbphrase[quickregister_username]
    <input type="text" class="bginput" name="username" maxlength="$vboptions[maxuserlength]" value="$username" style="width:70px" />
    $vbphrase[quickregister_password]
    <input type="password" class="bginput" name="password" size="25" maxlength="50" value="$password" style="width:70px" />
    $vbphrase[quickregister_confirmpassword]
    <input type="password" class="bginput" name="passwordconfirm" size="25" maxlength="50" value="$passwordconfirm" style="width:70px" />
    $vbphrase[quickregister_email]
    <input type="text" class="bginput" name="email" size="25" maxlength="50" value="$email" dir="ltr" style="width:70px" />
    $vbphrase[quickregister_confirmemail]
    <input type="text" class="bginput" name="emailconfirm" size="25" maxlength="50" value="$emailconfirm" dir="ltr" style="width:70px" /><br>
        <if condition="$vboptions['quickregister_dob']">
        $vbphrase[quickregister_birthday]
        <select name="month" id="bd_month" style="width:70px" />
                                                                <option value="-1">$vbphrase[quickregister_bdmonth]</option>
                                                                <option value="01">January</option>
                                                                <option value="02">February</option>
                                                                <option value="03">March</option>
                                                                <option value="04">April</option>
                                                                <option value="05">May</option>
                                                                <option value="06">June</option>
                                                                <option value="07">July</option>
                                                                <option value="08">August</option>
                                                                <option value="09">September</option>
                                                                <option value="10">October</option>
                                                                <option value="11">November</option>
                                                                <option value="12">December</option>
                                                        </select> &nbsp;
<select name="day" id="bd_day" style="width:70px" />
                                                                <option value="-1" >$vbphrase[quickregister_bdday]</option>
                                                                <option value="01" >1</option>
                                                                <option value="02" >2</option>
                                                                <option value="03" >3</option>
                                                                <option value="04" >4</option>
                                                                <option value="05" >5</option>
                                                                <option value="06" >6</option>
                                                                <option value="07" >7</option>
                                                                <option value="08" >8</option>
                                                                <option value="09" >9</option>
                                                                <option value="10" >10</option>
                                                                <option value="11" >11</option>
                                                                <option value="12" >12</option>
                                                                <option value="13" >13</option>
                                                                <option value="14" >14</option>
                                                                <option value="15" >15</option>
                                                                <option value="16" >16</option>
                                                                <option value="17" >17</option>
                                                                <option value="18" >18</option>
                                                                <option value="19" >19</option>
                                                                <option value="20" >20</option>
                                                                <option value="21" >21</option>
                                                                <option value="22" >22</option>
                                                                <option value="23" >23</option>
                                                                <option value="24" >24</option>
                                                                <option value="25" >25</option>
                                                                <option value="26" >26</option>
                                                                <option value="27" >27</option>
                                                                <option value="28" >28</option>
                                                                <option value="29" >29</option>
                                                                <option value="30" >30</option>
                                                                <option value="31" >31</option>
                                                        </select> &nbsp;
<input type="text" class="bginput" name="year" onFocus="value=''" value="$vbphrase[quickregister_bdyear]" size="4" maxlength="4" id="bd_year" style="width:50px" /></if>
<if condition="$vboptions['quickregister_huver'] AND $vboptions['hv_type'] AND $vboptions['regimagetype']">
  &nbsp; $human_verify
</if>
<input type="submit" class="button" value="$vbphrase[quickregister_submit]" accesskey="s" />&nbsp;
<input name="agree" id="cb_rules_agree" value="1" type="checkbox"><strong>$vbphrase[quickregister_agree] <a href="$vboptions[bburl]/register.php?" target="_blank">$vbphrase[quickregister_forumrules]</a></strong>&nbsp;   
</form>
</span></td>
</tr>
</tbody>
</table>
<!-- End Quick Register by +++++++.com --></if>



                <!-- / message area -->
               
                        </td>
                </tr>
                </table>
               
                </div>
        </div>
                       

        </td>
</tr>
</table>
</form>
</div></td></td></if>


ALL DONE. ENJOY!

UPDATED: If you do not want to use the quick thread MOD, you should go to edit templates, and delete the entire contents of quick thread template. Then go to Plugin Manager and scroll down to quick thread and disable:
Code:

Extra Threadfields Integration
and
Code:

Quick Thread Template
If not, the quick thread mod will be active....

Alucard^ 11-14-2009 06:29 AM

Thx but emm, i don't see any popup register in the demo ><

Allan 11-14-2009 08:53 AM

Quote:

Originally Posted by Alucard^ (Post 1913935)
Thx but emm, i don't see any popup register in the demo ><

Clic on "Register" ;)

abdobasha2004 11-14-2009 09:26 AM

nice
reserved

GencBoxNet 11-14-2009 12:03 PM

I improved and I added a lot of things
Look around http://www.vbulletinci.com I am waiting for your comment.

RTMdotORG 11-14-2009 12:18 PM

Quote:

Originally Posted by GencBoxNet (Post 1914034)
I improved and I added a lot of things
Look around http://www.vbulletinci.com I am waiting for your comment.

Niice.

GencBoxNet 11-14-2009 02:50 PM

Thanks

Delita 11-14-2009 09:43 PM

Quote:

Originally Posted by GencBoxNet (Post 1914034)
I improved and I added a lot of things
Look around http://www.vbulletinci.com I am waiting for your comment.

Nice, can you provide the code?

Thanks for the attention

Alucard^ 11-14-2009 11:13 PM

Quote:

Originally Posted by Allan (Post 1913962)
Clic on "Register" ;)

Oh, thx... now i understand the usage of this modification. Rly cool, installed.

YISRAEL 11-15-2009 09:10 AM

It does not work properly

ChopSuey 11-15-2009 09:23 AM

Is this an addon? Or a temp?

RTMdotORG 11-15-2009 07:31 PM

Quote:

Originally Posted by YISRAEL (Post 1914504)
It does not work properly

how does it not work properly?

RTMdotORG 11-15-2009 07:33 PM

Quote:

Originally Posted by ChopSuey (Post 1914512)
Is this an addon? Or a temp?

well it uses addons and its a template mod to the addons...

Speysider 02-14-2010 04:10 PM

Like this mod, but why should I need to install other pointless mods that I don't need to use this?


All times are GMT. The time now is 04:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01183 seconds
  • Memory Usage 1,816KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete