Page 1 of 1
[solved] Slimstat
Posted: Tue Oct 31, 2006 3:53 pm
by akb
Hi there,
at first: Hello to all, I am the new one
But here's my question: I'd like to integrate Slimstat into my CMSMS-site, but dont know where to do so. Will it work by simply integrating the needed php line as first line into the main index.php file? Has anyone done so and it's working?
edit: Tried it and it simply works. Thanks for your attention

Re: [solved] Slimstat
Posted: Tue Oct 31, 2006 4:58 pm
by tsw
wanna tell us how you did it?
or maybe even write something in the wiki, maybe someone else is thinking about it too...
Re: [solved] Slimstat
Posted: Tue Oct 31, 2006 5:12 pm
by akb
well, it is really as simple as installing it in every other website. there's nothing special with doing so in CMSMS.
i just did what the installer of slimstat told me and it worked. after installing I had to paste a single include line (its mentioned within the installer how it should look, so i paste only an example here) at the top of /index.php and it worked. my /index.php now looks like this:
Code: Select all
<?php @include_once( $_SERVER["DOCUMENT_ROOT"]."/slimstat/inc.stats.php" ); ?> /* <- THIS ONE */
<?php
#CMS - CMS Made Simple
#(c)2004 by Ted Kulp (wishy@users.sf.net)
#This project's homepage is: http://cmsmadesimple.sf.net
#
#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.
#
#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
#
#$Id: index.php 3398 2006-08-28 01:02:24Z wishy $
$dirname = dirname(__FILE__);
require_once($dirname.'/fileloc.php');
/**
* Entry point for all non-admin pages
Slimstat is located there:
http://wettone.com/code/slimstat
Re: [solved] Slimstat
Posted: Tue Oct 31, 2006 5:16 pm
by tsw
thanks for your input