Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
wet_slimpattern: SlimStat integration into Textpattern
wet_slimpattern is:
- a plugin which integrates SlimStat’s hit logging code into Textpattern.
- my entry into the “Most Concise Textpattern Plugin of 2005” contest and thus a proof that one line of code can make a somehow useful plugin.
Documentation and download is here. What the heck is SlimStat?
Last edited by wet (2005-12-26 17:12:32)
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
Wet, this is useful and seems to work fine. I already had SlimStats so all I had to do was remove the line in index.php. For this site I am using it for, I only see hits to the homepage. Nothing but the homepage! On other sites where I have SlimStats it works fine – with the “paths” plugin I can see where they go from the homepage to other pages.
That part is a bit weird. Same TXP version, same SlimStats version, same server, two different sites, one which tracks all the hits from the homepage and the other doesn’t.
Thanks for the useful plugin.
Offline
#3 2005-12-26 16:59:03
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: wet_slimpattern: SlimStat integration into Textpattern
Nice. This made me finally decide to give SlimStat a go. Working fine here, thanks.
Offline
#4 2005-12-27 13:03:24
- alexandra
- Member
- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: wet_slimpattern: SlimStat integration into Textpattern
It would be interesting to compare SlimStat and Hit_logger. Can someone supply some screenshots for that purpose? I use hit_logger and do not like to switch to slimStat loosing all my hit_logger statistics.
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
It really just looks like these screnshots on Stephen Wettone’s site. That’s about all, no more screens available. I really like the “multiple filters applied” view which presents a cross section through all your acquired logging data based on criteria you choose by simply selecting matching entries in the Overview or Details screen.
Maybe you’d want try to it as a secondary logging application for a while. There’s no obstacle to logging every hit twice (besides disk space). SlimStats’ database layout is quite simple so importing existing logging data might not be an issue at all. Disclaimer: I do not know anything about the inner workings of hit_logger.
Last edited by wet (2005-12-27 17:38:42)
Offline
#6 2005-12-27 13:24:19
- alexandra
- Member
- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: wet_slimpattern: SlimStat integration into Textpattern
wow that looks great. what i liked about hit_logger most compared to other statistic tools i gave a try in the past was the statistics about the most read article. seems as if SlimStats supplies a statistic about that too. I will give your plugin a try :) thanks for it, btw.
Offline
#7 2005-12-28 07:40:45
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: wet_slimpattern: SlimStat integration into Textpattern
yes, very nice – something easy to install while waiting for godot anemone
cheers wet & nice synchronicity with slimstat’s mr wet*
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
I’ve installed Slimstats and the plugin but it does not work.
Is there anything else that I should do to make it work?
I have 4.0.3 texpattern release.
Thanks.
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
Assuming that you have installed SlimStat at http://www.yoursite.com/slimstat
:
- Recheck that you really have installed and enabled wet_slimpattern.
- While hunting down errors, make sure that you have enabled logging of you own visits (IP address) in SlimStats
_config.php
. - Browse to
http://www.yoursite.com/slimstat/inc.stats.php
.
You should see a blank page without any error message. The database table used for logging (named slimstat
per default) should contain an entry mirroring this recent visit.
In case both conditions apply you could a diagnostic output to the plugin code, eg by printing a message whenever a hit is recorded.
if ( txpinterface == 'public' && !in_array ($_SERVER["REQUEST_URI"], array('/&')) ) {
include_once( $_SERVER["DOCUMENT_ROOT"]."/slimstat/inc.stats.php" );
echo ('<!-- logged: '.
(file_exists($_SERVER["DOCUMENT_ROOT"]."/slimstat/inc.stats.php")? 'yes' : 'no').
' -->'.n);
}
This should print “logged: yes” or “logged: no” as a HTML comment plus potential error messages at the very top of every web page. View HTML source to verify.
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
Ok, I did all that, but I still see usual textapattern visitor log and not Slimstats.
I can only view Slimstats when I visit it outside the textpattern.
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
That is how this plugin is meant to work. As I wrote in the initial post of this thread:
a plugin which integrates SlimStat’s hit logging code into Textpattern.
It is not meant to integrate SlimStat’s user interface into Textpattern. I wouldn’t see any advantage in doing that.
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
Ok, then everything works fine;-)
Thanks anyway.
Offline