Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved]Mutiple rank MOD
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: Previous  1, 2, 3
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Re: Mutiple rank MOD
PostPosted: 07/25/2007 6:25 PM Reply with quote
Citation
masteranu84
Citation
Posts 487
Word Cnt. 35,729
BDay Oct 3
Sign Libra
Sex Sex:Male
Joined: Oct 29, 2006
Local time: 9:23 AM
Location: Klang, Malaysia
malaysiC.gif
I check the member list page ..it got a table align error..
Master, i want to know , can i delete the new RANK column? I don't like the member list have 2 column for the RANK. so can i know which file i need to open and delete ? I use back the normal 1 column enuff.
Back to Top
View user's profile Find all posts by masteranu84 Send private message   Visit poster's website Yahoo Messenger MSN Messenger Phoogle Map
Re: Mutiple rank MOD
PostPosted: 07/27/2007 5:14 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 5:23 AM
Location: St Pete, FL
peace.gif
It appeared that you had two different Rank MODs installed.  So to fix this wasn't as simple as simply deleting a column from the memberlist_body.tpl file.  The extra code was circumventing the Multiple Ranks MOD code in the memberlist.php file as well.  So this is what needed to be done to correct the problems:

OPEN
memberlist.php

FIND & DELETE
Code:
// MOD RANK MEMBERLIST BEGIN
      $user_rank = '';
      $rank_image = '';
      if ( $row['user_rank'] )
      {
         for($j = 0; $j < count($ranksrow); $j++)
         {
            if ( $row['user_rank'] == $ranksrow[$j]['rank_id'] && $ranksrow[$j]['rank_special'] )
            {
               $user_rank = $ranksrow[$j]['rank_title'];
               $rank_image = ( $ranksrow[$j]['rank_image'] ) ? '<img src="' . $images['rank'] . $ranksrow[$j]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
            }
         }
      }
      else
      {
         for($j = 0; $j < count($ranksrow); $j++)
         {
            if ( $row['user_posts'] >= $ranksrow[$j]['rank_min'] && !$ranksrow[$j]['rank_special'] )
            {
               $user_rank = $ranksrow[$j]['rank_title'];
               $rank_image = ( $ranksrow[$j]['rank_image'] ) ? '<img src="' . $images['rank'] . $ranksrow[$j]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
            }
         }
      }
      // MOD RANK MEMBERLIST END

OPEN
templates/Avalanche/memberlist_body.tpl

FIND & DELETE
Code:
<th class="thTop" nowrap="nowrap">{L_USER_RANK}</th>

FIND & DELETE
Code:
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberrow.USER_RANK_IMG}{memberrow.USER_RANK}</span> </td>

It should be displaying properly now...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Mutiple rank MOD
PostPosted: 07/27/2007 5:36 PM Reply with quote
Citation
masteranu84
Citation
Posts 487
Word Cnt. 35,729
BDay Oct 3
Sign Libra
Sex Sex:Male
Joined: Oct 29, 2006
Local time: 9:23 AM
Location: Klang, Malaysia
malaysiC.gif
Ok..it have working back to normal list. Thanks again~~ headbang  banana  blob8  headbang  banana
Back to Top
View user's profile Find all posts by masteranu84 Send private message   Visit poster's website Yahoo Messenger MSN Messenger Phoogle Map
Re: [Solved]Mutiple rank MOD
PostPosted: 07/27/2007 10:39 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 5:23 AM
Location: St Pete, FL
peace.gif
As always, you are quite welcome masteranu84!!!  

banana  banana  banana  banana  banana
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: Previous  1, 2, 3
Page 3 of 3


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0794s (PHP: 55% - SQL: 45%) - SQL queries: 39 - GZIP disabled - Debug on