PDA

View Full Version : Star Hack Questions


01-27-2001, 10:48 PM
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


//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



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

01-28-2001, 08:36 AM
on mine I dont go by number of posts but name of titles as really the number of posts bit is in the vBulletin software standard already and has been all along.

So I used "Member" for 1star.gif
Not by number of posts but by title which is a lot better!

01-28-2001, 08:38 AM
Umm I think I misunderstood your post. :(
Oh well my reply is there to help somebody.

01-28-2001, 12:49 PM
The question is.

I want my Administrative Status with the amount of stars alotted to an Admin through this hack I setup!

But i want it to give me the title of Ultimate Master!

How would I do that?