1

Topic: Show Total Events along with Total Members, etc.

You can modify the ext.stats.php extention to include "Total Events" from the Calendar.

Modify ext.stats.php (at about line 76):

case 'audios':
case 'pictures':
case 'events':
case 'videos':

Modify header.tpl (or where ever you wish to place it) with the following:

<font color="#FFFFFF" size="2"><B>Total Members:  </B></font><font color="#EBFF33" font size="2"><b>{stats:count="members",online="0",cache_time=1,cache_name="totalmembers"}</b></font><br>
<font color="#FFFFFF" size="2"><B>Online Members:  </B></font><font color="#EBFF33" font size="2"><b>{stats:count="members",online="1",cache_time=1,cache_name="totalonline"}</b></font><br>
<font color="#FFFFFF" size="2"><B>Total Photos:  </B></font><font color="#EBFF33" font size="2"><b>{stats:count="pictures",online="0",cache_time=1,cache_name="photosonline"}</b></font><br>   
<font color="#FFFFFF" size="2"><B>Total Videos:  </B></font><font color="#EBFF33" font size="2"><b>{stats:count="videos",cache_time=1,cache_name="vidoesonline"}</b></font><br>   
<font color="#FFFFFF" size="2"><B>Total Events:  </B></font><font color="#EBFF33" font size="2"><b>{stats:count="events",cache_time=1,cache_name="totalevents"}</b></font><br>

Last edited by spin1060 (2009-05-06 11:11:27)