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)

AWJunkies 12-10-2007 07:36 PM

Thanks I look forward to it!

Coders Shack 12-10-2007 11:59 PM

ok v4.0.0 has been released in beta.

the upgrade process is:

delete all the files that you uploaded before and uninstall the older version, then install the new one, and finally upload the new files.

ill have an example running ASAP

Coders Shack 12-11-2007 12:05 AM

ok the example is here: ajaxReg

also im not sure if this fixed the character issues with different languages, but it might of :D

Shazz 12-11-2007 12:22 AM

Looks good, Upgrading :)

MrApples 12-11-2007 12:30 AM

Any plans for support for NoSpam? Or actually the "Human Verification System" coming up in 3.7.

TheBlackPoet 12-11-2007 12:37 AM

this is nice... i like the way it flows.. I had the first edition of this hack.. but this one is a far better improvement...

AWJunkies 12-11-2007 12:38 AM

Your link and reg does not work. It only shows the username and non of the rest of the code. Fx latest version

OK I see what happened it did not tell my the username was already in use. Or that there was an issue with username. That is why I didn't know what was going on.

Coders Shack 12-11-2007 12:56 AM

right now I'm open for suggestions/improvements

testebr 12-11-2007 12:57 AM

Where is the changelog of version 4?

AzzidReign 12-11-2007 01:22 AM

Can you explain what is different with this version other than it being recoded entirely?

beduino 12-11-2007 01:27 AM

Hi!
tks for share!
A little question: the order of the steps to upgrade is this?
Quote:

the upgrade process is:

delete all the files that you uploaded before and uninstall the older version, then install the new one, and finally upload the new files
Only to confirm.
Tks again
Beduino

Coders Shack 12-11-2007 01:32 AM

havent added a log because this it a early rollout, it functions but i want to make it even better. This release was for suggestions and hopefully to fix alot of issues.

Current Suggestions:

- Add a check button next to the username field instead of a onchange event
- Add a check email button and have it disappear once a good email is entered
- Make it focus on the next field

If anyone has any other ideas please feel free to post them.

Also if the quick flash bothers you when you first load the page i can offer an manual template edit.

Coders Shack 12-11-2007 01:33 AM

Quote:

Originally Posted by beduino (Post 1398934)
Hi!
tks for share!
A little question: the order of the steps to upgrade is this?


Only to confirm.
Tks again
Beduino

yes basically reverse the install process. then install again.

there are new phrases... so it requires a uninstall.

alexsinev 12-11-2007 02:13 AM

Quote:

Originally Posted by nader (Post 1395365)
does the code support arabia language?

Quote:

Originally Posted by Aligator21 (Post 1397255)
I also installed this addon, but i have the known problem with the Greek characters.
Does anyone find any solution?

I've uninstalled due to this problem :(

The solution for the version 3.1.1 is here. Just read the thread attentively.

But I have a question to Coders Shack. Have you included such a solution into your new version? This was a great problem for the languages other than English.

aus_dave 12-11-2007 02:40 AM

I'm not sure I like the gradual reveal of all the fields on this version - I thought the 'old' form was pretty good :).

Will it be possible to override this as an option?

Great hack btw too!

Saviour 12-11-2007 02:53 AM

So...basically there are no security issues with the previous version of this hack...just cosmetic fixes? Am I correct?

I really don't see the need to update this hack if the one I currently have installed is working perfectly.

I see a lot of this going on...where a mod comes out and users make referenece to this and that...having nothing to do with the overall functionality of a hack. The coder then feels the need to change it based on these recommendations...when there really isn't the need to do so.

Coders Shack...

Just leave it alone man...it's working fine on 3.6.8 PL2...

I really don't want to change it, if I don't have to. Plus...you sent all those who have installed your previous version...which was stable I might add...an email to a manual update of a Beta version...which IMHO isn't stable...otherwise, it wouldn't be a Beta version...right?

Okay...the changes you made per your post:
  • Add a check button next to the username field instead of a onchange event
  • Add a check email button and have it disappear once a good email is entered
  • Make it focus on the next field

You see my point? All of the changes you made above aren't necessary. Your previous version works fine. Leave well enough alone, man...seriously. Otherwise, I think I'll just uninstall this thing before you have someone tell you..."Hey, can you change the color of the red 'x' to a purple 'x'?"

This is a great hack, man...don't ruin it for everyone...

BTW...why don't you remove the unecessary vulgar email address from your attached image for this hack...really...that was a lack of good judgment...and a show of poor taste.

Coders Shack 12-11-2007 03:07 AM

Quote:

Originally Posted by Saviour (Post 1398958)
So...basically there are no security issues with the previous version of this hack...just cosmetic fixes? Am I correct?

I really don't see the need to update this hack if the one I currently have installed is working perfectly.

I see a lot of this going on...where a mod comes out and users make referenece to this and that...having nothing to do with the overall functionality of a hack. The coder then feels the need to change it based on these recommendations...when there really isn't the need to do so.

Coders Shack...

Just leave it alone man...it's working fine on 3.6.8 PL2...

I really don't want to change it, if I don't have to. Plus...you sent all those who have installed your previous version...which was stable I might add...an email to a manual update of a Beta version...which IMHO isn't stable...otherwise, it wouldn't be a Beta version...right?

Okay...the changes you made per your post:
  • Add a check button next to the username field instead of a onchange event
  • Add a check email button and have it disappear once a good email is entered
  • Make it focus on the next field

You see my point? All of the changes you made above aren't necessary. Your previous version works fine. Leave well enough alone, man...seriously. Otherwise, I think I'll just uninstall this thing before you have someone tell you..."Hey, can you change the color of the red 'x' to a purple 'x'?"

This is a great hack, man...don't ruin it for everyone...

BTW...why don't you remove the unecessary vulgar email address from your attached image for this hack...really...that was a lack of good judgment...an a show of poor taste.

main thing was that in the previous version it used RAW ajax, which had quite a few issues with different browsers. This version is much more cross-browser compatible. As for my taste and judgment they are both poor, not like that has anything to do with the quality of my release. Basically the past version was done wrong... and sloppy, i decided to do it the correct way and a more compatible way. Also i can care less if you uninstall my mod... I coded it for myself and its not like I'm being commissioned for my releases, 1 install vs 1,000 makes no difference.

AWJunkies 12-11-2007 03:20 AM

Did you see issue with username? It does not let you know there is an error if you put a username in that is already in use. Does nothing and the rest of the email and pass stuff does not show. You are kinda just stagnant until you go lets try another username. SO I suggest there be that username is already in use notice below username if that is the case.

Coders Shack 12-11-2007 03:30 AM

Quote:

Originally Posted by AWJunkies (Post 1398964)
Did you see issue with username? It does not let you know there is an error if you put a username in that is already in use. Does nothing and the rest of the email and pass stuff does not show. You are kinda just stagnant until you go lets try another username. SO I suggest there be that username is already in use notice below username if that is the case.

it doesn't give me an error, look @ the demo and type in chad.

TheMilkCarton 12-11-2007 03:33 AM

Quote:

Originally Posted by Coders Shack (Post 1398967)
it doesn't give me an error, look @ the demo and type in chad.

I don't get anything going to your demo. It looks completely default.

EDIT:

Aha. I had to hard refresh for some reason. Sorry.

EDIT2:

HOWEVER, there are some big issues with the email fields. If you remove what you've typed and then try again, the system doesn't reinitialize, meaning it stays red, because it still thinks you've removed the email. It also didn't tell me the 2nd email field matched, even though it did.

EDIT3:

It's because I was using autocomplete, which should probably be turned off on those fields. :)

(also, one tiny bug I noticed -- not with this mod -- is that the banner to your site uses an onclick event, but there is no cursor: pointer; :))

jalmz 12-11-2007 03:41 AM

does it works in 3.6.8?

alexsinev 12-11-2007 03:42 AM

Quote:

Originally Posted by Saviour (Post 1398958)
Coders Shack...

Just leave it alone man...it's working fine on 3.6.8 PL2...

I really don't want to change it, if I don't have to.

This is a great hack, man...don't ruin it for everyone...

Saviour, I agree with you absolutely.

Coders Shack, why didn't you answer my question?

TheMilkCarton 12-11-2007 03:46 AM

Quote:

Originally Posted by jalmz (Post 1398970)
does it works in 3.6.8?

Did you even go to his site? He's clearly using 3.6.8

youradhere4222 12-11-2007 03:55 AM

Hi, Coders Shack

I have a few suggesions.

No "Check" buttons.
Don't display an error until a person has paused on an incorrect entry for a certain ammount of time.

This is an excellent hack. Hopefully you'll implement it with 3.7. :)

Coders Shack 12-11-2007 03:57 AM

Quote:

Originally Posted by alexsinev (Post 1398950)
The solution for the version 3.1.1 is here. Just read the thread attentively.

But I have a question to Coders Shack. Have you included such a solution into your new version? This was a great problem for the languages other than English.

then don't install the new version... the older one is still available... as for the language issue you can test it on my demo site, it seems that its fixed.

Coders Shack 12-11-2007 04:00 AM

Quote:

Originally Posted by youradhere4222 (Post 1398978)
Hi, Coders Shack

I have a few suggesions.

No "Check" buttons.
Don't display an error until a person has paused on an incorrect entry for a certain ammount of time.

This is an excellent hack. Hopefully you'll implement it with 3.7. :)

I'll look into the timeout, that would be better. Thanks for the suggestions they are appreciated.

AWJunkies 12-11-2007 04:07 AM

LOL never mind it seems to work again it just doesn't support auto fill features from Fx or IE etc. IS there a way to allow this?

Just need the CHECK button to recognize them. When you do autofill and press check it doesn't work.

TheMilkCarton 12-11-2007 04:13 AM

I've already brought up that he needs to disable autocomplete.. He must not have felt like responding to me, though. :( lol.

alexsinev 12-11-2007 04:20 AM

Quote:

Originally Posted by Coders Shack (Post 1398979)
as for the language issue you can test it on my demo site, it seems that its fixed.

It seems that it works. Thanks! I'll try to test it on my own site later.

Coders Shack 12-11-2007 04:24 AM

Quote:

Originally Posted by AWJunkies (Post 1398983)
LOL never mind it seems to work again it just doesn't support auto fill features from Fx or IE etc. IS there a way to allow this?

Just need the CHECK button to recognize them. When you do autofill and press check it doesn't work.

thats because the check button is a dummy :P, its a pointless button but it gives the user something to click.

as for autocomplete, i will be disabling it, thanks for the info abt that TheMilkCarton :D

Saviour 12-11-2007 04:25 AM

Quote:

Originally Posted by alexsinev (Post 1398971)
Saviour, I agree with you absolutely.

Coders Shack, why didn't you answer my question?

Thanks...

I'm leaving the hack as is...not bothering with his latest version. Works fine on all browsers I've used...IE7, Opera, Firefox, Avant. No complaints from anyone...yet.

Gotta love the attitude, though. Complimented him on his efforts...what do I get? Not even a "thank you" or "How's your mother?" or nothing...know what I mean?

I applaud his efforts, but if he can't take constructive criticism...

TheMilkCarton 12-11-2007 04:26 AM

Quote:

Originally Posted by AWJunkies (Post 1398983)
Just need the CHECK button to recognize them. When you do autofill and press check it doesn't work.

Right, but you shouldn't have autocomplete on the 2nd field, the one that confirms the correct email. That sort of defeats the purpose of having two fields, if they both autocomplete. :)

TheMilkCarton 12-11-2007 04:29 AM

Quote:

Originally Posted by Coders Shack (Post 1398996)
how do i disable autocomplete

Well, autocomplete="off" for Firefox, but that doesn't validate. You could use JS to give the fields that value upon initialization. I'm sure there are other methods that work on all browsers that use autocomplete. Not really sure exactly how it's done though.

Coders Shack 12-11-2007 04:31 AM

Quote:

Originally Posted by TheMilkCarton (Post 1399000)
Well, autocomplete="off" for Firefox, but that doesn't validate. You could use JS to give the fields that value upon initialization. I'm sure there are other methods that work on all browsers that use autocomplete. Not really sure exactly how it's done though.

thanks ill do it via JS :D

Coders Shack 12-11-2007 04:33 AM

Quote:

Originally Posted by Saviour (Post 1398997)
Thanks...

I'm leaving the hack as is...not bothering with his latest version. Works fine on all browsers I've used...IE7, Opera, Firefox, Avant. No complaints from anyone...yet.

Gotta love the attitude, though. Complimented him on his efforts...what do I get? Not even a "thank you" or "How's your mother?" or nothing...know what I mean?

I applaud his efforts, but if he can't take constructive criticism...

your post was selfish... This release was because i needed to code it correctly unlike the past version and also by doing so it fixed many other issues with languages, the language issue has always been around with this mod and i am determined to fix that issue the right way. It may work fine on your board as is but that doesn't mean that it did on others.

TheMilkCarton 12-11-2007 04:40 AM

Quote:

Originally Posted by Coders Shack (Post 1399001)
thanks ill do it via JS :D

From here:
Quote:

1. to disable autocomplete on one or several text input boxes add the following CSS class attribute value to each one: class="disableAutoComplete" so such input tag might look like: <input type="text" class="disableAutoComplete" name="mySocialSecurityNumber" value="111-11-1111"/>
2. add the following script block at the bottom of your document, say, right before the </body> tag, inline, or in a separate .js file:

<script language="JavaScript" type="text/javascript">
if (document.getElementsByTagName) {
var inputElements = document.getElementsByTagName("input");
for (i=0; inputElements[i]; i++) {
if (inputElements[i].className && (inputElements[i].className.indexOf("disableAutoComplete") != -1)) {
inputElements[i].setAttribute("autocomplete","off");
}//if current input element has the disableAutoComplete class set.
}//loop thru input elements
}//basic DOM-happiness-check
</script>

3. ...
4. let me know if it works ;]
That's a very old post, but I don't see anything wrong with it, off-hand. :) I'm sure there are some easier, more modern ways.

And I stand corrected, autocomplete="off" works for IE too.

Coders Shack 12-11-2007 04:47 AM

Quote:

Originally Posted by TheMilkCarton (Post 1399003)
From here:


That's a very old post, but I don't see anything wrong with it, off-hand. :) I'm sure there are some easier, more modern ways.

And I stand corrected, autocomplete="off" works for IE too.

4.0.0 was coded using jQuery, it would take 1 line to disable all autcompletes
Code:

$("input").attr("autocomplete","off");
also if your into JS i would totally recommend jQuery.

TheMilkCarton 12-11-2007 05:17 AM

Quote:

Originally Posted by Coders Shack (Post 1399007)
4.0.0 was coded using jQuery, it would take 1 line to disable all autcompletes
Code:

$("input").attr("autocomplete","off");
also if your into JS i would totally recommend jQuery.

Oh... nice.

I never checked your source code otherwise I'd never have bothered finding that old article. :) I use jQuery myself, but I tend not to use it with vBulletin because it still somehow causes too many issues, even with noConflict mode set.

I guess jQuery wouldn't harm register.php any, though. :)

(Here's to hoping 3.7 resolves any issues with JS libraries *crosses fingers*)

Coders Shack 12-11-2007 05:25 AM

Quote:

Originally Posted by TheMilkCarton (Post 1399019)
Oh... nice.

I never checked your source code otherwise I'd never have bothered finding that old article. :) I use jQuery myself, but I tend not to use it with vBulletin because it still somehow causes too many issues, even with noConflict mode set.

I guess jQuery wouldn't harm register.php any, though. :)

(Here's to hoping 3.7 resolves any issues with JS libraries *crosses fingers*)

lol, if it does i guess ill be using yahoo's API. nothing wrong with learning another popular API

Magnumutz 12-11-2007 08:34 AM

Dude... it looks like it's not checking the E-mail address on your website.


All times are GMT. The time now is 03: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.02068 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
  • (2)bbcode_code_printable
  • (23)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