vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - ajaxReg - Ajax Registration, with instant field checking (https://vborg.vbsupport.ru/showthread.php?t=144869)

Coders Shack 04-21-2007 11:09 PM

Quote:

Originally Posted by b6gm6n (Post 1232910)
i have a problem which i have not found the answer yet...same as chads... now here, i must remember... every user name is available, banned or whatever or not... please advise, cheers

-b6

what you just described is the purpose of the hack...

all the usernames will appear one of the following:

+ Available
+ Banned
+ Invalid Chars

I do not understand your issue.

TheMilkCarton 04-21-2007 11:33 PM

I think he was saying that everything shows up as "Available" even if it's a Banned Username, or already taken?

Dead End Society 04-22-2007 02:25 AM

^ Yes, the same thing has happened to me even after this upgrade. It says that every name is available, have it be a taken name, banned, or what ever. How can I fix this?

http://deadendsociety.net

Coders Shack 04-22-2007 02:30 AM

Quote:

Originally Posted by TheMilkCarton (Post 1233000)
I think he was saying that everything shows up as "Available" even if it's a Banned Username, or already taken?

oh hmm.

testebr 04-22-2007 07:26 AM

Quote:

^ Yes, the same thing has happened to me even after this upgrade. It says that every name is available, have it be a taken name, banned, or what ever. How can I fix this?
I have same problem.


Can you add referrer field check to your mod?

Thanks

bjhuang 04-22-2007 07:31 AM

should respect disable_ajax option.

Coders Shack 04-22-2007 08:18 AM

Quote:

Originally Posted by b6gm6n (Post 1232910)
i have a problem which i have not found the answer yet...same as chads... now here, i must remember... every user name is available, banned or whatever or not... please advise, cheers

-b6

do you have ajax enabled?

b6gm6n 04-22-2007 09:22 AM

oh yes all enabled...i had the very same problem with chads hack until i did something... forgotten what exactly... hoped you knew

kruchczan 04-22-2007 09:30 AM

Error :(
Not activist blocking user:

administrator Is Available
admin Is Available
mod Is Available

succo 04-22-2007 10:14 AM

ok, i tried to install it, but it didn't work, as all the other mods which modify 'full page' templates... i explain... i'm running a vba-wrapped vbulletin, in which every page is wrapped with vbadvanced columns, and this causes all the templates to be rewritten with vba styles, even (and more than others) the ones containing a full page, not only the <body></body> part, so that every plugin rewriting the template (out of the 'body' tag) isn't going to work

i'd recommend adding a plugin which inserts the needed code (the one loading register.js) directly in headinclude... i had to do it many times with other mods (such as googlemap ones, just to say)... it's a simple plugin like this:
Code:

if (THIS_SCRIPT == 'register')
{
$str = '<!-- / CSS Stylesheet -->';
$vbulletin->templatecache['headinclude'] = str_replace($str,$str.'<script type=\"text/javascript\" src=\"./clientscript/register.js\"></script>
<script type=\"text/javascript\">                                               
        var ajaxreg_email_error_1 = \"$vbphrase[ajaxreg_email_error_1]\";
        var ajaxreg_email_error_2 = \"$vbphrase[ajaxreg_email_error_2]\";
        var ajaxreg_email_error_3 = \"$vbphrase[ajaxreg_email_error_3]\";
        var ajaxreg_email_error_4 = \"$vbphrase[ajaxreg_email_error_4]\";
        var ajaxreg_email_error_5 = \"$vbphrase[ajaxreg_email_error_5]\";
        var ajaxreg_email_error_6 = \"$vbphrase[ajaxreg_email_error_6]\";
        var ajaxreg_email_error_7 = \"$vbphrase[ajaxreg_email_error_7]\";
        var ajaxreg_email_error_8 = \"$vbphrase[ajaxreg_email_error_8]\";
        var ajaxreg_name_minuserlength = \"' . $minuserlength['minuserlength'] . '\";
        var ajaxreg_name_usernameregex = \"' . $usernameregex['usernameregex'] . '\";
        var ajaxreg_name_inuse = \"$vbphrase[ajaxreg_name_inuse]\";
        var ajaxreg_name_illegal = \"$vbphrase[ajaxreg_name_illegal]\";
        var ajaxreg_name_ok = \"$vbphrase[ajaxreg_name_ok]\";
        var ajaxreg_name_error_1 = \"$vbphrase[ajaxreg_name_error_1]\";
        var ajaxreg_name_error_2 = \"$vbphrase[ajaxreg_name_error_2]\";
        var ajaxreg_name_checking = \"$vbphrase[ajaxreg_name_checking]\";
        var ajaxreg_password_error_1 = \"$vbphrase[ajaxreg_password_error_1]\";
        var ajaxreg_password_ok = \"$vbphrase[ajaxreg_password_ok]\";
        var ajaxreg_password_nomatch = \"$vbphrase[ajaxreg_password_nomatch]\";
        var ajaxreg_password_match = \"$vbphrase[ajaxreg_password_match]\";
        var ajaxreg_email_ok = \"$vbphrase[ajaxreg_email_ok]\";
        var ajaxreg_email_nomatch = \"$vbphrase[ajaxreg_email_nomatch]\";
        var ajaxreg_email_match = \"$vbphrase[ajaxreg_email_match]\";
</script>',$vbulletin->templatecache['headinclude']);
}

or something like this, even if i usually do it using a template containing the code to be inserted :)


All times are GMT. The time now is 08:07 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.01408 seconds
  • Memory Usage 1,748KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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