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)

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 12:55 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.01639 seconds
  • Memory Usage 1,756KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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