Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Ajax Username Availability Check

Asked Modified Viewed 12,963 times
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
  • Started this discussions
asked
Veteran Member

Ajax Username Availability Check


About : This will add an Automated Function into the Registration, which will show to User, if the Username is Available or Not.

Live Demo : www.clan-icsl.com/register.php

Installation :

1. Download the File: http://rapidshare.com/files/444233372...cludes.zip and upload the files to the includes folder.

2. Backup your Original register.php and then Edit register.php.

3. After the First 4 Lines, i.e,
require_once "maincore.php";
require_once THEMES."templates/header.php";
include LOCALE.LOCALESET."register.php";
include LOCALE.LOCALESET."user_fields.php";


Add after the above code :
add_to_head("<script type='text/javascript' src='".INCLUDES."ajaxusernamecheck.js'></script>");


4. Now, Search for the below line in register.php :
echo "<td class='tbl'><input type='text' name='username' maxlength='30' class='textbox' style='width:200px;' /></td>\n";


Change this Line to the given below line :
echo "<td class='tbl'><input type='text' name='username' maxlength='30' id='username' class='textbox' style='width:200px;' /><div id='usernamecheckstatus'><img src='".IMAGES."checking.gif' width='0' height='0' /></div></td>\n";


5. Now Search for the text closetable(); in the file. After this line, add the below code :
// Code Added for Automatic Username Availability Check
echo "<script type='text/javascript' src='".INCLUDES."typewatch.js'></script>";
echo "<script type='text/javascript'>$('#username').typeWatch( { wait: 1000, captureLength: 3, highlight:false, callback:checkingname } );</script>";
// Code Ends Here


All Settings are Done !!!

Now, Upload the image www.clan-icsl.com/images/checking.gif into images folder.
Or you can also make your Own Loading Image yourself from http://ajaxload.info/. I advice you to not to use Transparent Background image as it doesn't displays much good(reduced alpha) kind of image. So, it is better to use the background color of your page as your background color in the Loading image while making it throught this website.

Also, you can adjust the Text displayed from the filde includes/ajaxusernamecheck.php

Done !!!

Have Fun !!!
Edited by Ankur on 24-01-2011 08:33,
0 replies

31 posts

S
smokeman
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
answered
Veteran Member

Thank you very much Ankur! :)
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 31 posts
  • Votes 0 votes
  • Topic users 8 members

8 participants

C
C
Best regards,
Christian Damsgaard Jørgensen.
  • Member, joined since
  • Contributed 125 posts on the community forums.
  • Started 4 threads in the forums
C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
S
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
E
E
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 49 threads in the forums
R
R
Ex
  • Senior Member, joined since
  • Contributed 391 posts on the community forums.
  • Started 7 threads in the forums
A
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
  • Started this discussions
D
D
  • Newbie, joined since
  • Contributed 1 post on the community forums.

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet