Welcome, Guest. Please Login or Register.
May 02, 2025, 12:29:42 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Rank Hack? « previous next »
Pages: [1] 2 3 ... 7 Reply Ignore Print
Author Topic: Rank Hack?  (Read 2779 times)
thunderchild
Jr. Member
**
Posts: 52


YAY, YaBB SE finially works! Now, I LOVE YaBB SE!!

WWW
Rank Hack?
« on: January 10, 2002, 06:01:28 PM »
Reply with quote

Anyone know how to change the rank display. So that 1] You can add more ranks 2] Put single images instead of a multitude of stars?

And as I dont fully understand PHP, yet, although Im learning, can It be 'easy' to do? [if easy is possible to acheve?]
Logged
Dave A
Full Member
***
Posts: 213


I love YaBB SE!

WWW
Re:Rank Hack?
« Reply #1 on: January 10, 2002, 06:10:53 PM »
Reply with quote

Look for:

   /* 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=\"*\">";
   }
   elseif( $userprofile[$user]['posts'] > $SrPostNum ) {
      $memberinfo[$user] = "$membergroups[5]";
      $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=\"*\">";
   }
   elseif( $userprofile[$user]['posts'] > $FullPostNum ) {
      $memberinfo[$user] = "$membergroups[4]";
      $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=\"*\">";
   }
   elseif( $userprofile[$user]['posts'] > $JrPostNum ) {
      $memberinfo[$user] = "$membergroups[3]";
      $memberstar[$user] = "<img src=\"$imagesdir/star.gif\" border=0 alt=\"*\"><img src=\"$imagesdir/star.gif\" border=0 alt=\"*\">";
   }
   else {
      $memberinfo[$user] = "$membergroups[2]";
      $memberstar[$user] = "<img src=\"$imagesdir/star.gif\" border=0 alt=\"*\">";
   }

   /* If this user is a moderator, and we aren't calling this from the IM */
    $modcheck=LoadRealName($user);

   if( isset ($moderators[$modcheck]) && $sender != "im") {
      $modinfo[$user] = "<i>$membergroups[1]</i><BR>";
      $memberstar[$user] = "</font><img src=\"$imagesdir/starmod.gif\" border=0 alt=\"*\"><img src=\"$imagesdir/starmod.gif\" border=0 alt=\"*\"><img src=\"$imagesdir/starmod.gif\" border=0 alt=\"*\"><img src=\"$imagesdir/starmod.gif\" border=0 alt=\"*\"><img src=\"$imagesdir/starmod.gif\" border=0 alt=\"*\">";
   }
   if( $userprofile[$user]['memberGroup'] == 'Administrator' ) {
      $memberstar[$user] = "<img src=\"$imagesdir/staradmin.gif\" border=0 alt=\"*\"><img src=\"$imagesdir/staradmin.gif\" border=0 alt=\"*\"><img src=\"$imagesdir/staradmin.gif\" border=0 alt=\"*\"><img src=\"$imagesdir/staradmin.gif\" border=0 alt=\"*\"><img src=\"$imagesdir/staradmin.gif\" border=0 alt=\"*\">";
      $memberinfo[$user] = "<B>$membergroups[0]</B>";
   }
   if( $userprofile[$user]['memberGroup'] == 'Global Moderator' ) {
      $memberstar[$user] = "<img src=\"$imagesdir/stargmod.gif\" border=0 alt=\"*\"><img src=\"$imagesdir/stargmod.gif\" border=0 alt=\"*\"><img src=\"$imagesdir/stargmod.gif\" border=0 alt=\"*\"><img src=\"$imagesdir/stargmod.gif\" border=0 alt=\"*\"><img src=\"$imagesdir/stargmod.gif\" border=0 alt=\"*\">";
      $memberinfo[$user] = "<B>$membergroups[7]</B>";
   }

in Load.php, and each one you can change to a certain amount of stars or change it to one image!
Logged

----------------------------------------------------------
Come and join my forums at
http://www.dkanet.com/mboard/
thunderchild
Jr. Member
**
Posts: 52


YAY, YaBB SE finially works! Now, I LOVE YaBB SE!!

WWW
Re:Rank Hack?
« Reply #2 on: January 10, 2002, 06:21:20 PM »
Reply with quote

so basicly where it says {star code} X5, change it to a single image?
Logged
Dave A
Full Member
***
Posts: 213


I love YaBB SE!

WWW
Re:Rank Hack?
« Reply #3 on: January 10, 2002, 08:21:02 PM »
Reply with quote

Yeah, and with the X4, x3, x2 and so on...
Logged

----------------------------------------------------------
Come and join my forums at
http://www.dkanet.com/mboard/
thunderchild
Jr. Member
**
Posts: 52


YAY, YaBB SE finially works! Now, I LOVE YaBB SE!!

WWW
Re:Rank Hack?
« Reply #4 on: January 10, 2002, 09:40:33 PM »
Reply with quote

Thanks dude, want to see the results:

http://www.starmadacom.com/yabbse/index.php?board=2;action=display;threadid=26

Before you click be warned, its a star trek board, so be in for a shock!  :D
Logged
Allan_R
Full Member
***
Posts: 138


I'm a star trek fan!

WWW
Re:Rank Hack?
« Reply #5 on: January 10, 2002, 11:14:26 PM »
Reply with quote

hey man have u thought of these stars?
http://dynamic2.gamespy.com/~starmada/YaBB/YaBB.cgi?board=policyandmanage&action=display&num=1004917384
Logged

8) Allan_R 8)
Hamster Brothers/Sisters webmaster


http://hamsterbros.mattsiegman.com/hb/YaBBImages/avatars/compfreak.gif[/img]
[img]
Dave A
Full Member
***
Posts: 213


I love YaBB SE!

WWW
Re:Rank Hack?
« Reply #6 on: January 10, 2002, 11:40:28 PM »
Reply with quote

Those are nice thunderchild and allan_r!  I may have to do something like you guys!  My forum has the original stars, yuck!   ;D
Logged

----------------------------------------------------------
Come and join my forums at
http://www.dkanet.com/mboard/
Allan_R
Full Member
***
Posts: 138


I'm a star trek fan!

WWW
Re:Rank Hack?
« Reply #7 on: January 10, 2002, 11:54:52 PM »
Reply with quote

ya I know ^-^
Logged

8) Allan_R 8)
Hamster Brothers/Sisters webmaster


http://hamsterbros.mattsiegman.com/hb/YaBBImages/avatars/compfreak.gif[/img]
[img]
Allan_R
Full Member
***
Posts: 138


I'm a star trek fan!

WWW
Re:Rank Hack?
« Reply #8 on: January 11, 2002, 02:42:57 AM »
Reply with quote

um I cant understand? How do I do it?  :-\
Logged

8) Allan_R 8)
Hamster Brothers/Sisters webmaster


http://hamsterbros.mattsiegman.com/hb/YaBBImages/avatars/compfreak.gif[/img]
[img]
curious
Full Member
***
Posts: 178


WWW
Re:Rank Hack?
« Reply #9 on: January 11, 2002, 03:02:25 AM »
Reply with quote

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
Godai
Mod God :P
Sr. Member
****
Posts: 473


YaBB SE!!!!

ICQ - 70621553godai78@hotmail.com WWW
Re:Rank Hack?
« Reply #10 on: January 11, 2002, 09:52:33 AM »
Reply with quote

mmmm and what about a mod to this with a panel? :D
Logged

Emanuele 'Godai' Sparvoli
YaBB Italian Team
100% YaBB Lover
curious
Full Member
***
Posts: 178


WWW
Re:Rank Hack?
« Reply #11 on: January 11, 2002, 03:36:01 PM »
Reply with quote

I don't need it, but go ahead! :)
Logged
Godai
Mod God :P
Sr. Member
****
Posts: 473


YaBB SE!!!!

ICQ - 70621553godai78@hotmail.com WWW
Re:Rank Hack?
« Reply #12 on: January 11, 2002, 04:26:28 PM »
Reply with quote

You want it but you'll not use it? :P
Logged

Emanuele 'Godai' Sparvoli
YaBB Italian Team
100% YaBB Lover
curious
Full Member
***
Posts: 178


WWW
Re:Rank Hack?
« Reply #13 on: January 11, 2002, 05:14:06 PM »
Reply with quote

I don't need it, but obviously some other guys do. ;)
« Last Edit: January 11, 2002, 05:21:15 PM by curious » Logged
PabUK
Full Member
***
Posts: 136


I eat llamas!

WWW
Re:Rank Hack?
« Reply #14 on: January 11, 2002, 05:49:05 PM »
Reply with quote

I like this mod and have done it myself in my forums. Thanks. :)

However, there is a problem. Moderators still show up using the original moderator stars, not the new ones I specified. I even searched load.php for the old image filename and it is not in there. Is there another file somewhere I need to change?

I know as a fix I could overwrite the old image with the new mod one but I need to know anyway for a few other ideas I want to implement.

Please help. :)
Logged


944 Topics, 15010 Posts, 180 Members as of 30th April
Pages: [1] 2 3 ... 7 Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Rank Hack? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.042 seconds with 20 queries.