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>Visitor</strong></td>
<td style="font-size:9px"> </td>
<td style="font-size:9px"><strong>View</strong></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:</strong></td><td style="font-size:9px"><script type="text/javascript" src="http://www.yourwebsite.com/stats/view_stats.js.php?mode=5"></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=6"></script></td>
</tr>
<tr>
<td style="font-size:9px"><strong>Total:</strong></td><td style="font-size:9px"><script type="text/javascript" src="http://www.yourwebsite.com/stats/view_stats.js.php?mode=3"></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=4"></script></td>
</tr>
<tr>
<td colspan=4 style="font-size:9px;text-align:center"><a href="http://www.yourwebsite.com/stats/admin.php" target="_blank">Since: 09/09/2006</a></td>
</tr>
</table>
www.XoopsViet.Org