vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   AJAX: check if username exists on registration in realtime (https://vborg.vbsupport.ru/showthread.php?t=81531)

Sebastian 05-16-2005 12:15 AM

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).

CompuJonathan 05-16-2005 12:51 AM

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

defi 05-16-2005 01:37 AM

Works excellent!

/me clicks install

JulianD 05-16-2005 02:15 AM

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]

dsboyce8624 05-16-2005 03:28 AM

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

MrNase 05-16-2005 08:09 AM

Quote:

Originally Posted by JimpsEd
Does this add aa query with every key press, then?

No it doesn't. It checks for the username when the user is done with typing in the username and proceeding to a new input field.
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:

Marco van Herwaarden 05-16-2005 08:58 AM

Try to edit ANY phrase using the normal ACP tooling. (just save it, no need for a real edit)

nexialys 05-16-2005 09:15 AM

Quote:

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

for the ones that are asking, even if you have 20 000 users on your board, this process is not slower, and does not ask a lot of server power, because it's just reading one table WHEN someone register, not each time someone fill a form... your 20 000 members are not registering at the same moment... this is the same query that is called when someone login, or change his name, or send a pm, etc... please don't imagine strange behaviors when there is none...

MrNase 05-16-2005 11:51 AM

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 :)

Christine 05-16-2005 12:35 PM

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.


All times are GMT. The time now is 08:44 PM.

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.02150 seconds
  • Memory Usage 1,734KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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