vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   End-User Options - Ajax Check Username (https://vborg.vbsupport.ru/showthread.php?t=127004)

MrNase 09-18-2006 10:00 PM

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.

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.

TTG 09-19-2006 08:58 AM

Quote:

Originally Posted by MrNase
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 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

Quote:

Originally Posted by MrNase
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
Code:

div#checkusername {
padding: 5px 7px;

be
Code:

div.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".

YLP1 09-25-2006 04:35 AM

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.


Quote:

Originally Posted by hornstar1337
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?

ravi 10-09-2006 12:49 AM

Quote:

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

Quote:

Originally Posted by abramelin
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

Quote:

Originally Posted by eNforce
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

Quote:

Originally Posted by trilljester
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

Quote:

Originally Posted by trilljester
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

Quote:

Originally Posted by HS2005
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


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
  • Page Generation 0.01377 seconds
  • Memory Usage 1,817KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete