Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[Addon]Password Strength
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-08-10 21:11:15
credit goes to the original coder at [url="http://www.btiteam.org/smf/index.php?topic=6137"]http://www.btiteam.org/smf/index.php?topic=6137[/url]

find in account-signup.php:

stdhead("Signup");

begin_frame("Signup");

?>

<? echo "" . COOKIES . "";?>
add after:




<script language="javascript" type="text/javascript">



var minpwlength = 4;

var fairpwlength = 7;



var STRENGTH_SHORT = 0;  // less than minpwlength

var STRENGTH_WEAK = 1;  // less than fairpwlength

var STRENGTH_FAIR = 2;  // fairpwlength or over, no numbers

var STRENGTH_STRONG = 3; // fairpwlength or over with at least one number



img0 = new Image();

img1 = new Image();

img2 = new Image();

img3 = new Image();



img0.src = 'images/tooshort.gif';

img1.src = 'images/fair.gif';

img2.src = 'images/medium.gif';

img3.src = 'images/strong.gif';



var strengthlevel = 0;



var strengthimages = Array( img0.src,

img1.src,

img2.src,

img3.src );



function updatestrength( pw ) {



if( istoosmall( pw ) ) {



strengthlevel = STRENGTH_SHORT;



}

else if( !isfair( pw ) ) {



strengthlevel = STRENGTH_WEAK;



}

else if( hasnum( pw ) ) {



strengthlevel = STRENGTH_STRONG;



}

else {



strengthlevel = STRENGTH_FAIR;



}



document.getElementById( 'strength' ).src = strengthimages[ strengthlevel ];



}



function isfair( pw ) {



if( pw.length < fairpwlength ) {



return false;



}

else {



return true;



}



}



function istoosmall( pw ) {



if( pw.length < minpwlength ) {



return true;



}

else {



return false;



}



}



function hasnum( pw ) {



var hasnum = false;



for( var counter = 0; counter < pw.length; counter ++ ) {



if( !isNaN( pw.charAt( counter ) ) ) {



hasnum = true;



}



}





return hasnum;



}



</script>





now find:





<tr>

<td>Password: <font class="small"><font color="#FF0000">*</font></td>

<td><input type="password" size="40" name="wantpassword" /></td>

</tr>

<tr>

<td>Confirm: <font class="small"><font color="#FF0000">*</font></td>

<td><input type="password" size="40" name="passagain" /></td>

</tr>





replace with:





<tr>

<td>Password: <font class="small"><font color="#FF0000">*</font></td>

<td><input maxlength="15" onkeyup="updatestrength( this.value );" type="password"  size="40" name="wantpassword" id="password" /></td>

</tr>

<tr>

<td>Confirm: <font class="small"><font color="#FF0000">*</font></td>

<td><input maxlength="15" onkeyup="updatestrength( this.value );" type="password" class="keyboardInput" size="40" name="passagain" id="password" /></td>

</tr>

<tr>

<td>Password Strength:</td>

<td><img src="images/tooshort.gif" id="strength" alt="" /></td>

</tr>







now copy the pics out of the rar file and add them to your images folder.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=2713"]images.rar[/url]
images.rar
Download
Unknown User
2008-08-10 21:46:50
Thank you very much, I went on your site and I prefer this code in relation to the first shift  :blink:  .

It no longer lacks images french  :blink:  .
Unknown User
2008-08-10 22:03:31
Lol u have seen me posting this all day and some one kept deleting it then took it of my site and got credit for it   :blink:  :blink:  :blink:  :blink: :blink:
Unknown User
2008-08-10 22:31:25
"fozshell, post: 45413":
Lol u have seen me posting this all day and some one kept deleting it then took it of my site and got credit for it   :blink:  :blink:  :blink:  :blink:  :blink:

the reason yours got deleted because you did not follow the rules. i did not take it off of your site and i did not get credit for anything. this mod was already on the torrent trader forums twice for V.1xx.  here [url="http://www.torrenttrader.org/index.php?showtopic=4346"]http://www.torrenttrader.org/index.php?showtopic=4346[/url] and here somewhere else.
Unknown User
2008-08-11 16:37:37
hehe nice mod thx
Unknown User
2010-09-05 10:47:18
merci fonctionne bien sur mom 2.5 cool et bonne id
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728