![]() |
Ajax Check Username
Due to popular demand I decided to put some work into it to make it fully 3.6.1 compliant.
This one uses the phrase system so you can easily translate it without going through the Js-file. This one uses the vBulletin Ajax Handler, no more custom and buggy solution for connection to the server. This one uses vB-functions to create the XML file needed for the Ajax magic. ;) Generally said: This one is the old Add-on taken one step further. :D I am a bit handicapped at the moment when it comes to typing but the Add-On is working fine on my forums and so I decided to release it. :) Screenshots are attached, for a live demo visit this page: http://www.pagodentreff.de/diskussio...hp?do=register (PLEASE don't register just for fun! :)) What else do I need to say? Well.. make a backup before you start installing this Addon-On. I say it's safe but don't trust the German guy. ;) Have fun and click install. :) Attention: In order to get this Add-on working you must allow guest access to the file 'misc.php'. That file does the username check and it is important that guests can access that file. |
Nice mods. Helpfull for newbie to register :)
|
Yeah you are right. Thanks for this!
|
No problem! :)
Can anyone confirm that it is working? I deleted my installation and imported it again without any problems. |
Quote:
Clicked install |
Thank you for confirming it. :)
|
this can work on vbb 3.6.0 thanks
|
Yes it will work with vB3.6 but I am developing for the most current version which is 3.6.1 :)
|
can u develop also with passwork to check this password long enough or email match or not thanks so much this is reallt helpful for newbie install thanks
|
A check if both addresses match shouldn't be a problem but I don't do anything with passwords because would need to have the password send to the server. :)
Please don't forget to click install after you installed it. :) |
can u make it email match thanks so much. looking for ur new release mod thanks
|
I will once I have time to. :)
|
+1, would also love the in-use email check.
for the password, you could create a JS that would rate it from 'weak' to 'strong' or something like that |
Because you asked for it: https://vborg.vbsupport.ru/showthread.php?t=127028 ;)
It is the same as this one but it checks if the desired email address is already in use. :) |
Seems to have installed, edited the tmeplates, but tested it on the Register page and doesn't appear to be working...tried to register a name that is taken but got no message. :(
*Reserving install* :) |
Did you upload the new file to your server?
Send me a PM with the url and I'll look into it. :) |
Quote:
PM coming your way... |
Did you make sure it is enabled via vBulletin Settings?
|
Pretty sure I did, in User Registration Options.
|
I had a look into it, see your PM.
I think I've spotted the error. You must allow guest access to misc.php because that is the file which checks the username availability. As a guest I got an error message trying to open misc.php?do=checkusername&username=admin (admin is the username to be checked) and therefore the Ajax function can't work properly. :) Allow guest access to misc.php and it will run fine. :) |
installed! instructions say to edit 'registration' template, 'register' is the correct template to edit.
also, should Code:
div#checkusername { Code:
div.checkusername { |
No, I created a new div and it's ID (#) is checkusername. :) By using div.checkusername you have a div with the class 'checkusername'. :)
The typo will be fixed soon. :) |
thanks alot mate!"installed"
|
nice one... hey, could you add the preg_match check already built in vb 3.6.1? Also, what about adding the restricted words (moderator, etc.) thats also in the options settings.
This way, it can check for "taken" names as well as "illegal" words and characters and reply with "this username is unavailable or cannot be used". |
Hmmm..... I don't have a "registration" template. I have a register template but there is a whole lot more code than the three lines.
I am probably missing something and need to direction to find my way. I did install the plugin and the clientscript file. Any advise is greatly appreciated. |
Chris: Good idea, I'll have to take a closer look at it. :)
YLP1: Yeah, it's the 'register' template.. The word 'registration' is a typo by me as Protoman already pointed out in post #21. :) You can set up an admin account for me that allows template edits and I'll install it for you if you have problems with the instructions. Otherwise you should specify at what step you are so that I can explain it further. :) thanks, Dominik |
your demo link gave me this message
vBulletin-Systemmitteilung Da du dich entschieden hast, die Nutzungsbedingungen nicht zu akzeptieren, kannst du die Registrierung nicht fortsetzen. Gehe auf die Startseite des Forums oder klicke in deinem Browser auf 'Zurück', falls du die Nutzungsbedingungen doch akzeptieren möchtest. what ever that means tho? |
working like charm I installed it
it working fine with english usernames but it not working with arabic username ,, any ideas how to make it work with arabic characters?? thank you All the best |
Was my own fault, i was so tired i pasted in wrong place. - All is working now, great mod.
Quote:
|
Great Hack and a nice idea:cool:
Thought it was a java script but it turns out that you can use ajax as well for vbulletin :) |
is this works on 3.6.2?
|
Quote:
|
Quote:
demo: http://www.areyouserios.com/register.php Great hack, thanks :) |
*installed.
|
Quote:
|
Quote:
Check it on yours vBShazz.com |
Quote:
|
Just clicking 'Register', gives this error:
var phrase_checkusernameok = 'This username is not yet taken. Feel free to use it!'; var phrase_checkusernametaken = 'This username is already taken. Please choose another one.'; |
Quote:
|
I got bored, so I modified the plugin to perform automatic template edits. I, personally, hate having to reapply template edits on upgrades/reverts/etc. so whenever possible I try to hardcode the template edits.
Just import and enable. Done! :) * Note: This was modified using the Default style on a fresh 3.6.2 installation. That shouldn't matter, but still. :P |
All times are GMT. The time now is 06:23 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|