Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[Product] AJAX: Username check on registration Details »»
[Product] AJAX: Username check on registration
Version: 1.3, by MrNase MrNase is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Version: 3.5.0 RC1 Rating:
Released: 07-28-2005 Last Update: 07-29-2005 Installs: 55
DB Changes Uses Plugins Template Edits
Code Changes Additional Files  
No support by the author.

RC 1 only!
*Version: 1.3
`-> Fixed the instruction.
See this post for more information: https://vborg.vbsupport.ru/showpost....3&postcount=13

*Version: 1.2

`-> Updated the instructions and fixed a bug in the plugin 'Get Username check setting'. Everyone who installed this hack will be informed.
`-> Important: Users running 1.1 or prior: https://vborg.vbsupport.ru/showpost....16&postcount=7

* Version: 1.1
`-> Users who have this installed don't have to install it again.



Alright, here it comes.. The 3.5 version of my famous AJAX hack


This one is using the new Product Manager.
That means to you: All phrases, all settings, all plugins are added with one simple file import

Just one single click - isn't that great?



  • complete Product
  • phrases, settings, plugins added automatically
  • on-click uninstall *

It took me some time to figure out how vB3.5 ticks but it's working now. This was my first try on the new Product Manager ever so there might be some errors but I installed it 10 times (because it is so easy ) and it worked. You can even uninstall it with one simple click


It works exactly like vB3 version, there are some minor tweaks to the code but those only affect performance
There's only one really new thing: If the username is not taken, the user will see a message (with a green background) telling him that he can register the desired username.


Sadly the templates must be changed manually but.. There won't be any fun without some handicraft

There's detailed instructions how to install this beauty within the package but let me explain some things first:

In the package you'll find 3 files:
  • product-ajaxcheckuser.xml
  • instructions.txt
  • ajax_checkusername.js
The first one is the most important one. It contains all plugins, phrases and the queries to add the new setting. You can easily import that file with the new Product Manager in your AdminCP.

The rest is even easier: Copy the ajax_checkusername.js to your clientscript folder and then open instructions.txt for the template edits.


Iam short of time at the moment but I'll do my best to support this plugin (or product or..).. Just ask here in this thread. If you like to donate something (I got one for the first release of the script) send me a pm for my paypal address.


Anything more to say? Happy importing and _always_ do backups first!


Ah for those begging for a screenshot or demo.. As there has not much changend on the frontend please see this thread for more information: https://vborg.vbsupport.ru/showthread.php?t=81531


btw. Iam going to get some sleep now.. It's 5 in the morning here

* this includes plugins, settings and phrases.. Files have to be removed manually and templates must be reverted manually.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-29-2005, 05:27 AM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool. I will install it on my test board today.
Reply With Quote
  #3  
Old 07-29-2005, 10:33 AM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please report if it's working


I updated it to version 1.1... It now uses the Product Manager even better. This does not affect users who have this hack already installed
Reply With Quote
  #4  
Old 07-29-2005, 10:51 AM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrNase
Please report if it's working
It works great. Except:

You say to replace

HTML Code:
<input type="text" class="bginput" name="username" size="50" maxlength="$vboptions[maxuserlength]" value="$username" /></div>
With

HTML Code:
<input type="text" class="bginput" name="username" size="50" maxlength="$vboptions[maxuserlength]" value="$username" <if condition="$show[usernamecheck]">
onblur="checkName(this.value,'')" /></if></div>
<if condition="$show[usernamecheck]">
<span class="registererrorhidden" id="nameCheckFailed">$vbphrase[registererror]</span>
<span class="registerokhidden" id="nameCheckOk">$vbphrase[registerok]</span>
</if>
This creates a malformed conditional. What you need to do is to remove the </div> tag from the search item so it would look like this


HTML Code:
<input type="text" class="bginput" name="username" size="50" maxlength="$vboptions[maxuserlength]" value="$username" />
Apart from that everything works brilliantly.
Reply With Quote
  #5  
Old 07-29-2005, 11:07 AM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, ok Iam updating the instructions. Thanks for letting me know
Reply With Quote
  #6  
Old 07-29-2005, 11:09 AM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrNase
Ah, ok Iam updating the instructions. Thanks for letting me know
Any time.

BTW, your avatar seems to have vanished.
Reply With Quote
  #7  
Old 07-29-2005, 11:21 AM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Instructions are up to date, and there's a small fix available..

This information is for everyone running Version 1.1 or prior:

Open the plugin 'Get Username check setting' and replace it's content with:
PHP Code:
$show['usernamecheck'] = iif($vbulletin->options['usecheckusername'] == 1truefalse); 


btw. it's time for a new avatar
Reply With Quote
  #8  
Old 07-30-2005, 02:11 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Should consider using the built in AJAX functions in vbulletin_global.js since we've geared them towards all the XMLHTTPRequest browsers including the support of the buggy ones.
Reply With Quote
  #9  
Old 07-30-2005, 02:49 PM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried that but without a proper documentation (I know, it will be ready when vB3.5 is stable) it was nearly impossible for me to get it working

When I have further information I might release a new version which is using the vBulletin functions
Reply With Quote
  #10  
Old 07-30-2005, 02:55 PM
prawn prawn is offline
 
Join Date: Mar 2002
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

maybe this should be a build in function for the default release (guess it makes sense).

problem: i installed the plugin but it doesn't show up. what can it be?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06424 seconds
  • Memory Usage 2,314KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_html
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete