 | Re: Mutiple rank MOD |  |
Posted: 07/25/2007 6:25 PM |
|
|
|
|
|
| Citation |
| Posts |
487 |
| Word Cnt. |
35,729 |
| BDay |
Oct 3 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Oct 29, 2006
Local time: 9:15 AM
Location: Klang, Malaysia
|

|
|
|
|
 |
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 |
|
|
 | Re: Mutiple rank MOD |  |
Posted: 07/27/2007 5:14 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 5:15 AM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Mutiple rank MOD |  |
Posted: 07/27/2007 5:36 PM |
|
|
|
|
|
| Citation |
| Posts |
487 |
| Word Cnt. |
35,729 |
| BDay |
Oct 3 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Oct 29, 2006
Local time: 9:15 AM
Location: Klang, Malaysia
|

|
|
|
|
 |
Ok..it have working back to normal list. Thanks again~~  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved]Mutiple rank MOD |  |
Posted: 07/27/2007 10:39 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 5:15 AM
Location: St Pete, FL
|

|
|
|
|
 |
As always, you are quite welcome masteranu84!!!
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|