The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
AJAX: check if username exists on registration in realtime Details »» | |||||||||||||||||||||||||||
AJAX: check if username exists on registration in realtime
Developer Last Online: Sep 2010
It will be ported to vB 3.5
The instructions are up-to-date (see post #8 for more information). Hello there! vB 3.5 is using AJAX for inline moderation and stuff like that. Pretty neat and why should we wait for something like this? :devious: What does this hack do? In the registration page it checks if the username the user has entered already exists. If this is true he will get a message instantly telling me to change the desired name. The submit button will also be disabled so that he can't finish the registration unless he has chosen another username which is not yet taken. Features: * can be turned off or on via the AdminCP * uses the vB phrases and can easily be translated * the user gets the error message without reloading the page * he/she can't complete the registration if the username is taken Do I need to be an expert to install this hack? No, not really.. You have to upload two files, edit one file, edit one template and add some custom CSS. Besides this there are 4 queries you need to run (see the point 'Warning:' for more information). Should be pretty easy and I'll support you as good as I can. Demo: You may take this for a test drive at my forums but please don't complete the registration unless you want to join my german community http://www.pagodentreff.de/diskussio...m/register.php Just use 'dominik.h' as a username and see what happens. Problems? Is the new phrase not showing up? Read this: https://vborg.vbsupport.ru/showpost....5&postcount=19 Warning: This hack doesn't have an automatic installer. However you need to run 4 different queries for this hack to work. Those queries are for the settings in your AdminCP and for the phrases only. This hack won't affect your performance If you feel uncomfortable with running queries you may drop me a private message and I'll see what I can do for you. I will support this hack as good as I can but please keep your questions within this thread. Please don't forget to click install because you get an update notification and other nice things The screenshot is taken from my translated version. This hack wouldn't be possible without the following article and the code: http://www.xml.com/pub/a/2005/02/09/...p-request.html Show Your Support
|
Comments |
#42
|
||||
|
||||
cool hack... unfortunately i hate javascript with passion.. moreso, it doesn't work on all browsers which is the main reason i avoid it (javascript).
|
#43
|
|||
|
|||
Thanks guys, got it working now. I just deleted the phrase and re added it...didn't try doing the English translation. Great work, love it!
T3MEDIA has a great suggestion, it would be very cool if we could just jack the entire signup process with this, would save the users a lot of time when they make 1 simple error in the referral and ect. Again, excellent! - Jonathan |
#44
|
||||
|
||||
Works excellent!
/me clicks install |
#45
|
||||
|
||||
Great hack!
I made some modifications to your code, creating another php file (I don't need to load vB permissions and sessions just to check for the username) and modifying the javascript so it only checks the username if it's longer than 3 chars. [high]* JulianD clicks install![/high] |
#46
|
|||
|
|||
As somebody who has only been doing this for a couple weeks, I'd like to make a suggestion. Take it for what it's worth.
I've grown accustomed to very noticable markers in the instructions for file/template changes. Meaning when it's time to start editing a different document. Yours is great, and the hack is great, but the first time through I added a whole lot of the instructions to the register.php file by accident. Yes, I'm an idiot. But, THERE ARE LOTS OF US! So to save yourself lots of extra posts, you might want to edit that a bit. Dennis |
#47
|
|||
|
|||
Quote:
I would like to see how fast this one works with +20k members but it should not be that slow because it's just one simple query. dsboyce8624: Thank you for this advice. I'll do so as soon as I got more time on my hands.. :bandit: |
#48
|
|||
|
|||
Try to edit ANY phrase using the normal ACP tooling. (just save it, no need for a real edit)
|
#49
|
|||
|
|||
Quote:
|
#50
|
|||
|
|||
It isn't you are right
But this script is checking wether a username exists or not. With +20k users it may take half a second before the person who registers is seeing that message |
#51
|
||||
|
||||
I have right at 16,000 members and it took less than a nano-second when I tabbed off the field. This was with 300 users online at the time.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|