5
I think I was wrong about AWStats. This one is not to intergrate with a XOOPS site probably.
For PHP i-Stats 1.2 do the following:
1. create a folder called ie. stats in your modules folder.
2. edit the file include/config.inc.php according to the included install.txt
3. create a file called xoops_version.php with following info:
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
// Copyright (c) 2000 XOOPS.org //
// //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// //
// You may not change or alter any portion of this comment or credits //
// of supporting developers from this source code or any supporting //
// source code which is considered copyrighted (c) material of the //
// original comment or credit authors. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program; if not, write to the Free Software //
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
// ------------------------------------------------------------------------ //
// E-Mail: none //
// Project: The XOOPS Project (https://xoops.org/) //
// ------------------------------------------------------------------------- //
$modversion['name'] = "PHP i_Stats";
$modversion['version'] = 1.2;
$modversion['description'] = "PHP i-Stats. External script installed in XOOPS MODULES";
$modversion['credits'] = "Sam Tang";
$modversion['author'] = "Sam Tang. XOOPS bridge built by McDonald";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 0;
$modversion['image'] = "stats_logo.gif";
$modversion['dirname'] = "stats";
//Admin things
$modversion['hasAdmin'] = 0;
$modversion['adminmenu'] = "";
// Menu
$modversion['hasMain'] = 1;
?>
You have to create the icon stats_logo.gif yourself.
4. upload all files including xoops_version.php to the folder ../modules/stats/
5. execute "sql/SQL_new_install.sql" with MySQL on phpMyAdmin or shell
6. insert the following code somewhere (ie. footer) into your theme.html file and replace yourdomain.com with your url:
<script type="text/javascript" language="Javascript">
function replaceText(text){
while(text.lastIndexOf("&") > 0){
text = text.replace('&', '[i-Stats]');
}
return text;
}
var web_referrer = replaceText(document.referrer);
script>
7. go to your admin panel, choose modules -> administration and install it as you do with a normal XOOPS module
8. PHP i-Stats has been added to your Main Menu now. If you click it, it will take you to PHP i-Stats.