Welcome, Guest. Please Login or Register.
May 02, 2025, 02:24:01 AM
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 4 ... 7 Reply Ignore Print
Author Topic: Rank Hack?  (Read 2771 times)
thunderchild
Jr. Member
**
Posts: 52


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

WWW
Re:Rank Hack?
« Reply #15 on: January 11, 2002, 06:07:09 PM »
Reply with quote

er, has anyone heard of YaBB defying its coding?

I edited load.php, as instructed, and now it displays the old stars instead of the nice new comadores rank, here, look at Losers post, and the rank of moderator is supposed to be Comadore, NOT moderator:

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

The pic hes supposed to have is this one:

This is the user pics code [or whatever it is called]:
:
   /* create the memberinfo and memberstars entries */
   if( $userprofile[$user]['posts'] > $GodPostNum ) {
      $memberinfo[$user] = "$membergroups[6]";
      $memberstar[$user] = "<img src=\"$imagesdir/ranks/cap.jpg\" border=0 alt=\"Captain\">";
   }
   elseif( $userprofile[$user]['posts'] > $SrPostNum ) {
      $memberinfo[$user] = "$membergroups[5]";
      $memberstar[$user] = "<img src=\"$imagesdir/ranks/com.jpg\" border=0 alt=\"Commander\">";
   }
   elseif( $userprofile[$user]['posts'] > $FullPostNum ) {
      $memberinfo[$user] = "$membergroups[4]";
      $memberstar[$user] = "<img src=\"$imagesdir/ranks/leuc.jpg\" border=0 alt=\"Leutenant Commander\">";
   }
   elseif( $userprofile[$user]['posts'] > $JrPostNum ) {
      $memberinfo[$user] = "$membergroups[3]";
      $memberstar[$user] = "<img src=\"$imagesdir/ranks/leu.jpg\" border=0 alt=\"Leutenant\">";
   }
   else {
      $memberinfo[$user] = "$membergroups[2]";
      $memberstar[$user] = "<img src=\"$imagesdir/ranks/ens.jpg\" border=0 alt=\"Ensign\">";
   }

   /* 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] = "<img src=\"$imagesdir/ranks/coma.jpg\" border=0 alt=\"Comadore\">";
   }
   if( $userprofile[$user]['memberGroup'] == 'Administrator' ) {
      $memberstar[$user] = "<img src=\"$imagesdir/ranks/admin.jpg\" border=0 alt=\"Fleet Admiral\">";
      $memberinfo[$user] = "<B>$membergroups[0]</B>";
   }
   if( $userprofile[$user]['memberGroup'] == 'Global Moderator' ) {
      $memberstar[$user] = "<img src=\"$imagesdir/ranks/adm.jpg\" border=0 alt=\"Admiral\">";
      $memberinfo[$user] = "<B>$membergroups[7]</B>";
   }
« Last Edit: January 11, 2002, 06:11:17 PM by thunderchild » Logged
PabUK
Full Member
***
Posts: 136


I eat llamas!

WWW
Re:Rank Hack?
« Reply #16 on: January 11, 2002, 08:32:35 PM »
Reply with quote

Read my post just before yours, that sounds like the same problem.

My only guess is that the mod bit is added somewhere else, however that is possible.
Logged


944 Topics, 15010 Posts, 180 Members as of 30th April
PabUK
Full Member
***
Posts: 136


I eat llamas!

WWW
Re:Rank Hack?
« Reply #17 on: January 12, 2002, 05:09:51 AM »
Reply with quote

I fixed my problem - the moderator image comes from Display.php.
Logged


944 Topics, 15010 Posts, 180 Members as of 30th April
Hieu
Noobie
*
Posts: 9


Stay cool :)

ICQ - 78830170 WWW
Re:Rank Hack?
« Reply #18 on: January 13, 2002, 08:20:58 PM »
Reply with quote

Hm I understand, but how can I add more Ranks?

I tried it so:
   if( $userprofile[$user]['posts'] > $SomewhatPostNum ) {
      $memberinfo[$user] = "$membergroups[7]";
      $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=\"*\"><img src=\"$imagesdir/star.gif\" border=0 alt=\"*\">";
   }
   elseif( $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=\"*\">";
   }

But it don't work
Logged
Matt Siegman
Super Duper Developer
YaBB God
*****
Posts: 927


Red Hot!

ICQ - 95930457 WWW
Re:Rank Hack?
« Reply #19 on: January 13, 2002, 08:36:03 PM »
Reply with quote

just hard code the numbers, otherwise, you have to mess with the admin center...
Logged

thunderchild
Jr. Member
**
Posts: 52


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

WWW
Re:Rank Hack?
« Reply #20 on: January 13, 2002, 08:37:34 PM »
Reply with quote

Quote from: PabUK on January 12, 2002, 05:09:51 AMI fixed my problem - the moderator image comes from Display.php.

Could you quote where it is in display.php, i cant seem to find it at all, and please someone tell us how to add more ranks! PLEASE, my users are after my blood for more ranks, and for that matter more smilies.  ;D

---> EDIT <---
Quote from: Matt Siegman on January 13, 2002, 08:36:03 PMjust hard code the numbers, otherwise, you have to mess with the admin center...
Could you please explain your self? Please! ???
« Last Edit: January 13, 2002, 08:39:23 PM by thunderchild » Logged
Matt Siegman
Super Duper Developer
YaBB God
*****
Posts: 927


Red Hot!

ICQ - 95930457 WWW
Re:Rank Hack?
« Reply #21 on: January 13, 2002, 08:51:02 PM »
Reply with quote

instead of: $OtherRankPosts use 500
Logged

thunderchild
Jr. Member
**
Posts: 52


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

WWW
Re:Rank Hack?
« Reply #22 on: January 13, 2002, 09:17:05 PM »
Reply with quote

So, add as many new ranks as needed, but dont bother with the admin center stuff?

edit--> Right Ive got my moderator rank pin working, now I cant get the name to change from moderator to Comadre, any one got any ideas?
« Last Edit: January 13, 2002, 09:32:48 PM by thunderchild » Logged
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:Rank Hack?
« Reply #23 on: January 13, 2002, 09:43:42 PM »
Reply with quote

Calm down children! Natt have you forgot this is what we're making? Anyone familiar with dOCda's Add more member groups hack will know whats going on  ;) I have a good bit done so far, but its still a good bit off completion..
Logged

PHPNews has been released!!! Download it now!!!
thunderchild
Jr. Member
**
Posts: 52


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

WWW
Re:Rank Hack?
« Reply #24 on: January 13, 2002, 09:49:15 PM »
Reply with quote

Iam calm, but my members are after me!

And, most of them are in my form, imagine 15 angry 15/16 year olds after you!  :o

But seriously, got any ideas on my problem?
Logged
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:Rank Hack?
« Reply #25 on: January 13, 2002, 09:52:32 PM »
Reply with quote

I know, I'm still using the Perl version 'til I get this hack done, as its a necessity for my forums too! Major pisser!  :'( I dunno bout the bug, didn't really look at it but this hack will do all you want and more, so you might have to calm your members 'til then :P
Logged

PHPNews has been released!!! Download it now!!!
thunderchild
Jr. Member
**
Posts: 52


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

WWW
Re:Rank Hack?
« Reply #26 on: January 13, 2002, 09:57:23 PM »
Reply with quote

Believe me, my members can be calm, when they want me, but when 15 trekies are after you with laser pens [pointers] made into phasers its quite worrying  :D

To help me try and calm my members, have you got a good explanation of your mod? A link, or can you just type what it is out?  ;)
Logged
Matt Siegman
Super Duper Developer
YaBB God
*****
Posts: 927


Red Hot!

ICQ - 95930457 WWW
Re:Rank Hack?
« Reply #27 on: January 13, 2002, 10:40:30 PM »
Reply with quote

It lets you add more membergroups, define their # of posts untill they hit that rank, define the picture, change the color of their name/membergroup
Logged

thunderchild
Jr. Member
**
Posts: 52


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

WWW
Re:Rank Hack?
« Reply #28 on: January 13, 2002, 10:42:07 PM »
Reply with quote

Without editing the php's that make up YaBBse? How many ranks can you have, or isnt it limited?
Logged
Matt Siegman
Super Duper Developer
YaBB God
*****
Posts: 927


Red Hot!

ICQ - 95930457 WWW
Re:Rank Hack?
« Reply #29 on: January 14, 2002, 12:11:36 AM »
Reply with quote

it'll be a mod, and with it, no limit will exist:)
Logged

Pages: 1 [2] 3 4 ... 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.103 seconds with 20 queries.