Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Scott MacVicar Scott MacVicar is offline
Developer Last Online: Mar 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-02-2001 Last Update: Never Installs: 25
 
No support by the author.

When the user clicks the register link their taken to a page where they only enter their username. When they push submit it checks the username, if taken it allows them to keep entering usernames until one that is not taken is found. Registration now resumes as normal. When they reach the signup form the username is already in the Username part of the form.

Request from nighteyes.

Last Updated 2nd November 2001 at 17:00 GMT

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 01-28-2002, 03:07 AM
NoliaBoy NoliaBoy is offline
 
Join Date: Nov 2001
Location: C-Town , Ohio
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its like aim basicly. Right ?

BTW i havnt installed yet be when i get home later i will
Reply With Quote
  #13  
Old 02-08-2002, 11:37 AM
fixer fixer is offline
 
Join Date: Nov 2001
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanx PPN for this hack.

after i have installed this, it is working great.

the only problem is that it reditrected me ,after checking the nickname and pressing the accept botton, into a coppa registration form insted of adult form.

and i am sure that coppa regestration system is turned off in the control panel.

so what sould i do to fix that.

and thanx again man.
Reply With Quote
  #14  
Old 03-16-2002, 10:47 PM
PET's Avatar
PET PET is offline
 
Join Date: Jan 2002
Location: Timisoara/Romania
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't work. I have do al the thing but....if i search for a unsername that exist he tell me that he exist.... BUT if i search on a me that don't exist he is going to register.php ...but don't show the page. Just an white page. What should i do ? 10x
Reply With Quote
  #15  
Old 07-02-2002, 09:28 PM
xamu's Avatar
xamu xamu is offline
 
Join Date: Feb 2002
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe there's an omission:

In username_loggedout:

Replace:
PHP Code:
<smallfont><a href="register.php?action=signup">Want to register?</a
with
PHP Code:
<smallfont><a href="register.php?action=check">Want to register?</a
There's also a couple changes I made that makes it much nicer, IMHO. Personally I think it's pretty bad to tell a new user:

Our records show that you have already registered at this board under the name of $username. If you have lost your password, click here. If you would like to modify your profile, click here.

Talk about confusing the newbie

To avoid this problem, change/revise the instructions to say:
PHP Code:
----------------------------------
Open register.php
----------------------------------

looks for

if ((!isset(
$action) or $action=="") and (!isset($a) or $a=="")) {
  
$action="signup";
}

change to

if ((!isset($action) or $action=="") and (!isset($a) or $a=="")) {
  
$action="check";
}

now look for

if (
$url==$HTTP_REFERER) {
  
$url=urlencode($url);
}

below that add

// ############################### start docheck ###############################
if ($action=="docheck") {
  
$getuser=$DB_site->query_first("SELECT username FROM user WHERE username='$username'");
  if (empty(
$getuser[username])) {
    
$action="signup";
  }
  else {
    
$action="check";
    eval (
"\$error = \"".gettemplate("error_usernameexists")."\";");
  }
}

// ############################### start check ###############################
if ($action=="check") {

  if (!
$allowregistration) {
    eval(
"standarderror(\"".gettemplate("error_noregister")."\");");
    exit;
  }

  if (
$bbuserinfo[userid]!=and !$allowmultiregs) {
    
$getuser=$DB_site->query_first("SELECT username FROM user WHERE userid='$bbuserinfo[userid]'");
    
$username=$getuser[username];

    eval(
"standarderror(\"".gettemplate("error_usernameexists")."\");");

    exit;
  }

  eval(
"dooutput(\"".gettemplate("signupcheck")."\");");


and replace these instructions:
PHP Code:
Add the following template

----------------------------------
signupcheck
----------------------------------
<!
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<
html>
<
head><title>$bbtitle Register</title>
$headinclude
</head>
<
body>
$header

<br>

<
table cellpadding="0" cellspacing="0" border="0" bgcolor="#555576"  width="100%" align="center"><tr><td>
<
table cellpadding="4" cellspacing="1" border="0"  width="100%">
<
tr id="cat">
    <
td bgcolor="#606096" width="100%"><normalfont color="#FFF788"><b>Register $bbtitle</b></normalfont></td>
</
tr>
<
tr>
    <
td bgcolor="#8080A6" width="100%"><normalfont color="#EEEEFF"><b>Check your username</b></normalfont></td>
</
tr>
<
tr>
    <
td bgcolor="#DFDFDF" width="100%">
    <
p align="center"><normalfont>Please fill in your username to confirm that it is free for use.<br>
                
$error
    
<form action="register.php" method="post">
                <
input type="hidden" name="s" value="$session[sessionhash]">
                 <
b>Username:</b><input type="text" class="bginput" name="username" size="25" maxlength="$maxuserlength">
    <
input type="hidden" name="action" value="docheck">
    <
input type="submit" class="bginput" name="Submit" value="Submit">
    <
input type="reset" class="bginput" name="Reset" value="Reset">
                 </
form>
                </
normalfont></p>
    </
td>
</
tr>
</
table>
</
td></tr></table>

$footer

</body>
</
html
with:
PHP Code:
Add the following templates

----------------------------------
error_usernameexists
----------------------------------
<
BR><FONT color=red>Our records show that someone has already 
registered at this board under the name of 
</FONT>
<
BR><BR>
<
B><I>$username</I></B>
<
BR><BR>
<
FONT color=red>You will need to choose a different username.</FONT>
<
BR><BR>


----------------------------------
signupcheck
----------------------------------
<!
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<
html>
<
head><title>$bbtitle Register</title>
$headinclude
</head>
<
body>
$header

<br>

<
table cellpadding="0" cellspacing="0" border="0" bgcolor="#555576"  width="100%" align="center"><tr><td>
<
table cellpadding="4" cellspacing="1" border="0"  width="100%">
<
tr id="cat">
    <
td bgcolor="#606096" width="100%"><normalfont color="#FFF788"><b>Register $bbtitle</b></normalfont></td>
</
tr>
<
tr>
    <
td bgcolor="#8080A6" width="100%"><normalfont color="#EEEEFF"><b>Check your username</b></normalfont></td>
</
tr>
<
tr>
    <
td bgcolor="#DFDFDF" width="100%">
    <
p align="center"><normalfont>$error
Please enter in your desired username to confirm that it is not being used by someone 
else.<br>
    <
form action="register.php" method="post">
                <
input type="hidden" name="s" value="$session[sessionhash]">
                 <
b>Username:</b> <input type="text" class="bginput" name="username" size="25" maxlength="$maxuserlength">
    <
input type="hidden" name="action" value="docheck">
    <
input type="submit" class="bginput" name="Submit" value="Submit">
    <
input type="reset" class="bginput" name="Reset" value="Reset">
                 </
form>
                </
normalfont></p>
    </
td>
</
tr>
</
table>
</
td></tr></table>

$footer

</body>
</
html
Reply With Quote
  #16  
Old 07-04-2002, 10:30 AM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is wierd. Mine is not working any more for come reason. I am using 2.2.5. It always use to work. But now when i use the action=check url it just brings me right back to the area where it says Type Username and password to log in. HELP
Reply With Quote
  #17  
Old 07-04-2002, 10:49 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

xamu,

Can you put together a text file with all of your instructions for us? It seems the colors were parsed here. Is this the way you are running it on your board and if so, is it working?
Reply With Quote
  #18  
Old 07-05-2002, 02:32 PM
xamu's Avatar
xamu xamu is offline
 
Join Date: Feb 2002
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, mine seems to be working. Here's the updated instructions. If PPN wants to put it in the first post then that's fine. As it is said, "if I have seen farther than others it is because I have stood on the shoulders of giants." IOW, all the hard was already done.
Reply With Quote
  #19  
Old 01-02-2003, 06:05 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is working great except if you don't enter a name to check and leave the box blank, when you hit submit it will take you directly to the registration procedure. Is there a way to check and make sure they enter a name of some sort instead of just spaces or nothing at all?
Reply With Quote
  #20  
Old 01-12-2003, 05:52 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found a possible bug with this hack. If a new user signs on with an apostrophe in their name (like this: Man'owar) they will get a db error. To fix this:

Find:
PHP Code:
$getuser=$DB_site->query_first("SELECT username FROM user WHERE username='$username'"); 
and replace it with this:

PHP Code:
$getuser=$DB_site->query_first("SELECT username FROM user WHERE username='".addslashes($username)."'); 
Reply With Quote
  #21  
Old 03-16-2003, 11:50 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to have this hack check for the usernames you have entered in the Admin CP that are not allowed before it passes it on? Right now, if you enter a username that is not allowed (from the admin CP), it will take you all through the registration process until you hit submit, then you will get the error message. Any way to correct this before it goes that far?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:05 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.06712 seconds
  • Memory Usage 2,377KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete