Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.217
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ?This sh...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriousl...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Multiple ranks & staff view mod - forums admin page empt
Multiple ranks & staff view mod - forums admin page empt
Goto page 1, 2  Next

18 Replies / 2545 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Hacks n Mods

View previous topic :: View next topic


neilly
Reputation: 488 Add RepSubtract Rep
Local time: 10:26 AM
Location: Scotland
uk.gif

Armour Whore
Armour Whore

0.02 posts per day
Medals: 0

Joined: Dec 10, 2006
Last Visit: 18 May 2011
Posts: 40
Points: 7763 

Post Multiple ranks & staff view mod - forums admin page empt Posted: Sun Mar 29, 2009 5:59 pm

Shop Purchases:
Clan Roster 2.0 · Multiple Gamer Evo

Hi there LMAO Pint

I have a problem with the Multiple Ranks And Staff View mod which I purchased from youre wonderful downloads section.

I have uploaded the files and have edited the names .tpl etc files to the letter. I am 99% sure I have made no errors.

However, when I go to the .../modules/forums/admin/index.php all I get is a blank screen.

(Site and Personal cache is cleared)

Also, when trying to view someones profile, I get the following message

Code:
Parse error: syntax error, unexpected T_ELSE in /home/fighting/public_html/includes/usercp_viewprofile.php on line 161


Please help before I shoot myself in the head Embarrased

Slainte
Neilly Love

Last edited by neilly on Mon Apr 20, 2009 12:28 pm; edited 1 time in total
 

 
View user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger Reply with quote

neilly
Reputation: 488 Add RepSubtract Rep
Local time: 10:26 AM
Location: Scotland
uk.gif

Armour Whore
Armour Whore

0.02 posts per day
Medals: 0

Joined: Dec 10, 2006
Last Visit: 18 May 2011
Posts: 40
Points: 7763 

Post Re: Multiple ranks & staff view mod - forums admin page Posted: Mon Mar 30, 2009 8:24 am

Shop Purchases:
Clan Roster 2.0 · Multiple Gamer Evo

*bump* Please?
 

 
View user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger Reply with quote

Ped
Reputation: 64.1 Add RepSubtract Rep
votes: 35
Local time: 11:26 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

2.33 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 10 Feb 2012
Posts: 4468
Points: 181281 

Post Re: Multiple ranks & staff view mod - forums admin page Posted: Mon Mar 30, 2009 8:49 am

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

The problem with the majority of forums mods is there really old (some are like 4-5 years old) and dated, and unless some one who understands code actually installs it on there own site and fixes it whilst they go i very much doubt that we will be able to fix it just from that one error...

Did you have to edit any files ?

What version of PHPNuke are you using ?

HAve you installed any other forums mods ?
 

 
View user's profileSend private messageSend e-mail Reply with quote


neilly
Reputation: 488 Add RepSubtract Rep
Local time: 10:26 AM
Location: Scotland
uk.gif

Armour Whore
Armour Whore

0.02 posts per day
Medals: 0

Joined: Dec 10, 2006
Last Visit: 18 May 2011
Posts: 40
Points: 7763 

Post Multiple ranks & staff view mod - forums admin page empt Posted: Mon Mar 30, 2009 12:44 pm

Shop Purchases:
Clan Roster 2.0 · Multiple Gamer Evo

I am using Nuke Evolution 2.0.7



This is the README i got with it

Code:
############ Evo-Mods ########################################
##
## MOD Title: Multiple Ranks And Staff View
## MOD Author: Mighty Gorgon < mightygorgon@mightygorgon.com > (Luca Libralato) http://www.mightygorgon.com
## MOD Description: This MOD allows the admin to select more than one special rank for each user.
##                  The ranks selected will be shown in the profile, on each topic and in the memberlist.
##                  This MOD also allows to have a Staff and Online View in Memberlist (using Sort function).
##                  Username in Memberlist are colored respecting to their level.
##                  Guests and Banned users have their own ranks.
##                  Automatic ranks can now count also days and not only posts.
##
## MOD Version: 2.0.3
##
## Installation Level: Intermediate
## Installation Time:  25 minutes
##
##
##
## ==== Evo-Mods ==============================================
## MOD Porter:         Evo-Mods Team < shokker [at] evo-mods [dot] com > http://www.Evo-Mods.com
## MOD ID:             92
## MOD Ported on:      September 08, 2006
## MOD Compatibility:  Nuke-Evolution Basic RC 1
##                     Nuke-Evolution Basic RC 2
##             Nuke-Evolution Basic 2.00
##
## ==== Files =================================================
## Files To Edit: (17)
##                modules/Evo_UserBlock/addons/rank.php
##                staff.php
##                modules/Members_List/index.php
##                viewtopic.php
##                admin/admin_ranks.php
##                admin/admin_users.php
##                includes/page_header.php
##                includes/usercp_viewprofile.php
##                language/lang_english/lang_admin.php
##                language/lang_english/lang_main.php
##                templates/subSilver/memberlist_body.tpl
##                templates/subSilver/overall_header.tpl
##                templates/subSilver/profile_view_body.tpl
##                templates/subSilver/viewtopic_body.tpl
##                templates/subSilver/subSilver.cfg
##                themes/YOUR_THEME/forums/memberlist_body.tpl
##                themes/YOUR_THEME/forums/overall_header.tpl
##                themes/YOUR_THEME/forums/profile_view_body.tpl
##                themes/YOUR_THEME/forums/viewtopic_body.tpl
##                themes/YOUR_THEME/forums/forums.cfg
##                templates/subSilver/admin/user_edit_body.tpl
##                templates/subSilver/admin/ranks_edit_body.tpl
##
## Included Files: (4)
##                includes/functions_mg_ranks.php
##                templates/subSilver/ranks_body.tpl
##                templates/subSilver/images/spacer.gif
##                themes/YOUR_THEME/forums/ranks_body.tpl
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##
## ==== Updates ===============================================
## Please check http://evo-mods.com for the latest ported version of this mod.
## It can easily be found in our mod database (www.Evo-Mods.com/modules.php?name=Mods)
##
## ==== Author Notes ==========================================
## EasyMod 0.1.13 compliant.
## phpBB Link Discussion: http://www.phpbb.com/phpBB/viewtopic.php?t=276330
## phpBB Link Download: http://www.phpbb.com/phpBB/viewtopic.php?t=276330
## Author Link Discussion: http://www.mightygorgon.com/viewtopic.php?t=454
## Author Link Download: http://www.mightygorgon.com/download.php?id=36
##
## ==== MOD History ===========================================
##
##   2006-04-28 - Version 2.0.3
##     Updated for phpBB 2.0.20
##
##   2006-01-30 - Version 2.0.2
##     Fixed some bugs
##
##   2005-10-22 - Version 2.0.1
##     Fixed some bugs
##     ALTER TABLE nuke_users ADD user_rank2 INT(11) DEFAULT '-1' AFTER user_rank;
##     ALTER TABLE nuke_users ADD user_rank3 INT(11) DEFAULT '-2' AFTER user_rank2;
##     ALTER TABLE nuke_users ADD user_rank4 INT(11) DEFAULT '-2' AFTER user_rank3;
##     ALTER TABLE nuke_users ADD user_rank5 INT(11) DEFAULT '-2' AFTER user_rank4;
##
##   2005-09-01 - Version 2.0.0
##     Ranks generation and SQL rewritten from scratch.
##     Added Rank Summary Page.
##     Added automatic ranks based on joined date.
##
##   2005-04-20 - Version 1.3.5
##     Fixed some bugs.
##     Added default rank for banned users.
##     Added dynamic select box for ranks.
##
##   2005-04-13 - Version 1.3.4
##     Fixed some bugs.
##
##   2005-04-08 - Version 1.3.3
##     Fixed some bugs.
##     Added default rank for guests.
##
##   2005-04-04 - Version 1.3.2
##     Fixed some bugs.
##
##   2005-03-27 - Version 1.3.1
##     Fixed some MOD templates errors.
##
##   2005-03-19 - Version 1.3.0
##     Fixed some MOD templates errors.
##     Added Memberlist functions: Show Staff and Show Online.
##
##   2005-03-19 - Version 1.2.1
##     EasyMOD 0.1.13 Compliant.
##
##   2005-03-18 - Version 1.2.0
##     Several code improvements and reduced the numbers of queries.
##
##   2003-11-17 - Version 1.1.0
##     Code improvements.
##
##   2003-11-10 - Version 1.0.1
##     Added rank images in view profile.
##
##   2003-10-06 - Version 1.0.0
##     First Stable Release.
##
##   2003-01-18 - Version 0.1.4
##     Fixed some minor bugs.
##
##   2003-01-03 - Version 0.1.3
##     Fixed some bugs.
##
##   2003-01-02 - Version 0.1.2
##     Added Admin Panel support, changed level2 into rank2.
##
##   2003-01-01 - Version 0.1.0
##     First Release.
##
## ==== Additional Notes ======================================
## THIS SOFTWARE IS PROVIDED BY THE AUTHOR OR BY EVO-MODS
## 'AS IS' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
## BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
## AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
## EVENT SHALL THE AUTHOR OR ITS CONTRIBUTORS BE LIABLE FOR ANY
## DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
## DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
## ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
## LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
## ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
## ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
##
##
## ==== Warning! ==============================================
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD!
##
##############################################################



#
#-----[ COPY ]------------------------------------------------
#

Upload all files to their respective directories.

#
#
#-----[ SQL ]-------------------------------------------------
#

ALTER TABLE nuke_users ADD user_rank2 INT(11) DEFAULT '-1';
ALTER TABLE nuke_users ADD user_rank3 INT(11) DEFAULT '-2';
ALTER TABLE nuke_users ADD user_rank4 INT(11) DEFAULT '-2';
ALTER TABLE nuke_users ADD user_rank5 INT(11) DEFAULT '-2';

#
#-----[ OPEN ]------------------------------------------------
#

modules/Evo_UserBlock/addons/rank.php

#
#-----[ FIND ]------------------------------------------------
#

$rank_image = ($ranksrow[$j]['rank_image']) ? '<img src="

#
#-----[ AFTER, ADD ]----------------------------------------
#

modules/Forums/

#
#-----[ FIND ]------------------------------------------------
#

$rank_image = ($ranksrow[$j]['rank_image']) ? '<img src="

#
#-----[ AFTER, ADD ]----------------------------------------
#

modules/Forums/

#
#-----[ OPEN ]------------------------------------------------
#

modules/Forums/staff.php
#
#-----[ FIND ]------------------------------------------------
#

$rank_image = ( $ranksrow[$j]['rank_image'] ) ? '<img src="

#
#-----[ AFTER, ADD ]----------------------------------------
#

modules/Forums/

#
#-----[ FIND ]------------------------------------------------
#

$rank_image = ( $ranksrow[$j]['rank_image'] ) ? '<img src="

#
#-----[ AFTER, ADD ]----------------------------------------
#

modules/Forums/

#
#-----[ OPEN ]------------------------------------------------
#

ranks.php

#
#-----[ FIND ]------------------------------------------------
#

'RANK_IMAGE' => ($ranks[$i]['rank_image'] == '') ? '' : '<img src="

#
#-----[ AFTER, ADD ]----------------------------------------
#

modules/Forums/

#
#-----[ FIND ]------------------------------------------------
#

'RANK_IMAGE' => ($spe_ranks[$i]['rank_image'] == '') ? '' : '<img src="

#
#-----[ AFTER, ADD ]----------------------------------------
#

modules/Forums/

#
#-----[ OPEN ]------------------------------------------------
#

modules/Members_List/index.php

#
#-----[ FIND ]------------------------------------------------
#

$mode_types_text = array(

#
#-----[ IN-LINE FIND ]----------------------------------------
#

, $lang['Sort_Top_Ten']

#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#

, $lang['Staff']

#
#-----[ FIND ]------------------------------------------------
#

$mode_types = array(

#
#-----[ IN-LINE FIND ]----------------------------------------
#

, 'topten'

#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#

, 'staff'

#
#-----[ FIND ]------------------------------------------------
#

$select_sort_mode = '<select name="mode">';

#
#-----[ BEFORE, ADD ]-----------------------------------------
#

// Mighty Gorgon - Multiple Ranks - BEGIN
$lastfivemin = time() - 300;
// Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

'L_ICQ' => $lang['ICQ'],

#
#-----[ AFTER, ADD ]------------------------------------------
#

   // Mighty Gorgon - Multiple Ranks - BEGIN
   'L_USER_RANK' => $lang['Poster_rank'],
   // Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

switch( $mode )

#
#-----[ BEFORE, ADD ]-----------------------------------------
#

// Mighty Gorgon - Multiple Ranks - BEGIN
require_once('includes/functions_mg_ranks.'.$phpEx);
$ranks_sql = query_ranks();
// Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

   default:
      $order_by = "user_regdate $sort_order LIMIT $start, " . $board_config['topics_per_page'];
      break;
}

#
#-----[ BEFORE, ADD ]-----------------------------------------
#

   // Mighty Gorgon - Multiple Ranks - BEGIN
   case 'staff':
      $where_sql = "AND user_level > 0";
      $order_by = "user_level ASC LIMIT $start, " . $board_config['topics_per_page'];
      break;
   case 'online':
      if ( $userdata['user_level'] == ADMIN )
      {
         $where_sql = "AND user_session_time >= $lastfivemin";
      }
      else
      {
         $where_sql = "AND user_session_time >= $lastfivemin AND user_allow_viewonline <> 0";
      }
      $order_by = "user_session_time DESC LIMIT $start, " . $board_config['topics_per_page'];
      break;
   // Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

$sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar

#
#-----[ IN-LINE FIND ]----------------------------------------
#

, user_allowavatar

#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#

, user_rank , user_rank2, user_rank3, user_rank4, user_rank5, user_level

#
#-----[ FIND ]------------------------------------------------
#

$sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar

#
#-----[ IN-LINE FIND ]----------------------------------------
#

, user_allowavatar

#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#

, user_rank , user_rank2, user_rank3, user_rank4, user_rank5, user_level

#
#-----[ FIND ]------------------------------------------------
#

   ORDER BY $order_by";

#
#-----[ BEFORE, ADD ]-----------------------------------------
#

   $where_sql

#
#-----[ FIND ]------------------------------------------------
#

$posts = ( $row['user_posts'] ) ? $row['user_posts'] : 0;

#
#-----[ AFTER, ADD ]------------------------------------------
#

      // Mighty Gorgon - Multiple Ranks - BEGIN
      $user_ranks = generate_ranks($row, $ranks_sql);

      $user_rank_01 = ($user_ranks['rank_01'] == '') ? '' : ($user_ranks['rank_01'] . '<br />');
      $user_rank_01_img = ($user_ranks['rank_01_img'] == '') ? '' : ($user_ranks['rank_01_img'] . '<br />');
      $user_rank_02 = ($user_ranks['rank_02'] == '') ? '' : ($user_ranks['rank_02'] . '<br />');
      $user_rank_02_img = ($user_ranks['rank_02_img'] == '') ? '' : ($user_ranks['rank_02_img'] . '<br />');
      $user_rank_03 = ($user_ranks['rank_03'] == '') ? '' : ($user_ranks['rank_03'] . '<br />');
      $user_rank_03_img = ($user_ranks['rank_03_img'] == '') ? '' : ($user_ranks['rank_03_img'] . '<br />');
      $user_rank_04 = ($user_ranks['rank_04'] == '') ? '' : ($user_ranks['rank_04'] . '<br />');
      $user_rank_04_img = ($user_ranks['rank_04_img'] == '') ? '' : ($user_ranks['rank_04_img'] . '<br />');
      $user_rank_05 = ($user_ranks['rank_05'] == '') ? '' : ($user_ranks['rank_05'] . '<br />');
      $user_rank_05_img = ($user_ranks['rank_05_img'] == '') ? '' : ($user_ranks['rank_05_img'] . '<br />');

      if ( $row['user_level'] == ADMIN )
      {
         // You may prefer to show the level instead of coloring the username
          $level = '<b style="color:#' . $theme['fontcolor3'] . '">' . $lang['Memberlist_Administrator'] . '</b>';
         //$username = '<b style="color:#' . $theme['fontcolor3'] . '">' . $username . '</b>';
      }
      elseif( $row['user_level'] == MOD )
      {
         // You may prefer to show the level instead of coloring the username
          $level = '<b style="color:#' . $theme['fontcolor2'] . '">' . $lang['Memberlist_Moderator'] . '</b>';
         //$username = '<b style="color:#' . $theme['fontcolor2'] . '">' . $username . '</b>';
      }
      else
      {
         // You may prefer to show the level instead of coloring the username
          $level = '<b style="color:#' . $theme['fontcolor1'] . '">' . $lang['Memberlist_User'] . '</b>';
      }
      // Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

      if ( $row['user_avatar_type'] && $user_id

#
#-----[ IN-LINE FIND ]----------------------------------------
#

&& $row['user_allowavatar']

#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#

 && $mode == 'staff'

#
#-----[ FIND ]------------------------------------------------
#

'YIM' => $yim,

#
#-----[ AFTER, ADD ]------------------------------------------
#

         // Mighty Gorgon - Multiple Ranks - BEGIN
         'USER_LEVEL' => $level,
         'USER_RANK_01' => $user_rank_01,
         'USER_RANK_01_IMG' => $user_rank_01_img,
         'USER_RANK_02' => $user_rank_02,
         'USER_RANK_02_IMG' => $user_rank_02_img,
         'USER_RANK_03' => $user_rank_03,
         'USER_RANK_03_IMG' => $user_rank_03_img,
         'USER_RANK_04' => $user_rank_04,
         'USER_RANK_04_IMG' => $user_rank_04_img,
         'USER_RANK_05' => $user_rank_05,
         'USER_RANK_05_IMG' => $user_rank_05_img,
         // Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

   $sql = "SELECT count(*) AS total
      FROM " . USERS_TABLE . "
      WHERE user_id <> " . ANONYMOUS;

#
#-----[ REPLACE WITH ]----------------------------------------
#

   $sql = "SELECT count(*) AS total
      FROM " . USERS_TABLE . "
      WHERE user_id <> " . ANONYMOUS . "
      $where_sql";

#
#-----[ OPEN ]------------------------------------------------
#

modules/Forums/viewtopic.php

#
#-----[ FIND ]------------------------------------------------
#

$sql = "SELECT u.username,

#
#-----[ IN-LINE FIND ]----------------------------------------
#

, u.user_rank

#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#

, u.user_rank2, u.user_rank3, u.user_rank4, u.user_rank5

#
#-----[ FIND ]------------------------------------------------
#

$sql = "SELECT *
        FROM " . RANKS_TABLE . "
        ORDER BY rank_special, rank_min";
if ( !($result = $db->sql_query($sql)) )
{
        message_die(GENERAL_ERROR, "Could not obtain ranks information.", '', __LINE__, __FILE__, $sql);
}

$ranksrow = array();
while ( $row = $db->sql_fetchrow($result) )
{
        $ranksrow[] = $row;
}
$db->sql_freeresult($result);

#
#-----[ REPLACE WITH ]----------------------------------------
#

// Mighty Gorgon - Multiple Ranks - BEGIN
require_once('includes/functions_mg_ranks.'.$phpEx);
$ranks_sql = query_ranks();
// Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

   //
   // Generate ranks, set them to empty string initially.
   //
   $poster_rank = '';
   $rank_image = '';
   if ( $postrow[$i]['user_id'] == ANONYMOUS )
   {
   }
   else if ( $postrow[$i]['user_rank'] )
   {
      for($j = 0; $j < count($ranksrow); $j++)
      {
         if ( $postrow[$i]['user_rank'] == $ranksrow[$j]['rank_id'] && $ranksrow[$j]['rank_special'] )
         {
            $poster_rank = $ranksrow[$j]['rank_title'];
            $rank_image = ( $ranksrow[$j]['rank_image'] ) ? '<img src="' . $ranksrow[$j]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
         }
      }
   }
   else
   {
      for($j = 0; $j < count($ranksrow); $j++)
      {
         if ( $postrow[$i]['user_posts'] >= $ranksrow[$j]['rank_min'] && !$ranksrow[$j]['rank_special'] )
         {
            $poster_rank = $ranksrow[$j]['rank_title'];
            $rank_image = ( $ranksrow[$j]['rank_image'] ) ? '<img src="' . $ranksrow[$j]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
         }
      }
   }

#
#-----[ REPLACE WITH ]----------------------------------------
#

   // Mighty Gorgon - Multiple Ranks - BEGIN
   $user_ranks = generate_ranks($postrow[$i], $ranks_sql);

   $user_rank_01 = ($user_ranks['rank_01'] == '') ? '' : ($user_ranks['rank_01'] . '<br />');
   $user_rank_01_img = ($user_ranks['rank_01_img'] == '') ? '' : ($user_ranks['rank_01_img'] . '<br />');
   $user_rank_02 = ($user_ranks['rank_02'] == '') ? '' : ($user_ranks['rank_02'] . '<br />');
   $user_rank_02_img = ($user_ranks['rank_02_img'] == '') ? '' : ($user_ranks['rank_02_img'] . '<br />');
   $user_rank_03 = ($user_ranks['rank_03'] == '') ? '' : ($user_ranks['rank_03'] . '<br />');
   $user_rank_03_img = ($user_ranks['rank_03_img'] == '') ? '' : ($user_ranks['rank_03_img'] . '<br />');
   $user_rank_04 = ($user_ranks['rank_04'] == '') ? '' : ($user_ranks['rank_04'] . '<br />');
   $user_rank_04_img = ($user_ranks['rank_04_img'] == '') ? '' : ($user_ranks['rank_04_img'] . '<br />');
   $user_rank_05 = ($user_ranks['rank_05'] == '') ? '' : ($user_ranks['rank_05'] . '<br />');
   $user_rank_05_img = ($user_ranks['rank_05_img'] == '') ? '' : ($user_ranks['rank_05_img'] . '<br />');
   // Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

      $poster_rank = $lang['Guest'];

#
#-----[ REPLACE WITH ]----------------------------------------
#

      $user_rank_01 = $lang['Guest'] . '<br />';

#
#-----[ FIND ]------------------------------------------------
#

      'POSTER_RANK' => $poster_rank,
      'RANK_IMAGE' => $rank_image,

#
#-----[ REPLACE WITH ]----------------------------------------
#

      // Mighty Gorgon - Multiple Ranks - BEGIN
      'USER_RANK_01' => $user_rank_01,
      'USER_RANK_01_IMG' => $user_rank_01_img,
      'USER_RANK_02' => $user_rank_02,
      'USER_RANK_02_IMG' => $user_rank_02_img,
      'USER_RANK_03' => $user_rank_03,
      'USER_RANK_03_IMG' => $user_rank_03_img,
      'USER_RANK_04' => $user_rank_04,
      'USER_RANK_04_IMG' => $user_rank_04_img,
      'USER_RANK_05' => $user_rank_05,
      'USER_RANK_05_IMG' => $user_rank_05_img,
      // Mighty Gorgon - Multiple Ranks - END

#
#-----[ OPEN ]------------------------------------------------
#

modules/Forums/admin/admin_ranks.php

#
#-----[ FIND ]------------------------------------------------
#

      $rank_is_special = ( $rank_info['rank_special'] ) ? "checked=\"checked\"" : "";
      $rank_is_not_special = ( !$rank_info['rank_special'] ) ? "checked=\"checked\"" : "";

#
#-----[ REPLACE WITH ]----------------------------------------
#

      // Mighty Gorgon - Multiple Ranks - BEGIN
      $rank_no_rank = ( $rank_info['rank_special'] == '-2' ) ? "checked=\"checked\"" : "";
      $rank_day_counter = ( $rank_info['rank_special'] == '-1' ) ? "checked=\"checked\"" : "";
      $rank_is_not_special = ( $rank_info['rank_special'] == '0' ) ? "checked=\"checked\"" : "";
      $rank_is_special = ( $rank_info['rank_special'] == '1' ) ? "checked=\"checked\"" : "";
      $rank_is_guest = ( $rank_info['rank_special'] == '2' ) ? "checked=\"checked\"" : "";
      $rank_is_banned = ( $rank_info['rank_special'] == '3' ) ? "checked=\"checked\"" : "";

      $rank_path = "../images/ranks/";
      if ( is_dir($rank_path) )
      {
         $dir = opendir($rank_path);
         $l = 0;
         while($file = readdir($dir))
         {
            if (strpos($file, '.gif'))
            {
               $file1[$l] = $file;
               $l++;
            }
         }
         closedir($dir);
         $ranks_list = '<select name="rank_image_sel" onchange="update_rank(this.options[selectedIndex].value);">';
         if ($rank_info['rank_image'] == '')
         {
            $ranks_list .= "<option value=\"\" selected=\"selected\">" . $lang['No_Rank_Image'] . "</option>";
         }
         else
         {
            $ranks_list .= "<option value=\"\">" . $lang['No_Rank_Image'] . "</option>";
            $ranks_list .= "<option value=\"" . $rank_info['rank_image'] . "\" selected=\"selected\">" . str_replace($rank_path, "", $rank_info['rank_image']) . "</option>";
         }
         for($k=0; $k<=$l;$k++)
         {
            if ($file1[$k] != "")
            {
               $ranks_list .= "<option value=\"images/ranks/" . $file1[$k] . "\">images/ranks/" . $file1[$k] . "</option>";
            }
         }
         $rank_img_sp = ( ($rank_info['rank_image'] != '') ? ('../' . $rank_info['rank_image']) : $images['spacer'] );
         $rank_img_path = ( $rank_info['rank_image'] != '' ) ? $rank_info['rank_image'] : '';
         $ranks_list .= '</select>';
         $ranks_list .= '  <img name="rank_image" src="' . $rank_img_sp . '" border="0" alt="" align="absmiddle" />';
         $ranks_list .= '<br /><br />';
         $ranks_list .= '<input class="post" type="text" name="rank_image_path" size="40" maxlength="255" value="' . $rank_img_path . '" />';
         $ranks_list .= '<br />';
         
      }
      else
      {
         $rank_img_path = ( $rank_info['rank_image'] != '' ) ? $rank_info['rank_image'] : '';
         $ranks_list = '<input class="post" type="text" name="rank_image_path" size="40" maxlength="255" value="' . $rank_img_path . '" /><br />';
      }
      // Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

         "SPECIAL_RANK" => $rank_is_special,
         "NOT_SPECIAL_RANK" => $rank_is_not_special,
         "MINIMUM" => ( $rank_is_special ) ? "" : $rank_info['rank_min'],
         "IMAGE" => ( $rank_info['rank_image'] != "" ) ? $rank_info['rank_image'] : "",
                        "IMAGE_DISPLAY" => ( $rank_info['rank_image'] != "" ) ? '<img src="../../../' . $rank_info['rank_image'] . '" />' : "",

#
#-----[ REPLACE WITH ]----------------------------------------
#

         // Mighty Gorgon - Multiple Ranks - BEGIN
         "NO_RANK" => $rank_no_rank,
         "DAYS_RANK" => $rank_day_counter,
         "NOT_SPECIAL_RANK" => $rank_is_not_special,
         "MINIMUM" => ( ($rank_info['rank_special'] == '0') || ($rank_info['rank_special'] == '-1') ) ? $rank_info['rank_min'] : "",
         "SPECIAL_RANK" => $rank_is_special,
         "GUEST_RANK" => $rank_is_guest,
         "BANNED_RANK" => $rank_is_banned,
         "RANK_LIST" => $ranks_list,
         "RANK_IMG" => ( $rank_info['rank_image'] != "") ? '../' . $rank_info['rank_image'] : $images['spacer'],

         "L_NO_RANK" => $lang['No_Rank'],
         "L_DAYS_RANK" => $lang['Rank_Days_Count'],
         "L_POSTS_RANK" => $lang['Rank_Posts_Count'],
         "L_MIN_M_D" => $lang['Rank_Min_Des'],
         "L_SPECIAL_RANK" => $lang['Rank_Special'],
         "L_GUEST" => $lang['Guest_User'],
         "L_BANNED" => $lang['Banned_User'],
         "L_CURRENT_RANK" => $lang['Current_Rank_Image'],
         "IMAGE" => ( $rank_info['rank_image'] != "" ) ? $rank_info['rank_image'] : "",
                        "IMAGE_DISPLAY" => ( $rank_info['rank_image'] != "" ) ? '<img src="../' . $rank_info['rank_image'] . '" />' : "",
         // Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

      $special_rank = ( $HTTP_POST_VARS['special_rank'] == 1 ) ? TRUE : 0;
      $min_posts = ( isset($HTTP_POST_VARS['min_posts']) ) ? intval($HTTP_POST_VARS['min_posts']) : -1;
      $rank_image = ( (isset($HTTP_POST_VARS['rank_image'])) ) ? trim($HTTP_POST_VARS['rank_image']) : "";

#
#-----[ REPLACE WITH ]----------------------------------------
#

      // Mighty Gorgon - Multiple Ranks - BEGIN
      $special_rank = $HTTP_POST_VARS['special_rank'];
      $min_posts = ( isset($HTTP_POST_VARS['min_posts']) ) ? intval($HTTP_POST_VARS['min_posts']) : -1;
      $rank_image = ( (isset($HTTP_POST_VARS['rank_image_path'])) ) ? trim($HTTP_POST_VARS['rank_image_path']) : "";
      // Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

      if( $special_rank == 1 )

#
#-----[ REPLACE WITH ]----------------------------------------
#

      // Mighty Gorgon - Multiple Ranks - BEGIN
      if( $special_rank > 0 )
      // Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

         if (!$special_rank)

#
#-----[ REPLACE WITH ]----------------------------------------
#

         // Mighty Gorgon - Multiple Ranks - BEGIN
         if ($special_rank == 1)
         // Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

   if( $special_rank == 1 )

#
#-----[ REPLACE WITH ]----------------------------------------
#

   // Mighty Gorgon - Multiple Ranks - BEGIN
   $rank_img_sp = ( ($rank_rows[$i]['rank_image'] != "") ? ('../' . $rank_rows[$i]['rank_image']) : $images['spacer'] );
   $rank .= '<br /><img name="rank_image" src="' . $rank_img_sp . '" border="0" alt="" />';

   if( ($special_rank > 0) || ($special_rank == '-2') )
   // Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

   $rank_is_special = ( $special_rank ) ? $lang['Yes'] : $lang['No'];

#
#-----[ REPLACE WITH ]----------------------------------------
#

   // Mighty Gorgon - Multiple Ranks - BEGIN
   $rank_is_special = ( $special_rank > 0) ? $lang['Yes'] : $lang['No'];
   // Mighty Gorgon - Multiple Ranks - END

#
#-----[ OPEN ]------------------------------------------------
#

modules/Forums/admin/admin_userlist.php

#
#-----[ FIND ]------------------------------------------------
#

   $rank_image = ( $ranksrow[$ji]['rank_image'] ) ? '<img src="../../../'

#
#-----[ REPLACE WITH ]------------------------------------------
#

   $rank_image = ( $ranksrow[$ji]['rank_image'] ) ? '<img src="../'

#
#-----[ FIND ]------------------------------------------------
#

   $rank_image = ( $ranksrow[$ji]['rank_image'] ) ? '<img src="../../../'

#
#-----[ REPLACE WITH ]------------------------------------------
#

   $rank_image = ( $ranksrow[$ji]['rank_image'] ) ? '<img src="../'

#
#-----[ OPEN ]------------------------------------------------
#

modules/Forums/admin/admin_users.php

#
#-----[ FIND ]------------------------------------------------
#

$user_rank = ( !empty($HTTP_POST_VARS['user_rank']) ) ? intval( $HTTP_POST_VARS['user_rank'] ) : 0;

#
#-----[ AFTER, ADD ]------------------------------------------
#

      // Mighty Gorgon - Multiple Ranks - BEGIN
      $user_rank2 = ( !empty($HTTP_POST_VARS['user_rank2']) ) ? intval( $HTTP_POST_VARS['user_rank2'] ) : 0;
      $user_rank3 = ( !empty($HTTP_POST_VARS['user_rank3']) ) ? intval( $HTTP_POST_VARS['user_rank3'] ) : 0;
      $user_rank4 = ( !empty($HTTP_POST_VARS['user_rank4']) ) ? intval( $HTTP_POST_VARS['user_rank4'] ) : 0;
      $user_rank5 = ( !empty($HTTP_POST_VARS['user_rank5']) ) ? intval( $HTTP_POST_VARS['user_rank5'] ) : 0;
      // Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

SET " . $username_sql . $passwd_sql . "

#
#-----[ IN-LINE FIND ]----------------------------------------
#

, user_rank = '$user_rank'

#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#

, user_rank2 = '$user_rank2', user_rank3 = '$user_rank3', user_rank4 = '$user_rank4', user_rank5 = '$user_rank5'

#
#-----[ FIND ]------------------------------------------------
#

$s_hidden_fields .= '<input type="hidden" name="user_rank" value="' . $user_rank . '" />';

#
#-----[ REPLACE WITH ]----------------------------------------
#

         // Mighty Gorgon - Multiple Ranks - BEGIN
         $s_hidden_fields .= '<input type="hidden" name="user_rank" value="' . $user_rank . '" />';
         $s_hidden_fields .= '<input type="hidden" name="user_rank2" value="' . $user_rank2 . '" />';
         $s_hidden_fields .= '<input type="hidden" name="user_rank3" value="' . $user_rank3 . '" />';
         $s_hidden_fields .= '<input type="hidden" name="user_rank4" value="' . $user_rank4 . '" />';
         $s_hidden_fields .= '<input type="hidden" name="user_rank5" value="' . $user_rank5 . '" />';
         // Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

      $rank_select_box = '<option value="0">' . $lang['No_assigned_rank'] . '</option>';

#
#-----[ REPLACE WITH ]----------------------------------------
#

      // Mighty Gorgon - Multiple Ranks - BEGIN
      $selected1 = ( $this_userdata['user_rank'] == '-2' ) ? ' selected="selected"' : '';
      $selected2 = ( $this_userdata['user_rank2'] == '-2' ) ? ' selected="selected"' : '';
      $selected3 = ( $this_userdata['user_rank3'] == '-2' ) ? ' selected="selected"' : '';
      $selected4 = ( $this_userdata['user_rank4'] == '-2' ) ? ' selected="selected"' : '';
      $selected5 = ( $this_userdata['user_rank5'] == '-2' ) ? ' selected="selected"' : '';
      $rank1_select_box = '<option value="-2"' . $selected1 . '>' . $lang['No_Rank'] . '</option>';
      $rank2_select_box = '<option value="-2"' . $selected2 . '>' . $lang['No_Rank'] . '</option>';
      $rank3_select_box = '<option value="-2"' . $selected3 . '>' . $lang['No_Rank'] . '</option>';
      $rank4_select_box = '<option value="-2"' . $selected4 . '>' . $lang['No_Rank'] . '</option>';
      $rank5_select_box = '<option value="-2"' . $selected5 . '>' . $lang['No_Rank'] . '</option>';
      $selected1 = ( $this_userdata['user_rank'] == '-1' ) ? ' selected="selected"' : '';
      $selected2 = ( $this_userdata['user_rank2'] == '-1' ) ? ' selected="selected"' : '';
      $selected3 = ( $this_userdata['user_rank3'] == '-1' ) ? ' selected="selected"' : '';
      $selected4 = ( $this_userdata['user_rank4'] == '-1' ) ? ' selected="selected"' : '';
      $selected5 = ( $this_userdata['user_rank5'] == '-1' ) ? ' selected="selected"' : '';
      $rank1_select_box .= '<option value="-1"' . $selected1 . '>' . $lang['Rank_Days_Count'] . '</option>';
      $rank2_select_box .= '<option value="-1"' . $selected2 . '>' . $lang['Rank_Days_Count'] . '</option>';
      $rank3_select_box .= '<option value="-1"' . $selected3 . '>' . $lang['Rank_Days_Count'] . '</option>';
      $rank4_select_box .= '<option value="-1"' . $selected4 . '>' . $lang['Rank_Days_Count'] . '</option>';
      $rank5_select_box .= '<option value="-1"' . $selected5 . '>' . $lang['Rank_Days_Count'] . '</option>';
      $selected1 = ( $this_userdata['user_rank'] == '0' ) ? ' selected="selected"' : '';
      $selected2 = ( $this_userdata['user_rank2'] == '0' ) ? ' selected="selected"' : '';
      $selected3 = ( $this_userdata['user_rank3'] == '0' ) ? ' selected="selected"' : '';
      $selected4 = ( $this_userdata['user_rank4'] == '0' ) ? ' selected="selected"' : '';
      $selected5 = ( $this_userdata['user_rank5'] == '0' ) ? ' selected="selected"' : '';
      $rank1_select_box .= '<option value="0"' . $selected1 . '>' . $lang['Rank_Posts_Count'] . '</option>';
      $rank2_select_box .= '<option value="0"' . $selected2 . '>' . $lang['Rank_Posts_Count'] . '</option>';
      $rank3_select_box .= '<option value="0"' . $selected3 . '>' . $lang['Rank_Posts_Count'] . '</option>';
      $rank4_select_box .= '<option value="0"' . $selected4 . '>' . $lang['Rank_Posts_Count'] . '</option>';
      $rank5_select_box .= '<option value="0"' . $selected5 . '>' . $lang['Rank_Posts_Count'] . '</option>';
      // Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

         $selected = ( $this_userdata['user_rank'] == $rank_id ) ? ' selected="selected"' : '';
         $rank_select_box .= '<option value="' . $rank_id . '"' . $selected . '>' . $rank . '</option>';

#
#-----[ REPLACE WITH ]----------------------------------------
#

         // Mighty Gorgon - Multiple Ranks - BEGIN
         $selected1 = ( $this_userdata['user_rank'] == $rank_id ) ? ' selected="selected"' : '';
         $selected2 = ( $this_userdata['user_rank2'] == $rank_id ) ? ' selected="selected"' : '';
         $selected3 = ( $this_userdata['user_rank3'] == $rank_id ) ? ' selected="selected"' : '';
         $selected4 = ( $this_userdata['user_rank4'] == $rank_id ) ? ' selected="selected"' : '';
         $selected5 = ( $this_userdata['user_rank5'] == $rank_id ) ? ' selected="selected"' : '';
         $rank1_select_box .= '<option value="' . $rank_id . '"' . $selected1 . '>' . $rank . '</option>';
         $rank2_select_box .= '<option value="' . $rank_id . '"' . $selected2 . '>' . $rank . '</option>';
         $rank3_select_box .= '<option value="' . $rank_id . '"' . $selected3 . '>' . $rank . '</option>';
         $rank4_select_box .= '<option value="' . $rank_id . '"' . $selected4 . '>' . $rank . '</option>';
         $rank5_select_box .= '<option value="' . $rank_id . '"' . $selected5 . '>' . $rank . '</option>';
         // Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

'RANK_SELECT_BOX' => $rank_select_box,

#
#-----[ REPLACE WITH ]----------------------------------------
#

         // Mighty Gorgon - Multiple Ranks - BEGIN
         'RANK1_SELECT_BOX' => $rank1_select_box,
         'RANK2_SELECT_BOX' => $rank2_select_box,
         'RANK3_SELECT_BOX' => $rank3_select_box,
         'RANK4_SELECT_BOX' => $rank4_select_box,
         'RANK5_SELECT_BOX' => $rank5_select_box,
         // Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

'L_SELECT_RANK' => $lang['Rank_title'],

#
#-----[ REPLACE WITH ]----------------------------------------
#

         // Mighty Gorgon - Multiple Ranks - BEGIN
         'L_SELECT_RANK1' => $lang['Rank1_title'],
         'L_SELECT_RANK2' => $lang['Rank2_title'],
         'L_SELECT_RANK3' => $lang['Rank3_title'],
         'L_SELECT_RANK4' => $lang['Rank4_title'],
         'L_SELECT_RANK5' => $lang['Rank5_title'],
         // Mighty Gorgon - Multiple Ranks - END

#
#-----[ OPEN ]------------------------------------------------
#

includes/page_header.php

#
#-----[ FIND ]------------------------------------------------
#

   'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),

#
#-----[ AFTER, ADD ]------------------------------------------
#

   // Mighty Gorgon - Multiple Ranks - BEGIN
   'L_RANKS' => $lang['Rank_Header'],
   'L_STAFF' => $lang['Staff'],
   'U_RANKS' => append_sid('ranks.' . $phpEx),
   'U_STAFF' => append_sid('memberlist.' . $phpEx . '?mode=staff'),
   // Mighty Gorgon - Multiple Ranks - END

#
#-----[ OPEN ]------------------------------------------------
#

includes/usercp_viewprofile.php

#
#-----[ FIND ]------------------------------------------------
#

$sql = "SELECT *
    FROM " . RANKS_TABLE . "
    ORDER BY rank_special, rank_min";
if ( !($result = $db->sql_query($sql)) )
{
    message_die(GENERAL_ERROR, 'Could not obtain ranks information', '', __LINE__, __FILE__, $sql);
}

$ranksrow = array();
while ( $row = $db->sql_fetchrow($result) )
{
    $ranksrow[] = $row;
}
$db->sql_freeresult($result);

#
#-----[ REPLACE WITH ]----------------------------------------
#

// Mighty Gorgon - Multiple Ranks - BEGIN
require_once('includes/functions_mg_ranks.'.$phpEx);
$ranks_sql = query_ranks();
// Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

$poster_rank = '';
$rank_image = '';
if ( $profiledata['user_rank'] )
{
    for($i = 0; $i < count($ranksrow); $i++)
    {
        if ( $profiledata['user_rank'] == $ranksrow[$i]['rank_id'] && $ranksrow[$i]['rank_special'] )
        {
            $poster_rank = $ranksrow[$i]['rank_title'];
            $rank_image = ( $ranksrow[$i]['rank_image'] ) ? '<img src="' . $ranksrow[$i]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
        }
    }
}
else
{
    for($i = 0; $i < count($ranksrow); $i++)
    {
        if ( $profiledata['user_posts'] >= $ranksrow[$i]['rank_min'] && !$ranksrow[$i]['rank_special'] )
        {
            $poster_rank = $ranksrow[$i]['rank_title'];
            $rank_image = ( $ranksrow[$i]['rank_image'] ) ? '<img src="' . $ranksrow[$i]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
        }
    }
}

#
#-----[ REPLACE WITH ]----------------------------------------
#

   // Mighty Gorgon - Multiple Ranks - BEGIN
   $user_ranks = generate_ranks($profiledata, $ranks_sql);

   $user_rank_01 = ($user_ranks['rank_01'] == '') ? '' : ($user_ranks['rank_01'] . '<br />');
   $user_rank_01_img = ($user_ranks['rank_01_img'] == '') ? '' : ($user_ranks['rank_01_img'] . '<br />');
   $user_rank_02 = ($user_ranks['rank_02'] == '') ? '' : ($user_ranks['rank_02'] . '<br />');
   $user_rank_02_img = ($user_ranks['rank_02_img'] == '') ? '' : ($user_ranks['rank_02_img'] . '<br />');
   $user_rank_03 = ($user_ranks['rank_03'] == '') ? '' : ($user_ranks['rank_03'] . '<br />');
   $user_rank_03_img = ($user_ranks['rank_03_img'] == '') ? '' : ($user_ranks['rank_03_img'] . '<br />');
   $user_rank_04 = ($user_ranks['rank_04'] == '') ? '' : ($user_ranks['rank_04'] . '<br />');
   $user_rank_04_img = ($user_ranks['rank_04_img'] == '') ? '' : ($user_ranks['rank_04_img'] . '<br />');
   $user_rank_05 = ($user_ranks['rank_05'] == '') ? '' : ($user_ranks['rank_05'] . '<br />');
   $user_rank_05_img = ($user_ranks['rank_05_img'] == '') ? '' : ($user_ranks['rank_05_img'] . '<br />');
   // Mighty Gorgon - Multiple Ranks - END

#
#-----[ FIND ]------------------------------------------------
#

   'POSTER_RANK' => $poster_rank,
   'RANK_IMAGE' => $rank_image,

#
#-----[ REPLACE WITH ]----------------------------------------
#

   // Mighty Gorgon - Multiple Ranks - BEGIN
   'USER_RANK_01' => $user_rank_01,
   'USER_RANK_01_IMG' => $user_rank_01_img,
   'USER_RANK_02' => $user_rank_02,
   'USER_RANK_02_IMG' => $user_rank_02_img,
   'USER_RANK_03' => $user_rank_03,
   'USER_RANK_03_IMG' => $user_rank_03_img,
   'USER_RANK_04' => $user_rank_04,
   'USER_RANK_04_IMG' => $user_rank_04_img,
   'USER_RANK_05' => $user_rank_05,
   'USER_RANK_05_IMG' => $user_rank_05_img,
   // Mighty Gorgon - Multiple Ranks - END

#
#-----[ OPEN ]------------------------------------------------
#

modules/Forums/language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------------
#

?>

#
#-----[ BEFORE, ADD ]-----------------------------------------
#

// Mighty Gorgon - Multiple Ranks - BEGIN
$lang['Staff'] = 'Staff';
$lang['Rank'] = 'Rank';
$lang['Rank_Header'] = 'Ranks';
$lang['Rank_Image'] = 'Rank Image';
$lang['Rank_Posts_Count'] = 'Automatic ranking by posts';
$lang['Rank_Days_Count'] = 'Automatic ranking by days';
$lang['Rank_Min_Des'] = 'Minimum messages/days';
$lang['Rank_Min_M'] = 'Minimum Messages';
$lang['Rank_Max_M'] = 'Max Messages';
$lang['Rank_Min_D'] = 'Minimum Days';
$lang['Rank_Max_D'] = 'Max Days';
$lang['Rank_Special'] = 'Special Rank';
$lang['Rank_Special_Guest'] = 'Special Rank For Guests';
$lang['Rank_Special_Banned'] = 'Special Rank For Banned';
$lang['Current_Rank_Image'] = 'Current rank image';
$lang['No_Rank'] = 'No rank assigned';
$lang['No_Rank_Image'] = 'No rank image';
$lang['No_Rank_Special'] = 'No special rank assigned';
$lang['Memberlist_Administrator'] = 'Administrator';
$lang['Memberlist_Moderator'] = 'Moderator';
$lang['Memberlist_User'] = 'User';
$lang['Guest_User'] = 'Guest';
$lang['Banned_User'] = 'Banned';
$lang['Rank1_title'] = 'Rank 1 Title';
$lang['Rank2_title'] = 'Rank 2 Title';
$lang['Rank3_title'] = 'Rank 3 Title';
$lang['Rank4_title'] = 'Rank 4 Title';
$lang['Rank5_title'] = 'Rank 5 Title';
// Mighty Gorgon - Multiple Ranks - END

#
#-----[ OPEN ]------------------------------------------------
#

modules/Forums/templates/subSilver/memberlist_body.tpl
themes/YOUR_THEME/forums/memberlist_body.tpl

#
#-----[ FIND ]------------------------------------------------
#

<th class="thTop" nowrap="nowrap">{L_USERNAME}</th>

#
#-----[ AFTER, ADD ]------------------------------------------
#

   <th class="thTop" nowrap="nowrap">{L_USER_RANK}</th>

#
#-----[ FIND ]------------------------------------------------
#

<td class="{memberrow.ROW_CLASS}" align="center"><span class="gen"><a href="{memberrow.U_VIEWPROFILE}" class="gen">{memberrow.USERNAME}</a></span></td>

#
#-----[ REPLACE WITH ]----------------------------------------
#

   <td class="{memberrow.ROW_CLASS}">
      <table width="100%" cellspacing="0" cellpadding="0" border="0">
         <tr>
            <td align="left" valign="middle">{memberrow.AVATAR_IMG}</td>
            <td class="{memberrow.ROW_CLASS}" align="center" nowrap="nowrap" valign="middle"><span class="gen"><a href="{memberrow.U_VIEWPROFILE}" class="gen">{memberrow.USERNAME}</a></span></td>
         </tr>
      </table>
   </td>
   <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberrow.USER_RANK_01}{memberrow.USER_RANK_01_IMG}{memberrow.USER_RANK_02}{memberrow.USER_RANK_02_IMG}{memberrow.USER_RANK_03}{memberrow.USER_RANK_03_IMG}{memberrow.USER_RANK_04}{memberrow.USER_RANK_04_IMG}{memberrow.USER_RANK_05}{memberrow.USER_RANK_05_IMG}</span></td>

#
#-----[ FIND ]------------------------------------------------
#

<td class="catBottom" colspan="8" height="28"> </td>

#
#-----[ REPLACE WITH ]----------------------------------------
#

      <td class="catBottom" colspan="9" height="28"> </td>

#
#-----[ OPEN ]------------------------------------------------
#

modules/Forums/templates/subSilver/profile_view_body.tpl
themes/YOUR_THEME/forums/profile_view_body.tpl

#
#-----[ FIND ]------------------------------------------------
#

<span class="postdetails">{POSTER_RANK}

#
#-----[ IN-LINE FIND ]----------------------------------------
#

{POSTER_RANK}

#
#-----[ IN-LINE REPLACE WITH ]--------------------------------
#

{USER_RANK_01}{USER_RANK_01_IMG}{USER_RANK_02}{USER_RANK_02_IMG}{USER_RANK_03}{USER_RANK_03_IMG}{USER_RANK_04}{USER_RANK_04_IMG}{USER_RANK_05}{USER_RANK_05_IMG}

#
#-----[ OPEN ]------------------------------------------------
#

modules/Forums/templates/subSilver/subSilver.cfg
themes/YOUR_THEME/forums/forums.cfg

#
#-----[ FIND ]------------------------------------------------
#

?>

#
#-----[ BEFORE, ADD ]-----------------------------------------
#

// Mighty Gorgon - Multiple Ranks - BEGIN
$images['spacer'] = "$current_template_images/spacer.gif";
// Mighty Gorgon - Multiple Ranks - END

#
#-----[ OPEN ]------------------------------------------------
#

modules/Forums/templates/subSilver/viewtopic_body.tpl
themes/YOUR_THEME/forums/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------------
#

{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}

#
#-----[ IN-LINE REPLACE WITH ]--------------------------------
#

{postrow.USER_RANK_01}{postrow.USER_RANK_01_IMG}{postrow.USER_RANK_02}{postrow.USER_RANK_02_IMG}{postrow.USER_RANK_03}{postrow.USER_RANK_03_IMG}{postrow.USER_RANK_04}{postrow.USER_RANK_04_IMG}{postrow.USER_RANK_05}{postrow.USER_RANK_05_IMG}

#
#-----[ OPEN ]------------------------------------------------
#

modules/Forums/templates/subSilver/admin/ranks_edit_body.tpl

#
#-----[ FIND ]------------------------------------------------
#

<h1>{L_RANKS_TITLE}</h1>

#
#-----[ BEFORE, ADD ]-----------------------------------------
#

<script language="javascript" type="text/javascript">
<!--
function update_rank(newimage)
{
   if(newimage != '')
   {
      document.rank_image.src = '../' + newimage;
      document.post.rank_image_path.value = newimage;
   }
   else
   {
      document.rank_image.src = '../images/spacer.gif';
      document.post.rank_image_path.value = '';
   }
}
//-->
</script>

#
#-----[ FIND ]------------------------------------------------
#

<form action="{S_RANK_ACTION}" method="post"><table class="forumline" cellpadding="4" cellspacing="1" border="0" align="center">

#
#-----[ REPLACE WITH ]----------------------------------------
#

<form action="{S_RANK_ACTION}" method="post" name="post"><table class="forumline" cellpadding="4" cellspacing="1" border="0" align="center">

#
#-----[ FIND ]------------------------------------------------
#

<td class="row2"><input type="radio" name="special_rank" value="1" {SPECIAL_RANK} />{L_YES}   <input type="radio" name="special_rank" value="0" {NOT_SPECIAL_RANK} /> {L_NO}</td>

#
#-----[ REPLACE WITH ]----------------------------------------
#

      <td class="row2"><input type="radio" name="special_rank" value="-1" {DAYS_RANK} />{L_DAYS_RANK}<br /><input type="radio" name="special_rank" value="0" {NOT_SPECIAL_RANK} />{L_POSTS_RANK}<br /><input type="radio" name="special_rank" value="1" {SPECIAL_RANK} />{L_SPECIAL_RANK}<br /><input type="radio" name="special_rank" value="2" {GUEST_RANK} />{L_GUEST}<br /><input type="radio" name="special_rank" value="3" {BANNED_RANK} />{L_BANNED}<br /></td>

#
#-----[ FIND ]------------------------------------------------
#

<td class="row1" width="38%"><span class="gen">{L_RANK_MINIMUM}:</span></td>

#
#-----[ REPLACE WITH ]----------------------------------------
#

      <td class="row1" width="38%"><span class="gen">{L_MIN_M_D}:</span></td>

#
#-----[ FIND ]------------------------------------------------
#

<td class="row2"><input type="text" name="rank_image" size="40" maxlength="255" value="{IMAGE}" /><br />{IMAGE_DISPLAY}</td>

#
#-----[ REPLACE WITH ]----------------------------------------
#

      <td class="row2">{RANK_LIST}</td>
   </tr>
   <tr>
      <td class="row1" width="38%"><span class="gen">{L_CURRENT_RANK}:</span></td>
      <td class="row2">{IMAGE_DISPLAY}</td>

#
#-----[ OPEN ]------------------------------------------------
#

modules/Forums/templates/subSilver/admin/user_edit_body.tpl

#
#-----[ FIND ]------------------------------------------------
#

   <tr>
      <td class="row1"><span class="gen">{L_SELECT_RANK}</span></td>
      <td class="row2"><select name="user_rank">{RANK_SELECT_BOX}</select></td>
   </tr>

#
#-----[ REPLACE WITH ]----------------------------------------
#

   <tr>
      <td class="row1"><span class="gen">{L_SELECT_RANK1}</span></td>
      <td class="row2"><select name="user_rank">{RANK1_SELECT_BOX}</select></td>
   </tr>
   <tr>
   <tr>
      <td class="row1"><span class="gen">{L_SELECT_RANK2}</span></td>
      <td class="row2"><select name="user_rank2">{RANK2_SELECT_BOX}</select></td>
   </tr>
   <tr>
      <td class="row1"><span class="gen">{L_SELECT_RANK3}</span></td>
      <td class="row2"><select name="user_rank3">{RANK3_SELECT_BOX}</select></td>
   </tr>
   <tr>
      <td class="row1"><span class="gen">{L_SELECT_RANK4}</span></td>
      <td class="row2"><select name="user_rank4">{RANK4_SELECT_BOX}</select></td>
   </tr>
   <tr>
      <td class="row1"><span class="gen">{L_SELECT_RANK5}</span></td>
      <td class="row2"><select name="user_rank5">{RANK5_SELECT_BOX}</select></td>
   </tr>

#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM
# All Ranks previously added will need to be readded.

# Please make sure to clear your cache after installing any mod


I am almost sure I edited them presicely as directed, I have not modded the forums in any other way.

Now I cant get into my forum admin page.

Neilly
 

 
View user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger Reply with quote

Ped
Reputation: 64.1 Add RepSubtract Rep
votes: 35
Local time: 11:26 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

2.33 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 10 Feb 2012
Posts: 4468
Points: 181281 

Post Re: Multiple ranks & staff view mod - forums admin page Posted: Mon Mar 30, 2009 1:23 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

I just looked at your site, and under the profile Neily it says [FW] Founder twice

one of the names is missing an image that should be located at
http://fightingwolverines.com/modules/Forums/images/founder.png

and the other one is missing from
http://fightingwolverines.com/themes/MG-gs04-001/images/bar.gif

so i would just grab 2 images for now and upload them to those places and see what it does/look like

each member should be slightly different

for example Akhenaten image is called
http://fightingwolverines.com/modules/Forums/images/etmember.png
 

 
View user's profileSend private messageSend e-mail Reply with quote

neilly
Reputation: 488 Add RepSubtract Rep
Local time: 10:26 AM
Location: Scotland
uk.gif

Armour Whore
Armour Whore

0.02 posts per day
Medals: 0

Joined: Dec 10, 2006
Last Visit: 18 May 2011
Posts: 40
Points: 7763 

Post Multiple ranks & staff view mod - forums admin page empt Posted: Mon Mar 30, 2009 1:36 pm

Shop Purchases:
Clan Roster 2.0 · Multiple Gamer Evo

Thanks for the heads up with that ped, the new ranks mod changes the path for the images, but I still get a blank screen on my /modules/forums/admin/index.php page

BTW I RTFM about the T_ELSE problem lol, seems I had a rogue 'else' hmmph, whaddyaknow lol

Still cant get access to forums admin tho, anyone have any solution to this? Willing to grant temp access to admin to assist in resolving if wanted*

Neilly





*terms apply lol
 

 
View user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger Reply with quote


Ped
Reputation: 64.1 Add RepSubtract Rep
votes: 35
Local time: 11:26 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

2.33 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 10 Feb 2012
Posts: 4468
Points: 181281 

Post Re: Multiple ranks & staff view mod - forums admin page Posted: Mon Mar 30, 2009 2:38 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

Open up your config.php in the root of your site and set display errors to true,

find
Code:
$display_errors = true;


make sure it is true, then save and upload and then re-visit your forums admin see what it says
 

 
View user's profileSend private messageSend e-mail Reply with quote

Snype
Reputation: 305.5 Add RepSubtract Rep
votes: 8
Local time: 10:26 AM
Location: lincolshire
uk.gif



0.60 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)
Respected Member
Respected Member
Joined: May 20, 2008
Last Visit: 06 Nov 2011
Posts: 812
Points: 60742 

Post Multiple ranks & staff view mod - forums admin page empt Posted: Mon Mar 30, 2009 2:44 pm

Shop Purchases:
Call of Duty 4 SAS Theme

my guess would be one of the edits in these files "admin/admin_ranks.php , admin/admin_users.php" try uploading the origionals see if it gets your admin page back if it does then you no the problem lays in the code of one of them files. but i would also check to make sure evry thing is where it should be and no typo's (like i had yesterday) same happened to me but i found the problem very quick and put the code where it should have been in the first place.
 

WebSite > http://www.phpnukeblog.info Xfire > DDsnype MSN > ritchietaylor@live.co.uk Email > admin@phpnukeblog.info  
View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote

neilly
Reputation: 488 Add RepSubtract Rep
Local time: 10:26 AM
Location: Scotland
uk.gif

Armour Whore
Armour Whore

0.02 posts per day
Medals: 0

Joined: Dec 10, 2006
Last Visit: 18 May 2011
Posts: 40
Points: 7763 

Post Multiple ranks & staff view mod - forums admin page empt Posted: Mon Mar 30, 2009 2:44 pm

Shop Purchases:
Clan Roster 2.0 · Multiple Gamer Evo

It seems to be
Code:
$debug = true;


on Nuke Evo and it is already set to true. Still a blank screen.

@ snype

I will try and report back. I have checked what I can, but im a beginner where code is concerned.

Thanks



edit: i have upoloaded the originals and still the same problem. the quest continues...


further edit : I have just recoded all original /forum/admin/~ files and same is happening

please help
 

 
View user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger Reply with quote


DreAdeDcoRpSE
Reputation: 2221.6 Add RepSubtract Rep
votes: 28
Local time: 5:26 AM
Location: Back of your Mind
usa.gif

Forums Moderator
Forums Moderator

1.53 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Site Admin
Site Admin
Joined: Sep 22, 2007
Last Visit: 10 Feb 2012
Posts: 2459
Points: 128885 

Post Re: Multiple ranks & staff view mod - forums admin page Posted: Mon Mar 30, 2009 7:27 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

I can see that this was last updated for phpbb 2.0.20 and Evo runs on 2.0.23. This mod will more and likely have to be upgraded again to work on the version of phpbb that Evo runs on.

Quote:
## 2006-04-28 - Version 2.0.3
## Updated for phpBB 2.0.20


And like Ped said, it will probably take someone that knows phpbb/nuke to upgrade this mod to work. I am pretty sure this mod was written for Evo 2.0.5.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

neilly
Reputation: 488 Add RepSubtract Rep
Local time: 10:26 AM
Location: Scotland
uk.gif

Armour Whore
Armour Whore

0.02 posts per day
Medals: 0

Joined: Dec 10, 2006
Last Visit: 18 May 2011
Posts: 40
Points: 7763 

Post Multiple ranks & staff view mod - forums admin page empt Posted: Tue Apr 14, 2009 2:37 pm

Shop Purchases:
Clan Roster 2.0 · Multiple Gamer Evo

So Ive replaced all the files that were edited and cleared the sites cache so its properly backed up to the way it was when I started.

Only problem is now on the /Evo-Forums_-_file_-_ranks.html page I'm stuck with 2 text areas with nothing in them. The ranks I have made are still in the admin section but the following pic shows in the page I just mentioned.

Neilly

Image Has Been Resized, Click To Enlarge.
 

 
View user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger Reply with quote

neilly
Reputation: 488 Add RepSubtract Rep
Local time: 10:26 AM
Location: Scotland
uk.gif

Armour Whore
Armour Whore

0.02 posts per day
Medals: 0

Joined: Dec 10, 2006
Last Visit: 18 May 2011
Posts: 40
Points: 7763 

Post Re: Multiple ranks & staff view mod - forums admin page Posted: Fri Apr 17, 2009 1:40 pm

Shop Purchases:
Clan Roster 2.0 · Multiple Gamer Evo

***bumpity bump*** Dont Know
 

 
View user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Hacks n Mods


 
18 Replies / 2545 Views
Page 1 of 2
All times are GMT
Goto page 1, 2  Next
Display posts from previous:   
 
Jump to:  
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 can download files in this forum