Changing Password Strength Images

10
Oct
2011
Hello all!

I want to change the password strength images on my forum, and I know that it can be done in the forum CSS, but I don't know where it is located in the forum CSS.

Also, I want to change the text that shows up on top of the password strength images. How do I do this? Thanks in advance for the answer!
1 Nera., on 10/10/2011 at 18h12
Hi,

Change them in this CSS part

Code:
#pwd_good {
    background: url("http://illiweb.com/fa/p_strength/pwd_good.png") repeat scroll 0 0 transparent;
}
#pwd_middle {
    background: url("http://illiweb.com/fa/p_strength/pwd_middle.png") repeat scroll 0 0 transparent;
}
#pwd_bad {
    background: url("http://illiweb.com/fa/p_strength/pwd_bad.png") repeat scroll 0 0 transparent;
}


Very good
2 Programming Forums Admin, on 10/10/2011 at 18h16
Okay! Thanks! I would also like to know how you change the text that appears on top of the image too!


3 kirk, on 10/10/2011 at 19h47
i would think you just change the words in the code?.

#pwd_good
#pwd_middle
#pwd_bad
4 Programming Forums Admin, on 10/10/2011 at 19h49
kirk wrote:i would think you just change the words in the code?.

#pwd_good
#pwd_middle
#pwd_bad
I tried that as soon as Nera made her post, but it didn't work.
5 Rideem3, on 10/10/2011 at 20h12
Please go to Admin Panel -> Modules -> JavaScript Codes Management -> Create a new JavaScript ->

Paste:
Code:
jQuery(document).ready(function() {
document.getElementById("pwd_bad").innerHTML = "Weak";});

jQuery(document).ready(function() {
document.getElementById("pwd_middle").innerHTML = "Normal";});

jQuery(document).ready(function() {
document.getElementById("pwd_good").innerHTML = "Strong";});


Change "Weak" to whatever you want weak to become. Change "Normal to whatever you want normal to become. Change "Strong" to whatever you want strong to become.

Example:
Code:
jQuery(document).ready(function() {
document.getElementById("pwd_bad").innerHTML = "Below Average";});

jQuery(document).ready(function() {
document.getElementById("pwd_middle").innerHTML = "Average";});

jQuery(document).ready(function() {
document.getElementById("pwd_good").innerHTML = "Above Average";});

6 bHulleT.w, on 10/10/2011 at 20h45
Rideem, do i need add both ?
7 Rideem3, on 10/10/2011 at 21h03
No. The second code was just an example of what names you could use.
8 Programming Forums Admin, on 10/10/2011 at 22h17
Thanks! It works!


9 Base, on 10/10/2011 at 22h20
Problem Solved:Glad your problem is solved; locked and archived. Smile
Similar topics
OK so I've created a test forum with Forumotion to get a better idea of what to propose and I found that the default password strength graphics are pretty naff, so here are some new ones :0 If you are having trouble changing them just give
is there a specific amount of stamina or power attacks i need to do 2 get demon strength
Hi, Am I correct in thinking that it is currently not possible to change the reputation +/- images if you are using a phpBB3 version? If it is possible please point me in the right direction, i've looked everywhere but still am not clear of whether
Replies 1 to 9 on 9 for "Changing Password Strength Images"
See also
more_less
Informations

9 Replies For the topic :
"Changing Password Strength Images"

This topic has been viewed 742 times.

Last message :
10/10/2011 at 18h08 by "Programming Forums Admin"