View Full Version : End-User Options - Ajax Check Username
MrNase
09-18-2006, 10:00 PM
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/diskussionsforum/register.php?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.
ShellingFox
09-19-2006, 07:47 AM
Nice mods. Helpfull for newbie to register :)
Snake
09-19-2006, 07:57 AM
Yeah you are right. Thanks for this!
MrNase
09-19-2006, 07:59 AM
No problem! :)
Can anyone confirm that it is working? I deleted my installation and imported it again without any problems.
Can anyone confirm that it is working?
Works fine on my 3.6.1.
Clicked install
MrNase
09-19-2006, 09:46 AM
Thank you for confirming it. :)
tuanvic
09-19-2006, 10:53 AM
this can work on vbb 3.6.0 thanks
MrNase
09-19-2006, 10:56 AM
Yes it will work with vB3.6 but I am developing for the most current version which is 3.6.1 :)
tuanvic
09-19-2006, 11:17 AM
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
MrNase
09-19-2006, 11:22 AM
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=127004) after you installed it. :)
tuanvic
09-19-2006, 11:59 AM
can u make it email match thanks so much. looking for ur new release mod thanks
MrNase
09-19-2006, 12:05 PM
I will once I have time to. :)
Protoman
09-19-2006, 01:41 PM
+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
MrNase
09-19-2006, 02:35 PM
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. :)
Gripemaster
09-19-2006, 03:51 PM
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* :)
MrNase
09-19-2006, 03:57 PM
Did you upload the new file to your server?
Send me a PM with the url and I'll look into it. :)
Gripemaster
09-19-2006, 03:59 PM
Did you upload the new file to your server?
Send me a PM with the url and I'll look into it. :)
Yep...followed instructions to a T.
PM coming your way...
MrNase
09-19-2006, 04:01 PM
Did you make sure it is enabled via vBulletin Settings?
Gripemaster
09-19-2006, 04:17 PM
Pretty sure I did, in User Registration Options.
MrNase
09-19-2006, 04:40 PM
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. :)
Protoman
09-19-2006, 05:16 PM
installed! instructions say to edit 'registration' template, 'register' is the correct template to edit.
also, should div#checkusername {
padding: 5px 7px;
bediv.checkusername {
padding: 5px 7px;?
MrNase
09-19-2006, 06:21 PM
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. :)
sudn3sc3d
09-19-2006, 06:52 PM
thanks alot mate!"installed"
DivisionByZero
09-24-2006, 09:51 PM
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.
MrNase
09-25-2006, 05:30 PM
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
Hornstar
09-27-2006, 05:12 AM
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?
Mohamed Ashraf
09-27-2006, 07:50 AM
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
JakeS
10-03-2006, 09:58 PM
Was my own fault, i was so tired i pasted in wrong place. - All is working now, great mod.
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?
click the forum index then click register, then you can test it.
HS2005
10-07-2006, 09:40 AM
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 :)
abramelin
10-07-2006, 04:21 PM
is this works on 3.6.2?
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.
I am confused about what this means, how can I give guest access to a Vb php file i.e, misc.php can someone who are using this modification can enlighten me please.
eNforce
10-10-2006, 11:57 PM
is this works on 3.6.2?
working fine on my install of 3.6.2
demo:
http://www.areyouserios.com/register.php
Great hack, thanks :)
Shazz
10-11-2006, 12:24 AM
*installed.
trilljester
10-12-2006, 06:52 PM
working fine on my install of 3.6.2
demo:
http://www.areyouserios.com/register.php
Great hack, thanks :)
You might want to check that there chief, it didn't show anything when I tried to register.
Shazz
10-12-2006, 07:19 PM
You might want to check that there chief, it didn't show anything when I tried to register.
Im pretty sure mine works on my IE
Check it on yours
vBShazz.com
eNforce
10-12-2006, 07:31 PM
You might want to check that there chief, it didn't show anything when I tried to register.
Now that is really weird, it was working when I posted that it was. Reuploaded the product and it started working again. (it's working right now)
Invalid ID
10-13-2006, 02:31 AM
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.';
magnus
10-13-2006, 12:23 PM
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 :)
AJAX is an acronym for Asynchronous JavaScript and XML. So, really, it is JavaScript. :)
magnus
10-13-2006, 06:01 PM
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
da420
10-13-2006, 06:35 PM
Thanks magnus, works perfectly. More products should include the template edits, but then again that would make upgrading and reverting templates too easy. ;)
Shazz
10-13-2006, 06:52 PM
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
What does this do?
Automatic updates?
trilljester
10-13-2006, 06:56 PM
Now that is really weird, it was working when I posted that it was. Reuploaded the product and it started working again. (it's working right now)
yep, now it's working. You might want to change the color from green to orange or something, it's hard to see with the black background. Looks good though!
Distance
10-14-2006, 06:24 PM
Hi i cant figure out how to get these both to work together..
Username and Email
magnus
10-14-2006, 06:40 PM
What does this do?
Automatic updates?
No. If you've installed the original adaptation of this plugin, then you'll remember there were template edits to be performed. My modifications simply eliminate those steps and performs the template edits automatically, like many other more recent plugins.
No new features. No fixes. Just automatic template edits -- oh, and I renamed all instances of "Ajax" to "AJAX" -- just because I'm a stickler.
Shazz
10-14-2006, 06:54 PM
No. If you've installed the original adaptation of this plugin, then you'll remember there were template edits to be performed. My modifications simply eliminate those steps and performs the template edits automatically, like many other more recent plugins.
No new features. No fixes. Just automatic template edits -- oh, and I renamed all instances of "Ajax" to "AJAX" -- just because I'm a stickler.
Oh... I get it, Thanx for the letting me know :)
Distance
10-15-2006, 08:31 PM
Hi i cant figure out how to get these both to work together..
Username and Email
my message.. ;)
Shazz
10-15-2006, 08:42 PM
my message.. ;)
I think it would be a seperate modification... But it would be nice to have :)
Like
' passwords do not match'
and the rest.
IPB has this built in :(
Aerox95
10-27-2006, 05:21 AM
hi, great hack. would click install if it works on my board ^^ but i've no idea what you're meaning with allowing guest access on misc.php - but i'm sure it's only a matter of time until i'll find it out :p but maybe you should describe exactly what you're meaning with this....
and maybe you thought about including a check for censored words? this would be a nice feature :)
thx & best regards ausm Saarland! ^^
Aerox95
10-27-2006, 06:26 AM
okay, problem solved, but it wasn't misc.php.... :-/
elrafei
11-06-2006, 03:11 PM
than u man :)
elrafei
11-06-2006, 04:10 PM
i have a problem after i install the hack
when u go to register u find this 2 lines in the top of page
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.';
please help me to fix this problem >>
mauro1947
11-17-2006, 06:59 PM
Hi!
This mods works fine with vBulletin 3.6.3?
Somebody has probed???
Thanks, and excuse my english!
Shazz
11-17-2006, 07:00 PM
Hi!
This mods works fine with vBulletin 3.6.3?
Somebody has probed???
Thanks, and excuse my english!
Yes...
mauro1947
11-17-2006, 07:02 PM
Hi!
Thanks for your FASTEST reply!
Thanks again
Bye!
Shazz
11-17-2006, 07:08 PM
Your welcome, have a nice day...
da420
11-17-2006, 11:13 PM
Your welcome, have a nice day...
Would you like fries with that?
blogtorank
11-17-2006, 11:30 PM
Thanks for the great hack!!! *Installed*
Masked Crusader
11-25-2006, 01:16 AM
Great mod especially with the number of users I already have :)
*Installed*
Shazz
11-25-2006, 04:26 AM
Would you like fries with that?
Um..
..?
I've seen something like this on some web site and I was impressed.
Now I have it on mine :cool:
Woot!
Terminatoronly
01-02-2007, 06:51 AM
nice hack installed :D it would be great if you make it for the password and the email too it will look much better when it appear it like that with a picture with right and wrong pictures thats awsem
grandfso
01-08-2007, 11:30 PM
Well, I switched to vB 3.6.4 and on register.php?do=register I get:
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.';
Is this something with the mod not supporting newest vB or it's me?
mrahul
01-11-2007, 05:34 AM
how can I allow guests to view misc.php ?? & is it safe to use, i.e no probs from hackers ?
tankaya61
01-11-2007, 05:51 AM
its working 3.6.4
thanks
yuriy
01-11-2007, 03:12 PM
what did I do wrong? wow, I am not a n00b at this but these are my results on registration, check my screenshot to see a problem, I am running vB3.6.4 and I have 2 username input boxes, please help me, Thanks!
EDIT: everything is working fine, in instructions it says:
# now FIND
<div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
<strong>$vbphrase[username]</strong>:<br />
<input type="text" class="bginput" name="username" size="50" maxlength="$vboptions[maxuserlength]" value="$username" />
</div>
# and REPLACE it with:
<div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
<strong>$vbphrase[username]</strong>:<br />
<input type="text" class="bginput" name="username" size="50" maxlength="$vboptions[maxuserlength]" value="$username" <if condition="$vboptions['checkusernameactive']">onblur="checkUsername(this.value)"</if> />
<if condition="$vboptions['checkusernameactive']"><div id="checkusername"></div></if>
</div>
but I usually search for: the first couple of letters like <div class="smallfont" style="margin-bottom:$ :) but I didn't see little lower another same text was there :) so yea no probs with this, it's working GOOD!
as you can see in my template I got 2 alike ones:
<div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
<phrase 1="$vboptions[bbtitle]">$vbphrase[to_post_must_first_register]</phrase>
</div>
<div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
<strong>$vbphrase[username]</strong>:<br />
<input type="text" class="bginput" name="username" size="50" maxlength="$vboptions[maxuserlength]" value="$username" />
</div>
at first I edited the first text, and I had that dumb thing thats in my screenshot, as soon as I edited the second one, and replaced the first one, everything is GOOD!
magnus
01-12-2007, 02:21 PM
I posted a version earlier in the thread that will perform the template edits automatically. So, if you're not comfortable editing templates you can try that one.
Rabbitoh Warren
09-03-2007, 01:51 PM
Is this hack working on vB 3.6.8?
funinthesun
11-17-2007, 02:46 PM
Thank you for this - installed.
It's working fine for me on 3.6.8
dfc005
03-25-2008, 03:37 AM
Does this hack work on 3.7.0 rc1?
dfc005
03-31-2008, 05:24 AM
Anyone?
Robert9
04-20-2008, 04:19 PM
Has anyone an idea how to add an regexp to proof the new username?
I php i do something like: ^[0-9a-zA-Z\.\-_]+$
but i have no clue how to do this is js.
dfc005
05-17-2008, 01:08 AM
I guess this hack is no longer supported.
Anyone know of a similar one or got this working for vB 3.7.0
Welshy2008
08-07-2008, 07:49 PM
Thank You MrNase.
this mod isn't working in vb 3.7.3
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.