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


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:



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%">
<tr>
	<td class="titlebg" align="center" colspan="2">
		$boardindex_txt{'685'}
	</td>
</tr> 




and in same file add as below

Code
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>
		<div style="float: left; width: 40%; text-align: left;">
		<yabb groupcolors>
		</div>
	</td>
</tr>
</table>

~;
}
$boardindex_template .= qq~
	<yabb sharedlogin>
</div>

<!-- Info Center block end --> 

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