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)

Aligator21 12-17-2007 10:01 AM

Quote:

Originally Posted by CNY750Rider (Post 1402118)
Same here! Please correct. I tried to tab, enter, etc....email stays red.

Same and to me this problem.

Martell 12-17-2007 06:15 PM

Quote:

Originally Posted by mad@Max (Post 1400151)
When i type the name, then press enter - field fill "Loading..." and freeze, and do nothing! Why?

The same problem... How to correct???

AWJunkies 12-17-2007 10:56 PM

Getting issues with users with the new one. I am trying to receive info from them on what happened but have to return to old system for now. I have over 500 new members a day and can't have any complications.

BobbyBig 12-18-2007 12:21 PM

The Username can't handle ÖÄÜ, instead it is showing "?" after it checks the Username

Example: Überweisung
After Loading: ?berweisung

We use UTF-8
Any solution on it ?

Regards

oicyu8chu 12-19-2007 06:23 PM

I guess we'll have to wait for the next release. :(

Coop1979 12-19-2007 08:31 PM

Is it possible to integrate NoSpam! into ajaxReg? That's the one missing piece for this hack. Here is the code to integrate it into other hacks:

Code:

NoSpam! - INTEGRATION WITH OTHER HACKS







Quick Register (https://vborg.vbsupport.ru/showthread.php?t=114342):



After installing both hacks, go to your plugin manager and find the plugin titled "Generate NoSpam! question" or "Generate and insert NoSpam! question" on the hook global_start. Edit it and FIND the following lines:



----------------

      default:

        $nospamdo = false;

----------------



REPLACE them with



----------------

      default:

        if ($vbulletin->options['nospam_use_reg'] AND $vbulletin->options['quickregister_active']) {

            $questions = explode("\n", $vbulletin->options['nospam_questions']);

            $nospamnumber = array_rand($questions);

            $qanda = explode(":",$questions["$nospamnumber"]);

            $nospamquestion = $qanda[0];

        }

        $nospamdo = false;

----------------



Now go to your template manager and edit the quick_register template. FIND this code:



----------------

<input type="submit" class="button" value="$vbphrase[quickregister_submit]" accesskey="s" /><input name="agree" id="cb_rules_agree" value="1" type="checkbox"><strong>$vbphrase[quickregister_agree] <a href="$vboptions[bburl]/register.php?" target="_blank">$vbphrase[quickregister_forumrules]</a></strong>&nbsp;

----------------



ABOVE it, add



----------------

  <if condition="$vbulletin->options['nospam_onoff'] AND $vbulletin->options['nospam_use_reg']">

    <br />$nospamquestion <input type="text" class="bginput" name="nospam" value="Answer here" onFocus="value=''" size="20" /> <input type="hidden" name="nospamnumber" value="$nospamnumber" />

  </if>

----------------



Then save the template. NoSpam! should be fully active with Quick Register now.









Forms Hack (https://vborg.vbsupport.ru/showthread.php?t=126676)



[Only tested on 3.6.4]



After installing both hacks and modifying the form however you like, edit the form template (however many you may have; the default is called simply form). FIND near the bottom:



----------------

<tr>

<td valign="top" colspan="3">

<p align="center">

<input type="submit" value="Submit" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" />

----------------



ABOVE that, add



----------------

<if condition="$vbulletin->options['nospam_onoff']">

<tr>

<td colspan="3" class="alt1">

$nospamfield

</td>

</tr>

</if>

----------------



Now edit the plugin "Generate NoSpam! question" or "Generate and insert NoSpam! question" on the hook global_start. Here, FIND this line:



----------------

      case 'newthread':

        if ($vbulletin->options['nospam_use_post']) {

----------------



REPLACE that with



----------------

      case 'newthread':

        if ($_REQUEST['action'] == 'form') {

            $nospamdo = true;

        }

        else if ($_REQUEST['action'] == 'submit') {

            $vbulletin->input->clean_array_gpc('p', array(

              'nospamnumber' => TYPE_UINT,

              'nospam' => TYPE_STR,

            ));

            $nospamnumber = $vbulletin->GPC['nospamnumber'];

            $questions = explode("\n", $vbulletin->options['nospam_questions']);

            $qanda = explode(":", strtolower($questions["$nospamnumber"]));

            unset($qanda[0]);



            function trim_array(&$answer)

            {

              $answer = trim($answer);

            }



            array_walk($qanda, 'trim_array');



            if (!in_array(strtolower(trim($vbulletin->GPC['nospam'])), $qanda))

            {

              eval(standard_error(fetch_error('nospam_wrong_answer')));

            }

            $nospamdo = true;

        }

        else if ($vbulletin->options['nospam_use_post']) {

----------------



The form should now work with NoSpam!.


CNY750Rider 12-20-2007 08:13 PM

uninstalled...

yuriy 12-20-2007 08:17 PM

this is crap.. users had problems registering with this!! the Captcha crap wouldnt verify.. heh

vietdjclub 12-21-2007 06:14 AM

uninstall. cos got the problem with username character

karel1985 12-27-2007 11:48 AM

also unistalled, please make an updated version that fixes the bugs


All times are GMT. The time now is 10:21 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.01860 seconds
  • Memory Usage 1,762KB
  • 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
  • (2)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