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)

Triky 12-11-2007 09:07 AM

Quote:

Originally Posted by Magnumutz (Post 1399071)
Dude... it looks like it's not checking the E-mail address on your website.

Yup, same here.

TheMilkCarton 12-11-2007 10:22 AM

Quote:

Originally Posted by Magnumutz (Post 1399071)
Dude... it looks like it's not checking the E-mail address on your website.

Quote:

Originally Posted by Triky (Post 1399078)
Yup, same here.

If you guys read, you'd know not to use autocomplete.

Type it out yourselves. I'm guessing he hasn't disabled autocomplete yet.

Edit:

Still works fine for me, but you must type it out.

TheBlackPoet 12-11-2007 12:10 PM

oh man... it worked sweet last night.. but this morning i saw there was an update., (or was it?).. so i deleted the previous one and reinstalled the product and deleted the clientscript .js and reuploaded it...
now when i go to test it.., everything still works fine, EXCEPT.. the register button is grayed out still it wont let you complete the registration....

hmmm

so i turned it off.. and the registration works fine

Newfarm 12-11-2007 12:58 PM

Looks like that's happening on the demo forum as well, same with email address being red when no autocomplete has been used. Strange.

Coders Shack 12-11-2007 02:56 PM

Quote:

Originally Posted by Newfarm (Post 1399155)
Looks like that's happening on the demo forum as well, same with email address being red when no autocomplete has been used. Strange.

not sure what your talking about

Coders Shack 12-11-2007 02:57 PM

Quote:

Originally Posted by TheBlackPoet (Post 1399142)
oh man... it worked sweet last night.. but this morning i saw there was an update., (or was it?).. so i deleted the previous one and reinstalled the product and deleted the clientscript .js and reuploaded it...
now when i go to test it.., everything still works fine, EXCEPT.. the register button is grayed out still it wont let you complete the registration....

hmmm

so i turned it off.. and the registration works fine

it should be the same as mine, http://scriptasy.com/clientscript/register.js

Magnumutz 12-11-2007 03:12 PM

Yeah... dude, you should disable the auto-complete until the bug is fixed.

TheMilkCarton 12-11-2007 04:03 PM

Quote:

Originally Posted by Magnumutz (Post 1399239)
Yeah... dude, you should disable the auto-complete until the bug is fixed.

That IS the bug, so how do you propose he disables it without fixing the bug? I doubt there's a very easy way to have the field recognize an autocomplete. (or the JavaScript used on those fields, rather)

itsonlychand 12-11-2007 04:14 PM

Great :)

Marked as "installed"

Howell 12-11-2007 04:55 PM

v.4.0.0 installed and running fine on Firefox But image verification doesn't work with IE7

*Disabled*

ogameclub 12-11-2007 05:49 PM

v.4.0.0
Error Complate registration:
-after image verification error,
-copy/paste e-mail address, or change address.

Red Spider 12-11-2007 06:40 PM

Can't get v4.0.0 to work at all (IE shows Error on Page) and v3.1.1 shows the following:

Quote:

Warning: preg_match() [function.preg-match]: Compilation failed: missing ) at offset 1 in /ajax.php(474) : eval()'d code on line 8

Warning: preg_match() [function.preg-match]: Compilation failed: unmatched parentheses at offset 0 in /ajax.php(474) : eval()'d code on line 8

Warning: preg_match() [function.preg-match]: Compilation failed: missing terminating ] for character class at offset 1 in /ajax.php(474) : eval()'d code on line 8
test username Is Available

TheBlackPoet 12-11-2007 08:17 PM

Quote:

Originally Posted by Coders Shack (Post 1399233)
not sure what your talking about


when you verify the email address it stays red.... instead of turning green... i can live with that... i just loved the way it originally worked.. really sweet..

TheMilkCarton 12-11-2007 08:35 PM

Quote:

Originally Posted by TheBlackPoet (Post 1399441)
when you verify the email address it stays red.... instead of turning green... i can live with that... i just loved the way it originally worked.. really sweet..

It turns green for me. Are you sure you didn't "verify" the 2nd one using autocomplete? Not sure if it's been fixed yet (to not use autocomplete)

Coders Shack 12-12-2007 05:42 AM

ok it would be cool if you guys messed with the demo and told me what you think so far. I changed quite a few things.

TheMilkCarton 12-12-2007 06:08 AM

Umm... The username check is being a little too thorough..

1) It's actually telling me that it's too short once I type a letter or two, and once it gets to 5 letters, it turns green and keeps me from typing anymore.

Then, once I try to delete it and try again, the input background stays green, but then the X comes up and says that it's too short..

There are more issues now than before, basically. :(

You must must must change the Username Check back to an onBlur event, or whatever you used before.. It's nightmarishly annoying to have it check before you've even finished typing.

2) Once I fill out most of the info, and then decide to go back and change my username, the 1st password input field does not stay green.

3) Email address check also starts checking before you're even done typing.

3a) For instance.... type out "email@yahoo.co.uk", and it changes to the next field after you type out "co"
3b) But it also tells me that I'm entering an invalid email before I ever enter anything. (If I press Shift for example, it immediately says I'm entering an invalid email.)

--------

Have you increased the time it waits in the past few minutes? I don't seem to have a problem anymore... with the name checking. :)

Coders Shack 12-12-2007 06:11 AM

i could change the time out, made it 3 times longer.

TheMilkCarton 12-12-2007 06:23 AM

Quote:

Originally Posted by Coders Shack (Post 1399696)
i could change the time out, made it 3 times longer.

I'm still not sure about the current checking method. Alot of people sit at their computer thinking of a name to use.. Sometimes they type out part of it and then let it sit. The biggest problem about this current method, is that I can't seem to click back inside the box. At least initially. It took me about a dozen clicks and entirely too much effort to try and edit my username right after it had checked.

But I think I also see the problem in using an onBlur event.. Since you've greyed out the other fields, there's nothing for a person to "Tab" to.

Newfarm 12-12-2007 01:46 PM

Quote:

Originally Posted by Coders Shack (Post 1399233)
not sure what your talking about

It doesn't happen at home using FF but at work using ie6.

Seems to me that the new form breaks on certain browsers which is a bit of a problem as far as I'm concerned ;).

The new functionality of having a timeout on the input fields really doesn't work out too well from my point of view. I do like what you're trying to do, but how about it being on a lower timeout but not switching fields and making the "completed" field "done" ?

This way you could type in:

usern -> wait a bit and consider while getting the message that it's free -> complete it to username and get a new update (could possibly store 'usern' as a var and compare it to 'username' and if they're different do a new check and output new result to user).

Basically it needs to update the status either with a button or close to realtime, this artificial delay just feels really weird.

Coders Shack 12-12-2007 02:36 PM

yea i was expecting it to break, im working off a linux box. When i have time ill actually mess with it more.

mad@Max 12-12-2007 10:42 PM

When i type the name, then press enter - field fill "Loading..." and freeze, and do nothing! Why?

rayw 12-13-2007 02:13 AM

Great work. The new version is a very nice improvement. :)

TheMilkCarton 12-13-2007 07:03 PM

In the latest version:

1) Username check field still stays green after you delete username. However, border still turns red and states "needs to be longer" as it should.

2) If you were to click in the CAPTCHA field, even if it's still greyed out, and then click out of it, it still tries to match the CAPTCHA and returns an error. THEN, it is also no longer greyed out. It should probably only attempt to verify upon typing out all 6 letters (It's always 6, correct?)

3) If you were to go back to a previous stage to change something, i.e. a username or password, the first box in the next step "un-greens" itself (the background color), although it still remains "confirmed" and this doesn't effect whether or not the "Complete Registration" button is greyed out. <--- This is mainly only aesthetic, but it could also be confusing to some people why the first password or first email box is no longer green.

A solution to #3 could be as easy as forcing the next input field to reverify itself if you change the input field before it. I'm sure this is possible in jQuery. (you should probably also force it to check and make sure the field already has a value, of course)

diim_nowa 12-13-2007 08:03 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?

I have the same problem either
How to correct ?

DssCrazy 12-13-2007 09:15 PM

i am having a problem also with this new version when all feild are filled out it will not let you click complete reg! why is this?

Gharibe 12-14-2007 06:44 AM

Complete Button is still disable after filling the form correctly in 4.0 version

filmcanavari 12-14-2007 07:54 PM

image verification doesn't work with IE7

TheJordan 12-15-2007 06:39 AM

Good stuff. Installed.

rayw 12-16-2007 08:20 AM

v4.0.0 isn't working properly for me. The confirm email address field remains red, even though the address is available and correct. :(

Prevents me from completing the registration.

CNY750Rider 12-16-2007 01:35 PM

Quote:

Originally Posted by rayw (Post 1402022)
v4.0.0 isn't working properly for me. The confirm email address field remains red, even though the address is available and correct. :(

Prevents me from completing the registration.

Same here! Please correct. I tried to tab, enter, etc....email stays red.

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 09:42 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.01995 seconds
  • Memory Usage 1,857KB
  • 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
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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