PDA

View Full Version : Different Stars Hack


Peter Hauser
03-03-2001, 06:28 PM
Freddie showed us to integrate a star hack (Thanks ;) ), but I found it not so well by showing the posting numbers to the admins. Better the admins have all time the same superior status, while the other users have dependent stars by posting number.

Now I changed the Hack:



<?php

unset($stars);

if ($post[usergroupid]==5 || $post[usergroupid]==6)
$stars = '<img src="images/Admin1.gif" border=0 width="9" height="10"><img src="images/Admin2.gif" border=0 width="9" height="10"><img src="images/Admin3.gif" border=0 width="9" height="10"><img src="images/Admin4.gif" border=0 width="9" height="10"><img src="images/Admin5.gif" border=0 width="9" height="10">';
elseif ($post[posts] > 500)
$stars .= '<img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10">';
elseif ($post[posts] > 300)
$stars .= '<img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10">';
elseif ($post[posts] > 150)
$stars .= '<img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10">';
elseif ($post[posts] > 50)
$stars .= '<img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10">';
elseif ($post[posts] > 5)
$stars .= '<img src="images/star.gif" border=0 width="11" height="10">';
if (!$stars)
$stars = '<br>';
else
$stars .= '<br><br>';
?>


These are nice admin stars:

http://3dwin.gamesmania.de/forum/images/Admin1.gifhttp://3dwin.gamesmania.de/forum/images/Admin2.gifhttp://3dwin.gamesmania.de/forum/images/Admin3.gifhttp://3dwin.gamesmania.de/forum/images/Admin4.gifhttp://3dwin.gamesmania.de/forum/images/Admin5.gif

If you dont know the rest, look under http://www.vbulletin.com/forum/showthread.php?s=&threadid=8663&highlight=stars

Here http://3dwin.gamesmania.de/forum/showthread.php?s=&threadid=2015 you can see the results.

Best regards

03-03-2001, 08:02 PM
Originally posted by Peter Hauser
Freddie showed us to integrate a star hack (Thanks ;) ), but I found it not so well by showing the posting numbers to the admins. Better the admins have all time the same superior status, while the other users have dependent stars by posting number.

I don't agree so that is why you got it the way you did. My superior status is obvious by my color of stars. I prefer for the # of stars to be the same for everyone on my forum depending on their post count.

03-03-2001, 08:10 PM
"Sorry" for my idea to change a little bit the outfit of the admin status. I understand that it can be not so useful to show "to much" an admin status by different stars, but it is a proposition to someone who wants it. Thats all!

Bye

03-03-2001, 09:27 PM
I was just explaining why I did it that way, I wasn't criticizing you.

03-03-2001, 10:01 PM
Ok, I misunderstood you perhaps a little bit. A propos: we had the UBB befor the vbulletin (we changed last week) and are very happy, no problems an contents user . Thanks for all.