in personal options, that checks the password that your users enter and can tell them
the minimum characters that password should contain, when they have enough, using
an algorithm it checks how secure is the password and gives feedback as "Weak", "Average"
"Strong" and the ultimate - "Secure"
It is pretty easy to install and can be converted to be used in any page, I also use this
on my forums as well!
Installation:
1. Download the attached .rar file
2. Extract the "passcheck" folder in to the plugins folder
3. Open inc/mod/personal.mdu
Find:
- Code: Select all
$showrow_avatar = '<tr '.cute_that().'><td height="21"> '.$echo['avatar'].':<td height="21"><input type="hidden" name="max_file_size" value="110000"><input tabindex="6" name="newavatar" type="file" size="27"></td><td>'.$delava;
} else {
unset($member['avatar']);
}
?>
After Add:
- Code: Select all
<!-- ***Password Strength Check*** -->
<script type="text/javascript" src="../../plugins/passcheck/jquery.js"></script>
<script type="text/javascript" src="../../plugins/passcheck/mocha.js"></script>
* It should work, havn't checked this src, if not just change to the path to where you've put it
Find:
- Code: Select all
<td height="21"> <?=$echo['newPass']; ?>
<td height="21" width="400" colspan="2"><input name="editpassword"> <?=$echo['ifNeedNewPass']; ?>
* We are editing now the new password input field
Change to:
- Code: Select all
<td height="21" style="vertical-align:text-top;"> <?=$echo['newPass']; ?>
<td height="21" width="400" colspan="2">
<div align="left">
<input name="editpassword" id="inputPassword" style="float:left;">
<div id="complexity" class="default">Password Strength Check</div>
<div style="float:left;"><br> <?=$echo['ifNeedNewPass']; ?><br><br></div>
</div>
4. Open skins/default.css:
At the End Add:
- Code: Select all
/* Password Strength Check */
#complexity, #results{
width: 153px;
padding: 3px 0;
height: 13px;
color: #000;
font-size: 10px;
text-align: center;
float:left;
font-weight: bold;
}
#results{
margin: 30px 0 20px 0;
}
.default{background-color: #CCC;}
.weak{background-color: #FF5353;}
.strong{background-color: #FAD054;}
.stronger{background-color: #93C9F4; }
.strongest{background-color: #B6FF6C;}
span.value{
font-weight:bold;
float: right;
}
* My design is a bit different to match my site being viewed in "rtl"
it should all work, plus you can always play with the design and css ^^
That's it, now when you enter your personal settings page you will see
another grey box that will react when you start entering your passwrod.
Hope you'll find it usefull,
DarkSlim
P.S
Also check: Add Random Password Option to Profile!
