33
Hi Trabis,
I am using PHP Stats and installed it separately from Xoops, you can get a copy from
here.
Once installed modify your XOOPS footer.php and put this code in:
$xoopsLogger->stopTime();
}
// Code for PHP-Stats counter
define('__PHP_STATS_PATH__','/xxxxxxxxx/html/yourwebsite.net/stats/');
include(__PHP_STATS_PATH__.'php-stats.redir.php');
?>
in membership module, modify templates\blocks\membership_block.html and put this code in:
<b><u>Site Statistic:u>b><br />
<table style="font-size:9px;text-align:right;" align="center">
<tr >
<td style="font-size:9px"><{if $xoops_isadmin}><strong>Now:strong><script type="text/javascript" src="http://www.yourwebsite.com/stats/view_stats.js.php?mode=0">script><{/if}>td><td style="font-size:9px"><strong>Visitorstrong>td>
<td style="font-size:9px"> td>
<td style="font-size:9px"><strong>Viewstrong>td>
tr>
<tr>
<td style="font-size:9px"><strong><strong>Today:strong>td>
<td style="font-size:9px"><script type="text/javascript" src="http://www.yourwebsite.com/stats/view_stats.js.php?mode=1">script>td>
<td style="font-size:9px"> td><td style="font-size:9px"><script type="text/javascript" src="http://www.yourwebsite.com/stats/view_stats.js.php?mode=2">script>td>
tr>
<tr>
<td style="font-size:9px"><strong>Y'day: |
| |
Total: | |
| |
Since: 09/09/2006 |