I posted this in the Questions forum on accident so I figured I should put it here where it belongs!
For my Anime Board i have specially created several images & ranks here is what I have
Code:
//star hack
if ($userinfo[usertitle]=="Administrator") {
$usertitle="$userinfo[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0><img src=\"images/star5.gif\" border=0><img src=\"images/star6.gif\" border=0><img src=\"images/star7.gif\" border=0><img src=\"images/star8.gif\" border=0><img src=\"images/star9.gif\" border=0><img src=\"images/star10.gif\" border=0><img src=\"images/star11.gif\" border=0><img src=\"images/star12.gif\" border=0>";
}
elseif ($userinfo[usertitle]=="Moderator") {
$usertitle="$userinfo[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0><img src=\"images/star5.gif\" border=0><img src=\"images/star6.gif\" border=0><img src=\"images/star7.gif\" border=0><img src=\"images/star8.gif\" border=0><img src=\"images/star9.gif\" border=0><img src=\"images/star10.gif\" border=0><img src=\"images/star11.gif\" border=0>";
}
elseif ($userinfo[posts]>10000) {
$usertitle="$userinfo[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0><img src=\"images/star5.gif\" border=0><img src=\"images/star6.gif\" border=0><img src=\"images/star7.gif\" border=0><img src=\"images/star8.gif\" border=0><img src=\"images/star9.gif\" border=0><img src=\"images/star10.gif\" border=0>";
}
elseif ($userinfo[posts]>7500) {
$usertitle="$userinfo[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0><img src=\"images/star5.gif\" border=0><img src=\"images/star6.gif\" border=0><img src=\"images/star7.gif\" border=0><img src=\"images/star8.gif\" border=0><img src=\"images/star9.gif\" border=0>";
}
elseif ($userinfo[posts]>5005) {
$usertitle="$userinfo[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0><img src=\"images/star5.gif\" border=0><img src=\"images/star6.gif\" border=0><img src=\"images/star7.gif\" border=0><img src=\"images/star8.gif\" border=0>";
}
elseif ($userinfo[posts]>3750) {
$usertitle="$userinfo[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0><img src=\"images/star5.gif\" border=0><img src=\"images/star6.gif\" border=0><img src=\"images/star7.gif\" border=0>";
}
elseif ($userinfo[posts]>2000) {
$usertitle="$userinfo[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0><img src=\"images/star5.gif\" border=0><img src=\"images/star6.gif\" border=0>";
}
elseif ($userinfo[posts]>1250) {
$usertitle="$userinfo[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0><img src=\"images/star5.gif\" border=0>";
}
elseif ($userinfo[posts]>750) {
$usertitle="$userinfo[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0>";
}
elseif ($userinfo[posts]>300) {
$usertitle="$userinfo[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0>";
}
elseif ($userinfo[posts]>150) {
$usertitle="$userinfo[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0>";
}
else {
$usertitle= $userinfo[usertitle]<br><img src=\"images/star1.gif\" border=0>";
}
//end star hack
Quote:
if ($userinfo[usertitle]=="Administrator") {
$usertitle="$userinfo[usertitle]
|
I don't want it to say Administrator but I want it to have the same amount of Star IMGz
Now, I did the renaming of the status in the Control Panel left the Title Administrator... and it was only allotting the amount of stars according to the amount of posts!
Please clue me in on how I might pull this off
I never knew that taking on an Anime board would have been this much trouble
|