vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Quick Registration (https://vborg.vbsupport.ru/showthread.php?t=90325)

lexx27 12-01-2005 12:48 PM

same problem here with 3.5.1

Redirects to a blank page tha points to register.php

lexx27 12-01-2005 01:18 PM

OK, i found something!
The horizontal doesnt work and the vertical is woriking!

I dont know why though...

I have a problem with age, How can I make age optional?

BlackHawk1994 12-08-2005 04:17 AM

I'm getting the same problem with the horizontal too. Also, when trying to enter the U/P in the login boxes it says fill in both password boxes.

Just tried vertical.. same thing.

Lexx, did you put the vertical somewhere different in the layout?

lexx27 12-08-2005 11:40 AM

Well for some reason vertical was working to me but I needed horizontal for my site. It was very strange because sometimes it worked and sometimes it didnt. I tried to copy the code from other's sites with 3.5.1 with not any result. I did some changes and finally made it work. Here is the code:

Code:

<!-- / Quick Register Box -->

<thead>
<tr>
<td class="tcat" colspan="6"><div align="center">Quick
                Register </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">
        User Name:
        <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">
        Confirm 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">
        Confirm 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>Check to Agree with <a href="register.php?">forum
rules </a></strong><br>
        <input class="button" value="Submit" accesskey="s" type="submit">
        </form></span>
                </div></td>
</tr>
</thead>
</table>


<!-- / Quick Register Box -->


BlackHawk1994 12-08-2005 10:43 PM

How do I get this to only show up for unregistered users?

lexx27 12-08-2005 11:27 PM

Just put <if condition="$show['guest']"> ...code... </if>

BlackHawk1994 12-09-2005 03:31 AM

Thanks lexx, everything is working!

lexx27 12-09-2005 10:06 AM

Welcome ;)

fyjpm 01-19-2006 08:03 PM

Can someone help me get image verification working on this? Here's what I have so far:

you need to add the following code to index.php
Code:

require_once(DIR . '/includes/functions_regimage.php');
$imagehash = fetch_regimage_hash();

then this should display the image on the template page you want the quick registration to display on:
Code:

<img src="image.php?$session[sessionurl]type=regcheck&amp;imagehash=$imagehash" alt="$vbphrase[registration_image]" width="201" height="61"  border="0" />
then you would just need this text box below the image for the person to fill in:
Code:

<input type="text" class="bginput" name="imagestamp" size="50" maxlength="6" /><input type="hidden" name="imagehash" value="$imagehash" />
the problem I've come across is that I'm unable to get the proper image to display because the $imagehash variable seems to be unavailable on the homepage template (I'm using vBA CMPS for my homepage - but that shouldn't matter).

Can anyone help me get this done?

Thanks you in advance,

John

Spencer F. 01-28-2006 05:04 AM

Does this work for 3.5.3?


All times are GMT. The time now is 03:36 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.01150 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)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