[RESOLVED] Removing Rank from Who's Online box

Support for IntegraMOD 140

Moderator: Integra Moderator

[RESOLVED] Removing Rank from Who's Online box

PostAuthor: hornakapopolis » Mon Oct 30, 2006 11:36 am

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.
Last edited by hornakapopolis on Mon Oct 30, 2006 12:26 pm, edited 1 time in total.

hornakapopolis
Members
Members
 
Posts: 45
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 7:03 pm
Cash on hand: 0.00

PostAuthor: hornakapopolis » Mon Oct 30, 2006 12:25 pm

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;
Last edited by hornakapopolis on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

hornakapopolis
Members
Members
 
Posts: 45
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 7:03 pm
Cash on hand: 0.00


Return to IntegraMOD 140

Who is online

Registered users: Bing [Bot], Google [Bot], Helter, Unspecified Bot