Page 1 of 1

[RESOLVED] Removing Rank from Who's Online box

PostPosted: Mon Oct 30, 2006 11:36 am
Author: hornakapopolis
In the Who's Online box below the forum index, I'd like to remove Board Founder from the following list:

[ Board Founder ] [ Administrator ] [ Junior Admin ] [ Moderator ] [ User ]

I found where it appears to be called L_WHOSONLINE (that's from memory from last night, so I could be wrong), but couldn't find where I could remove items or even change the brackets []. (I don't want to change the brackets, but I was looking for those hoping they would help me find the rest of it.

I'm trying to keep this board as standard as possible so as to help with upgrades, so the Advanced Username Color mod isn't really an option.

I'd appreciate the help.

PostPosted: Mon Oct 30, 2006 12:25 pm
Author: hornakapopolis
Well, as I always seem to do after trying to figure something out for days and then finally posting... I found the solution, this time on phpBB's forums.

If anyone else is curious, here's the code:

in profilcp/functions_profile.php...

FIND:
Code: Select all
    define( 'BOARD_ADMIN', 98 );     $admin_level = array(ADMIN_FOUNDER, ADMIN, JADMIN);     $level_prior = array(ADMIN_FOUNDER => 99, ADMIN => 9, JADMIN => 7, MOD => 5, USER => 0);     $level_desc = array(ADMIN_FOUNDER => 'Admin_founder_online_color', ADMIN => 'Admin_online_color', JADMIN => 'Jadmin_online_color', MOD => 'Mod_online_color', USER => 'User_online_color');

REPLACE WITH:
Code: Select all
    define( 'BOARD_ADMIN', 98 );     $admin_level = array(ADMIN, JADMIN);     $level_prior = array(ADMIN => 9, JADMIN => 7, MOD => 5, USER => 0);     $level_desc = array(ADMIN => 'Admin_online_color', JADMIN => 'Jadmin_online_color', MOD => 'Mod_online_color', USER => 'User_online_color');


FIND:
Code: Select all
        if ( ($userdata['user_level'] == ADMIN) && ($userdata['user_id'] == 2) )         {             $res = ADMIN_FOUNDER;         }         else if ($userdata['user_level'] == ADMIN)

REPLACE WITH:
Code: Select all
        if ($userdata['user_level'] == ADMIN)


FIND & DELETE:
Code: Select all
                case ADMIN_FOUNDER:                     $ret = 'foundercolor';                     break;