Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

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
  #32  
Old 12-14-2005, 09:48 PM
eViL_sTiGmA eViL_sTiGmA is offline
 
Join Date: Jun 2005
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JoergZ
@eViL_sTiGmA: At the end of the instructions you find the code for the CSS code you have to paste.

Change there
Code:
font-size: 70%;

to
Code:
font-size: 100%;


Then the text is bigger.
Doh, i looked everywhere but there =P

Thanks, i love it now =D
Reply With Quote
  #33  
Old 01-21-2006, 12:57 PM
fyjpm's Avatar
fyjpm fyjpm is offline
 
Join Date: Oct 2005
Location: Buffalo, NY
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JoergZ
Because there was no reaction, I did a workaround for my board. You can do the additional checks in the plugin ajax_checkusername
@JoergZ - Can you please post your addt'l checks? Thank you!

-John
Reply With Quote
  #34  
Old 01-22-2006, 06:48 PM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fyjpm
@JoergZ - Can you please post your addt'l checks?
I don't know if this is o.k. or if it is against the rules.

Maybe Mr. Nase can give his o.k. for that.


J?rg
Reply With Quote
  #35  
Old 01-22-2006, 07:59 PM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JoergZ
I don't know if this is o.k. or if it is against the rules.

Maybe Mr. Nase can give his o.k. for that.


J?rg
It is ok to post fixes or hacks to a hack. The rules allow for this.
Reply With Quote
  #36  
Old 01-22-2006, 09:36 PM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

***************HACK**********************
Replace ajax_checkusername.js with the attached file which I altered.

Replace the contents of the plugin "
AJAX: Username check" with this code.

PHP Code:
// ############################### start AJAX username check ###############################
$vbulletin->input->clean_array_gpc('p', array(
    
'username'      => TYPE_STR
));
if (
$_REQUEST['do'] == 'checkusername' AND $vbulletin->GPC['username'] != ''
{

    
// set XML type and nocache headers
    
header('Content-Type: text/plain');
    
header('Expires: ' gmdate('D, d M Y H:i:s') . ' GMT');
    
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
    
header('Pragma: public');
    
    
$username $vbulletin->GPC['username'];
    
$unicode_username preg_replace('/&#([0-9]+);/esiU'"convert_int_to_utf8('\\1')"$username);
    
    if (!empty(
$username) AND $checkuser $db->query_first("
            SELECT username
            FROM " 
TABLE_PREFIX "user
            WHERE username IN ('" 
$db->escape_string($username) . "', '" $db->escape_string($unicode_username) . "')
        "
))
    {
        echo 
1;
    }
    else
    {
        echo 
0;
    }


************************************************** **

This hack will update this product to use vb's built in AJAX functions.

It will also have it return the data as text/plain instead of text/xml. It wil return a 1 or a 0 instead of all that xml code to wrap the 1 or the 0. This eliminates some of the DOM code and should make it a hair quicker and a b it less use of resources.

Reply With Quote
  #37  
Old 01-22-2006, 11:38 PM
Fofer Fofer is offline
 
Join Date: Aug 2005
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work with Styles other than the vBulletin built-in one? I ask because I tried installing this on my forum (where I use Aqua-Soft 2) and I couldn't find all the strings in the 'register' template that the instructions called for.

So I backed out and reversed my steps.
Reply With Quote
  #38  
Old 02-01-2006, 05:10 PM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you JumpD for posting your modification. I am very busy at the moment, so I had no time to post my modification earlier. Now I saw yours is much better, because I added hard-coded things to the plugin. So no reason to post my personal "dirty" modification anymore

When I have time, I will replace my modifications with yours.


BR

J?rg
Reply With Quote
  #39  
Old 02-02-2006, 01:49 AM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also released a hack with the complete code that I use which does much more with more to come. Live Feedback System:Registration.
Reply With Quote
  #40  
Old 07-03-2006, 04:57 PM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am sorry to disappoint you but having trouble with one member of the vBulletin team I decided not to support my products any further. I think my constant quarrel with Floris has had an impact on how the whole team treats me as a user and so I am holding up my mirror to them.
Reply With Quote
  #41  
Old 09-19-2006, 07:33 AM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A 3.6.1 version is out using phrases, plugins and more.
https://vborg.vbsupport.ru/showthread.php?t=127004
Reply With Quote
Reply

Thread Tools

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:27 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.05542 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (1)bbcode_php
  • (4)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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