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)

eViL_sTiGmA 12-14-2005 09:48 PM

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

fyjpm 01-21-2006 12:57 PM

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

JoergZ 01-22-2006 06:48 PM

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

Code Monkey 01-22-2006 07:59 PM

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.

Code Monkey 01-22-2006 09:36 PM

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


Fofer 01-22-2006 11:38 PM

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.

JoergZ 02-01-2006 05:10 PM

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

Code Monkey 02-02-2006 01:49 AM

I also released a hack with the complete code that I use which does much more with more to come. Live Feedback System:Registration.

MrNase 07-03-2006 04:57 PM

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

MrNase 09-19-2006 07:33 AM

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


All times are GMT. The time now is 05:01 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.01239 seconds
  • Memory Usage 1,753KB
  • 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
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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