vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [Product] AJAX: Username check on registration (https://vborg.vbsupport.ru/showthread.php?t=93109)

MrNase 07-28-2005 10:00 PM

[Product] AJAX: Username check on registration
 
:mad: RC 1 only! :mad:
*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? :rolleyes:



  • 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 :D

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

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

theArchitect 07-29-2005 05:27 AM

Very cool. I will install it on my test board today.

MrNase 07-29-2005 10:33 AM

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

theArchitect 07-29-2005 10:51 AM

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.

MrNase 07-29-2005 11:07 AM

Ah, ok Iam updating the instructions. Thanks for letting me know :)

theArchitect 07-29-2005 11:09 AM

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.

MrNase 07-29-2005 11:21 AM

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

Scott MacVicar 07-30-2005 02:11 PM

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.

MrNase 07-30-2005 02:49 PM

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

prawn 07-30-2005 02:55 PM

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?


All times are GMT. The time now is 03:13 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.01176 seconds
  • Memory Usage 1,751KB
  • 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
  • (3)bbcode_html_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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