IMPORTANT
You must change your gender icons to "male.gif" or "female.gif" in order for the code to work.
Okay does this mean i have to change the board images too because the code isnt working for me fully yet either. It works for Admins, global mods and new members. I really want this to work! Will u look at my site and see if u can tell whats wrong?
unleashthemagic.proboards41.com/index.cgiIt worked for a friend of mines, she even looked at my other codes to see if it was messing ti up.
Here is the code i have:
<script type="text/javascript">
<!--
/*
Hi-Tech Mini-Profile v.1.2 - w/ Money
Created by Naruto
hatakeforum.proboards30.com/index.cgi*/
// Gender Colors
var Female = "pink";
var Male = "lightblue";
// Status Online / Offline Colors
var Online = "green";
var Offline = "red";
// Money Info
var Currency = "$";
var MoneyName = "Galleons";
var TD = document.getElementsByTagName("TD");
for(t=0;t<TD.length;t++){
if(TD[t].width=="20%" && TD[t].vAlign=="top" && TD[t].innerHTML.match(/Posts: (\d+)/gi)){
var Amount = TD[t].innerHTML;
var Amount = TD[t].innerHTML.split("Posts");
var Amount = Amount[1].split(":");
var Amount = Amount[1].split("<br>");
var PostCount = Amount[0];
var Money = parseInt((PostCount * 2.5));
var Info = TD[t].innerHTML.split("<b"+"r>");
if(navigator.appName.match(/Microsoft/i)){
var Info = TD[t].innerHTML.split("<B"+"R>");
}
var Posts = Info[13].split(":");
TD[t].cellSpacing="0";
if(Info[12].indexOf("Gender")==-1){
Info[12]="<font size='1'>---</font>";
}
if(Info[12].match("female.gif")){
Info[12]="<font color='"+Female+"'>Female</font>";
}
if(Info[12].match("male.gif")){
Info[12]="<font color='"+Male+"'>Male</font>";
}
if(Info[4].match("online")){
Info[4]="<font color='"+Online+"'>Online</font>";
}
if(Info[4].match("offline")){
Info[4]="<font color='"+Offline+"'>Offline</font>";
}
TD[t].innerHTML = "<table border='0' cellpadding='2' cellspacing='1' class='bordercolor' align='center' width='100%'><tr><td align='center' class='titlebg' colspan='2'><font size='1'>"+Info[0]+"</font></td></tr><tr><td align='center' class='windowbg2' colspan='2'><font size='1'>"+Info[1]+"</font><br />"+Info[2]+"</td></tr><tr><td align='center' class='windowbg' colspan='2'>"+Info[5]+"<br /><font size='1'>"+Info[7]+"</font></td></tr><tr><td class='windowbg2' width='50%'><font size='1'>Status:</font></td><td class='windowbg2' width='50%'><font size='1'>"+Info[4]+"</font></td></tr><tr><td class='windowbg2' width='50%'><font size='1'>Gender:</font></td><td class='windowbg2' width='50%'><font size='1'>"+Info[12]+"</font></td></tr><tr><td class='windowbg2' width='50%'><font size='1'>Posts:</font></td><td class='windowbg2' width='50%'><font size='1'>"+Posts+"</font></td></tr><tr><td class='windowbg2' width='50%'><font size='1'>"+MoneyName+":</font></td><td class='windowbg2' width='50%'><font size='1'>"+Currency+Money+"</font></td></tr></table><br /><table border='0' cellpadding='2' cellspacing='1' class='bordercolor' align='center' width='100%'><tr><td align='center' class='catbg'><font size='1'><b>Contact</b></font></td></tr><tr><td align='center' class='windowbg2'>"+Info[9]+Info[10]+"</td></tr></table>";
TD[t].innerHTML = TD[t].innerHTML.replace("Posts, ","");
}}
//-->
</script>