|
|
|
|
|
|
|
|
|
curious
Full Member
  
Posts: 178

|
 |
Re:Rank Hack?
« Reply #9 on: January 11, 2002, 03:02:25 AM » |
|
Quote from: Allan_R on January 11, 2002, 02:42:57 AMum I cant understand? How do I do it? 
Like this: /* create the memberinfo and memberstars entries */ if( $userprofile[$user]['posts'] > $GodPostNum ) { $memberinfo[$user] = "$membergroups[6]"; $memberstar[$user] = "<img src=\"$imagesdir/star.gif\" border=0 alt=\"*\"><img src=\"$imagesdir/star.gif\" border=0 alt=\"*\"><img src=\"$imagesdir/star.gif\" border=0 alt=\"*\"><img src=\"$imagesdir/star.gif\" border=0 alt=\"*\"><img src=\"$imagesdir/star.gif\" border=0 alt=\"*\">"; } Take a look at the code above! $membergroups[6] are those members with 5 stars. Every <img src=\"$imagesdir/star.gif\" border=0 alt=\"*\"> is one displayed star. Now upload an image of you choice to your image directory (probably YaBBImages). Now replace every "star.gif" in the code above with the name of your image. the image will then be shown 5 times (just like the stars). If you want to display the image only once, you gotta delete the img tags and leave only one. Should look like this then: /* create the memberinfo and memberstars entries */ if( $userprofile[$user]['posts'] > $GodPostNum ) { $memberinfo[$user] = "$membergroups[6]"; $memberstar[$user] = "<img src=\"$imagesdir/myimage.gif\" border=0 alt=\"*\"> } Now do the same for the other membergroups. I.e.: elseif( $userprofile[$user]['posts'] > $SrPostNum ) { $memberinfo[$user] = "$membergroups[5]"; $memberstar[$user] = "<img src=\"$imagesdir/myimage2.gif\" border=0 alt=\"*\">"; }
|
|
|
Logged
|
|
|
|
|
|
|
|
|