Admins, Mods, User In The Same List


Subject: Admins, Mods, User In The Same List
Hello all!
I want to make a small change to the blocking of daily visits..

File: index_body.tpl

Code: [Download] [Hide] [Select]
<td class="row1">
<span class="gensmall">
{L_Online_today}<br />
{L_USERS_TODAY}&nbsp;{L_USERS_LASTHOUR}<br />
{ADMINS_TODAY_LIST}<br />
{MODS_TODAY_LIST}<br />
{USERS_TODAY_LIST}<br />
</span>
</td>


I want to put in the same list (User Online Today) even admin and mods, how can I do?

Thanks.

Subject: Re: Admins, Mods, User In The Same List
can someone help me :oops:

Subject: Re: Admins, Mods, User In The Same List
OPEN forum.php
FIND
Code: [Download] [Hide] [Select]
switch ($todayrow['user_level'])
{
case ADMIN:
$admins_today_list .= (empty($admins_today_list) ? '' : ', ') . $colored_user;
break;
case MOD:
$mods_today_list .= (empty($mods_today_list) ? '' : ', ') . $colored_user;
break;
default:
$users_today_list .= (empty($users_today_list) ? '' : ', ') . $colored_user;
break;
}

REPLACE WITH
Code: [Download] [Hide] [Select]
$users_today_list .= (empty($users_today_list) ? '' : ', ') . $colored_user;


Then you have to remove all other stuff in the TPL... :wink:

Subject: Re: Admins, Mods, User In The Same List
Thanks bro, I put the change online, for anyone wishing to use the files ready.


Admins_Mods_User_In_The_Same_List_for_1.3.0.53a.rar
Description:  
Download
Filename: Admins_Mods_User_In_The_Same_List_for_1.3.0.53a.rar
Filesize: 9.18 KB
Downloaded: 201 Time(s)

Subject: Re: Admins, Mods, User In The Same List
Great, thanks for sharing... I'll move this to Customizations.


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.9178s (PHP: 2% SQL: 98%)
SQL queries: 12 - Debug Off - GZIP Enabled