vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Quick Register for 3.5.x (https://vborg.vbsupport.ru/showthread.php?t=111783)

RDX1 03-30-2006 10:00 PM

Quick Register for 3.5.x
 
Click here for the new PLUGIN version of Quick Register
The plugin version is the only updated version, which includes many more features such as image verification and welcome messages!

Description:
This small template mod will allow you to set up a quick registration feature on your forums. It will show under the navbar on every page.

Requirements:
No required profile fields, you would have to add them yourself. No birthday required. (I have modified to add this to my forum, I can release if needed) Can not use CAPTCHA

Support:
This modifcation comes as-is with limited support. If I have time I will look into your support request in this thread.

Installation:
Log into your admin control panel -> Styles & Templates -> Choose your style and click on < > to expand the templates -> Click Navigation/Breadcrumb Templates > Click on navabar:

Add this to the end of the template, save and exit.

FOR USE WITHOU A BIRTHDAY:
Code:

<!-- Start Quick Register --><if condition="$show['guest']"><table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="6"><div align="center"><b>Quick Register</b></div></td>
</tr>
<tr>
<td class="alt1" colspan="6"> <div align="center">
<span class="smallfont"><script type="text/javascript" src="$vboptions[bburl]/clientscript/vbulletin_md5.js"></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('Fill out both password fields');
return false;
}
else if (password1.value != password2.value)
{
alert('Entered passwords do not match');
return false;
}
else
{
md5hash(password1, document.forms.register.password_md5);
md5hash(password2, document.forms.register.passwordconfirm_md5);
return true;
}
return false;
}
</script>
<form action="$vboptions[bburl]/register.php" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);">
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="addmember" />
<input type="hidden" name="url" value="$url" />
<input type="hidden" name="agree" value="" />
<input type="hidden" name="password_md5" />
<input type="hidden" name="passwordconfirm_md5" />
    User Name:
    <input type="text" class="bginput" name="username" maxlength="15" value="" style="width:70px" />
    Password:
    <input type="password" class="bginput" name="password" maxlength="15" value="" style="width:70px" />
    Confirm Password:
    <input type="password" class="bginput" name="passwordconfirm" maxlength="15" value="" style="width:70px" />
    Email:
    <input type="text" class="bginput" name="email" maxlength="50" value="" style="width:70px" />
    Confirm Email:
    <input type="text" class="bginput" name="emailconfirm" maxlength="50" value="" style="width:70px" />
    <br><input name="agree" id="cb_rules_agree" value="1" type="checkbox"><strong>Check to Agree with <a href="$vboptions[bburl]/register.php?">forum
    rules</a></strong>&nbsp;
    <input type="submit" class="button" value="Submit" accesskey="s" />
    </span></form>
        </div></td>
</tr>
</thead>
</table><br></if>
<!-- End Quick Register -->

FOR USE WITH BIRTHDAY:
Code:

<!-- Start Quick Register --><if condition="$show['guest']"><table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="6"><div align="center"><b>Quick Register</b></div></td>
</tr>
<tr>
<td class="alt1" colspan="6"> <div align="center">
<span class="smallfont"><script type="text/javascript" src="$vboptions[bburl]/clientscript/vbulletin_md5.js"></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('Fill out both password fields');
return false;
}
else if (password1.value != password2.value)
{
alert('Entered passwords do not match');
return false;
}
else
{
md5hash(password1, document.forms.register.password_md5);
md5hash(password2, document.forms.register.passwordconfirm_md5);
return true;
}
return false;
}
</script>
<form action="$vboptions[bburl]/register.php" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);">
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="addmember" />
<input type="hidden" name="url" value="$url" />
<input type="hidden" name="agree" value="" />
<input type="hidden" name="password_md5" />
<input type="hidden" name="passwordconfirm_md5" />
    Username:
    <input type="text" class="bginput" name="username" maxlength="15" value="" style="width:70px" />
    Password:
    <input type="password" class="bginput" name="password" maxlength="15" value="" style="width:70px" />
    Confirm Password:
    <input type="password" class="bginput" name="passwordconfirm" maxlength="15" value="" style="width:70px" />
    Email:
    <input type="text" class="bginput" name="email" maxlength="50" value="" style="width:70px" />
    Confirm Email:
    <input type="text" class="bginput" name="emailconfirm" maxlength="50" value="" style="width:70px" /><br>
Birthday: <select name="month" id="bd_month"style="width:70px" />
                                                                <option value="-1" >Month</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" >Day</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="Year" size="4" maxlength="4" id="bd_year" style="width:70px" />
<input name="agree" id="cb_rules_agree" value="1" type="checkbox"><strong>Check to Agree with <a href="$vboptions[bburl]/register.php?">forum
    rules</a></strong>&nbsp;
    <input type="submit" class="button" value="Submit" accesskey="s" />
    </span></form>
        </div></td>
</tr>
</thead>
</table><br></if>
<!-- End Quick Register -->

Screenshot of output below.

Electrohead04 03-31-2006 07:49 AM

Sounds interesting :)

Can we see a preview/screenshot?

RDX1 03-31-2006 07:55 AM

Screenshot added.

Ziki 03-31-2006 08:08 AM

Awsome.....just awsome.........

bashy 03-31-2006 09:02 AM

Hi

Its not working for me :(

I have this
Code:

<!-- Start Quick Register --><if condition="$bbuserinfo[usergroupid] == 1"><table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="6"><div align="center"><b>Quick Register</b></div></td>
</tr>
<tr>
<td class="alt1" colspan="6"> <div align="center">
<span class="smallfont"><script type="text/javascript" src="http://www.bashys-place.com/forums/clientscript/vbulletin_md5.js"></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('Fill out both password fields');
return false;
}
else if (password1.value != password2.value)
{
alert('Entered passwords do not match');
return false;
}
else
{
md5hash(password1, document.forms.register.password_md5);
md5hash(password2, document.forms.register.passwordconfirm_md5);
return true;
}
return false;
}
</script>
<form action="http://www.bashys-place.com/forums/register.php" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);">
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="addmember" />
<input type="hidden" name="url" value="http://www.bashys-place.com/forums/index.php" />
<input type="hidden" name="agree" value="" />
<input type="hidden" name="password_md5" />
<input type="hidden" name="passwordconfirm_md5" />
    User Name:
    <input type="text" class="bginput" name="username" maxlength="15" value="" style="width:70px" />
    Password:
    <input type="password" class="bginput" name="password" maxlength="15" value="" style="width:70px" />
    Confirm Password:
    <input type="password" class="bginput" name="passwordconfirm" maxlength="15" value="" style="width:70px" />
    Email:
    <input type="text" class="bginput" name="email" maxlength="50" value="" style="width:70px" />
    Confirm Email:
    <input type="text" class="bginput" name="emailconfirm" maxlength="50" value="" style="width:70px" />
    <br><input name="agree" id="cb_rules_agree" value="1" type="checkbox"><strong>Check to Agree with <a          href="http://www.bashys-place.com/forums/register.php?">forum
    rules</a></strong>&nbsp;
    <input type="submit" class="button" value="Submit" accesskey="s" />
    </span>
        </div></td>
</tr>
</thead>
</table><br></if>
<!-- End Quick Register -->

And all i get is this /if> under the navbar

any ideas?

Snake 03-31-2006 09:54 AM

Nice one, good thing to have this on my forum.

PabloAM 03-31-2006 11:18 AM

Not work for me: www.xboxers360.net :(:(

Stone Cold 3:16 03-31-2006 11:30 AM

Sweet! Post 8.. Kool hak too :p

PabloAM 03-31-2006 12:05 PM

FIXED BY ME!!
IN SPANISH VERSION ;)

Code:

<if condition="$show['guest']">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="6"><div align="center">REGISTRACI?N RAPIDA</div></td>
</tr>
<tr>
<td class="alt1" colspan="6"> <div align="center">
<span class="smallfont"><script type="text/javascript" src="clientscript/vbulletin_md5.js"></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('Fill out both password fields');
return false;
}
else if (password1.value != password2.value)
{
alert('Entered passwords do not match');
return false;
}
else
{


md5hash(password1, document.forms.register.password_md5);
md5hash(password2, document.forms.register.passwordconfirm_md5);



return true;
}
return false;
}
</script>
<form action="register.php" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);">
<input name="s" value="" type="hidden">

<input name="do" value="addmember" type="hidden">
<input name="url" value="index.php" type="hidden">
<input name="agree" value="" type="hidden">
<input name="password_md5" type="hidden">
<input name="passwordconfirm_md5" type="hidden">
Nombre:
<input class="bginput" name="username" maxlength="15" value="" style="width: 70px;" type="text">
Password:
<input class="bginput" name="password" maxlength="15" value="" style="width: 70px;" type="password">
Confirmar Password:
<input class="bginput" name="passwordconfirm" maxlength="15" value="" style="width: 70px;" type="password">
Email:
<input class="bginput" name="email" maxlength="50" value="" style="width: 70px;" type="text">
Confirmar Email:
<input class="bginput" name="emailconfirm" maxlength="50" value="" style="width: 70px;" type="text">

<br><input name="agree" id="cb_rules_agree" value="1" type="checkbox"><strong>Acepta si estas de acuerdo con las <a href="register.php?">Normas del foro</a></strong>.<br>
<input class="button" value="?REGISTRAME!" accesskey="s" type="submit">
</form></span>
</div></td>
</tr>
</thead>
</table>
</if>

<!-- / Quick Register Box -->

Please click install for my XD XD

The Chief 03-31-2006 12:35 PM

looks cool, thanks :)


All times are GMT. The time now is 12:09 AM.

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.01136 seconds
  • Memory Usage 1,820KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete