Page Index Toggle Pages: 1 Print
Mod the Info Center (Statistics) (Read 2926 times)
Captain John

Mod the Info Center (Statistics)
Jan 18th, 2008 at 6:56pm
Print Post  
Some Admin's do not want the Info Center to display on the bottom of the Main Index page, when they have a New forum, without many posts, or users.  This MOD will prevent normal users from viewing, but Allow Staff to see.

In "Templates/default/BoardIndex.template" - "Info Center block" area insert the highlighted code:

Select All
<!-- Info Center block start -->

<div class="seperator">

if($iamadmin || $iamgmod || $iammod) {
$boardindex_template .= qq~

<table cellpadding="4" cellspacing="1" border="0" width="100%">
	<td class="titlebg" align="center" colspan="2">

and in same file add as below

Select All
	<td class="windowbg2">
		<div style="float: left; width: 59%; text-align: left;">
		<yabb users><br />
		<yabb onlineusers>
		<yabb guests><br />
		<yabb onlineguests>
		<yabb bots><br />
		<yabb onlinebots>
		<div style="float: left; width: 40%; text-align: left;">
		<yabb groupcolors>

$boardindex_template .= qq~
	<yabb sharedlogin>

<!-- Info Center block end --> 

Back to top
IP Logged
Page Index Toggle Pages: 1
  « Board Index ‹ Board  ^Top