Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-26 08:08:07

wet
Developer
From: Lenzing, Austria
Registered: 2005-06-06
Posts: 3,265
Website

wet_slimpattern: SlimStat integration into Textpattern

wet_slimpattern is:

  1. a plugin which integrates SlimStat’s hit logging code into Textpattern.
  2. 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

#2 2005-12-26 10:44:39

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,386
Website

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
Admin
From: The Netherlands
Registered: 2004-06-06
Posts: 7,454
Website

Re: wet_slimpattern: SlimStat integration into Textpattern

Nice. This made me finally decide to give SlimStat a go. Working fine here, thanks.


<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields

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

#5 2005-12-27 13:11:01

wet
Developer
From: Lenzing, Austria
Registered: 2005-06-06
Posts: 3,265
Website

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: 741

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

#8 2006-01-09 21:04:39

fuls
Member
Registered: 2005-11-16
Posts: 117
Website

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

#9 2006-01-10 05:44:49

wet
Developer
From: Lenzing, Austria
Registered: 2005-06-06
Posts: 3,265
Website

Re: wet_slimpattern: SlimStat integration into Textpattern

Assuming that you have installed SlimStat at http://www.yoursite.com/slimstat:

  1. Recheck that you really have installed and enabled wet_slimpattern.
  2. While hunting down errors, make sure that you have enabled logging of you own visits (IP address) in SlimStats _config.php.
  3. 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

#10 2006-01-10 15:15:05

fuls
Member
Registered: 2005-11-16
Posts: 117
Website

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

Board footer

Powered by FluxBB