Advertise Here

Author Topic: [Code] Password Check  (Read 3131 times)

0 Members and 1 Guest are viewing this topic.

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
[Code] Password Check
« on: March 27, 2010, 07:49:53 pm »
Yet another code that was on Revolution X, only for the Exclusive Members :)

Admin >> Registration >> Registration Agreement

Add this to the bottom or the top of the Registration Agreement:
Code: [Select]
<script>/*Created By Agent Moose*/document.write("<script src='/jquery.js'></sc" + "ript>");$("input[name='passwrd2']").after(" <span id='CheckPW'></span>");$("input[name='passwrd1'],input[name='passwrd2']").keyup(function(){if($("input[name='passwrd1']").val() != $("input[name='passwrd2']").val()){document.getElementById("CheckPW").innerHTML = "<span style='font-weight:bold;color:red;'>Your Passwords Do Not Match</span>";};if($("input[name='passwrd1']").val() == $("input[name='passwrd2']").val()){document.getElementById("CheckPW").innerHTML = "<span style='font-weight:bold;color:green;'>Your Passwords Match</span>";};});</script>
This code is an add is only used when people are registering.  It just checks to see if both of your passwords are the same.

Enjoy :)
Check out Revolution X's Brand new Code Index!

Offline clairebear

  • SMF For Free Master
  • *
  • Posts: 1019
    • View Profile

  • Total Badges: 23
    Badges: (View All)
    Fifth year Anniversary Search Level 5 1000 Posts Poll Voter
Re: [Code] Password Check
« Reply #1 on: March 30, 2010, 11:57:23 am »
im confused by this one  :angel:
www.teardrop.mysmf.com

A support forum for support in loss from early miscarriage to five years.

Offline Andrew

  • Helpers
  • *
  • Posts: 2060
  • Andrew at your service
    • View Profile
    • Alabama Weather Prediction

  • Total Badges: 32
    Badges: (View All)
    10 Poll Votes Level 6 Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Re: [Code] Password Check
« Reply #2 on: March 30, 2010, 03:53:19 pm »
It checks the password a user registers with to make sure they match.

Offline Hakam J.

  • SMF For Free Member
  • *
  • Posts: 56
    • View Profile
    • The Gaming World

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Code] Password Check
« Reply #3 on: January 09, 2011, 05:55:58 am »
Wah!   This is brilliant.   It's also amazing that people don't need to submit the registration form, then it'll inform that the password is wrong or does not match!   This makes the process much easier, thanks Agent Moose.

Hakam J.,

 

Related Topics

  Subject / Started by Replies Last post
8 Replies
2943 Views
Last post January 17, 2008, 06:22:54 am
by LaundryLady
2 Replies
1634 Views
Last post April 28, 2008, 09:11:24 pm
by FinishTheFight
8 Replies
2262 Views
Last post November 12, 2008, 01:17:44 am
by gee
6 Replies
1482 Views
Last post December 31, 2008, 08:07:10 am
by BBfan940
55 Replies
22363 Views
Last post September 07, 2012, 04:08:19 am
by clairebear