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 :)

SHANE-D-PAIN 03-31-2006 12:37 PM

Quote:

Originally Posted by RDX1
Screenshot added.

You have no idea how much I love you. :)

Edited mine to suit. http://www.teenageforums.com

Beller 03-31-2006 01:21 PM

Could this be added as a new template in vbadvanced?

Stangsta 03-31-2006 04:36 PM

nevermind

bashy 03-31-2006 04:50 PM

I still have the original error

Showing /if> under navbar when logged in


when not logged it it shows the quick register but with a closing /if>
see image

Also when ya try to use it it throws this up at you

The following errors occurred during your registration:

The string you entered for the image verification did not match what was displayed.
You have entered an invalid birthday.

So obviously this is no good when using the verification process and when
needing the DOB

Sorry but i have now removed and will not be using as yet, Damn good idea though, Well done :)

SIINSI 03-31-2006 05:19 PM

Installed the one that works :)

RFViet 03-31-2006 06:30 PM

I want Birthday Option please !!

Nick0r 03-31-2006 07:13 PM

Any easy way to remove the line about agreeing to the rules and make the hack still work?

baerwurz 03-31-2006 07:24 PM

Very nice, thank you!

*klick install*

SHANE-D-PAIN 03-31-2006 08:14 PM

Quote:

Originally Posted by Beller
Could this be added as a new template in vbadvanced?

Yeah, easily.

Simply add it as a template when adding a new module. :)

RDX1 03-31-2006 10:03 PM

I've added what I use on my website. So you can use it with a birthday.

Barakat 03-31-2006 11:13 PM

thanks ...

SaN-DeeP 04-01-2006 12:16 AM

nice hack :-)

RDX1 04-01-2006 02:55 AM

Quote:

Originally Posted by Nick0r
Any easy way to remove the line about agreeing to the rules and make the hack still work?

Untested, try changing.

Code:

<input name="agree" id="cb_rules_agree" value="1" type="checkbox"><strong>Check to Agree with <a href="register.php?">forum rules</a></strong>&nbsp;
to

Code:

<input name="agree" id="cb_rules_agree" value="1" type="hidden" checked="checked">&nbsp;

BoYagoob 04-01-2006 05:55 AM

installed

Frapegliko 04-01-2006 07:11 AM

nice for spam . . . is there a way to put verify image in a second page?

RDX1 04-01-2006 07:16 AM

Quote:

Originally Posted by Frapegliko
nice for spam . . . is there a way to put verify image in a second page?

Not without code modification. This is just a template hack. If you want to extract the CAPTCHA code from the registration template and add it to this mod go ahead.

I may look into it and add it later when I have some time.

chimaira 04-01-2006 09:17 AM

Will this show for already registered members? as i want only guests to view this bar

*edit* yeh it does. as just tried it, Works fine. so thankyou

Smiry Kin's 04-01-2006 09:28 AM

oh also you need to make it kinda work with the image verification :S

baerwurz 04-01-2006 07:43 PM

I have a bug.

If i am as Guest on my Board and want to send my password to my email account, thhere comes this message:

Please fill out the 2 fields for Password!

Exitilus 04-02-2006 01:07 AM

Doesn't work at all for me. Just goes to a blank page (register.php) and nothing happens (no registration).

RDX1 04-02-2006 01:51 AM

Quote:

Originally Posted by baerwurz
I have a bug.

If i am as Guest on my Board and want to send my password to my email account, thhere comes this message:

Please fill out the 2 fields for Password!

This is a registration template hack, you will need to use the proper lost password form to get our password.

Quote:

Originally Posted by Exitilus
Doesn't work at all for me. Just goes to a blank page (register.php) and nothing happens (no registration).

I'll need some more information then that.

Exitilus 04-02-2006 04:12 AM

Fill out all the fields.

Hit Submit

Screen Goes blank and the location bar at the top says http://URL/register.php
(url meaning the URL of my site)

The registration never happens.

I'm using the one that includes the Birthdate

RDX1 04-02-2006 05:06 AM

Find

Code:

<form action="register.php" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);">
Change to:

Code:

<form action="path/to/your/forum/register.php" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);">
Change path/to/your/forum/ to http://www.yoursite.com/forum/path/register.php

I'm going to change it so it includes yoru site path automatically for no more confusion.

Edit: Try the new code, not idea why I didn't think of this before. I changed the paths to $vboptions[bburl]/ so it automatically checks the forum path, no editing required.

Smiry Kin's 04-02-2006 05:28 AM

can ya reply to my questiong about the image thingy? :(

RDX1 04-02-2006 06:37 AM

Quote:

Originally Posted by Smiry Kin's
can ya reply to my questiong about the image thingy? :(

I did.
https://vborg.vbsupport.ru/showpost....9&postcount=30

Smiry Kin's 04-02-2006 07:04 AM

Quote:

Originally Posted by RDX1

oh cheers dude, if u do add it later, be sure to send out an email :)

i don't have a clue how to get the info :S

RDX1 04-02-2006 07:21 AM

Just look in the registration templates. Only concern I have is 1) It's too big to fit in the quick reg box and 2) My main concern is that CAPTCHA is not a template mod, but built into register.php itself.

We'll see tomorrow...

curtisstanier 04-02-2006 08:17 PM

I have a similar problem as Exitilus. Blank page after you click submit. I have tried the original code from the top of the page, and the bit you told him to change and it still wont work. Great Mod though :)

Exitilus 04-02-2006 08:55 PM

Quote:

Originally Posted by curtisstanier
I have a similar problem as Exitilus. Blank page after you click submit. I have tried the original code from the top of the page, and the bit you told him to change and it still wont work. Great Mod though :)

Tried the new code :) Still doesn't work (exact same issue) . Just goes to the blank page w/ no Registration

RDX1 04-02-2006 09:55 PM

Are you both sure that image verification is turned off and you have no other required fields? Other people say it works fine and it works fine on my site too.


All times are GMT. The time now is 04:04 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.01396 seconds
  • Memory Usage 1,887KB
  • 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
  • (8)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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