Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#31 2006-07-03 07:39:03
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: wet_slimpattern: SlimStat integration into Textpattern
colak
There was a thread/post about it somewhere but here’s what I put in the plugin to stop logging my feed hits.
<pre>if ( txpinterface == ‘public’ &&
!in_array($_SERVER[“REQUEST_URI”], array( ‘/&’ , ‘/atom’, ‘/atom/’ , ‘/atom/?category=main§ion=plugins’ , ‘/rss’ , ‘/rss/’ )) &&
!in_array($_SERVER[“QUERY_STRING”], array( ‘rss=1’, ‘atom=1’) )
) {
@include_once( $_SERVER[“DOCUMENT_ROOT”].”/slimstat/inc.stats.php” );
}</pre>
— Steve
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
Hi steve,
Thanks!!! I must have missed that thread…
Last edited by colak (2006-07-03 08:34:07)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
net-carver wrote:
colak
There was a thread/post about it somewhere but here’s what I put in the plugin to stop logging my feed hits.
???: so if my main install is in a subdirectory (called “main”) would the above change to:
<pre>if ( txpinterface == ‘public’ &&
!in_array($_SERVER[“REQUEST_URI”], array( ‘/&’ , ‘/main/atom’, ‘/main/atom/’ , ‘/main/atom/?category=main&amp;section=plugins’ , ‘/rss’ , ‘/rss/’ )) &&
!in_array($_SERVER[“QUERY_STRING”], array( ‘rss=1’, ‘atom=1’) )
) {
@include_once( $_SERVER[“DOCUMENT_ROOT”].”/slimstat/inc.stats.php” );
}</pre>
?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
I’ve added above mentioned basic filtering capabilites to the code of v0.3. The plugin code now contains an expandable array of ignored URLs and queries.
Offline
#35 2006-07-16 06:36:25
- mmelon
- Member
- Registered: 2006-03-02
- Posts: 95
Re: wet_slimpattern: SlimStat integration into Textpattern
if anybody works out how to include the running total of unique visitors from the db then i’d love to know. Seems a shame to not be able to include on my site.
Offline
#36 2006-07-16 12:30:24
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: wet_slimpattern: SlimStat integration into Textpattern
@mmelon: this is working for me:
<txp:php>$hvu = SlimStat::get_total_hits_visits_uniques(); $total = $hvu["visits"] + 24195; print $total;</txp:php>
(24195 is the nr of visitors I had before installing Slimstat)
You can change "visits" to "uniques" if you want.
Last edited by els (2006-07-16 12:33:00)
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
Nice extension, and slimstat works fine.
A question: is it possible with the filtering options of this extension to filter certain ip numbers so that are not counted as visitors. I do no want my visits to my website to be counted, and since I have fixed IP adress I would like to filter it out.
Suggestions are greatly appreciated
Offline
#38 2006-08-04 19:45:19
- NyteOwl
- Member

- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: wet_slimpattern: SlimStat integration into Textpattern
You can do that by editing the SlimStat config file and adding your IP to this line:
/** Don’t log hits from these IP ranges */ var $ignored_ips = array( “192.168.”, “10.”, “127.” );
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
There’s also a nice little Slimstat plugin available that places a cookie on the admin’s PC – works nicely for those of us without a fixed IP.
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
thanks for that Neil. I’m on adsl but without a fixed IP so this will save me a lot of editing
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#41 2006-09-19 06:47:52
- moslib
- Member
- Registered: 2005-08-11
- Posts: 39
Re: wet_slimpattern: SlimStat integration into Textpattern
using this on a subdomain sub.domain.tld – install seems fine as per usual but no hits being logged… ? anyone can confirm this working on a subdomain?
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
Confirmed. Works in subdomains, subfolders and just about everywhere.
Offline
#43 2006-09-19 21:11:41
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: wet_slimpattern: SlimStat integration into Textpattern
moslib wrote:
using this on a subdomain
sub.domain.tld– install seems fine as per usual but no hits being logged… ? anyone can confirm this working on a subdomain?
I’ve got the same problem. Changing /slimstat/inc.stats.php in the plugin code to /sub/slimstat/inc.stats.php doesn’t get any hits recorded. (Yes, there are hits in the TXP logs.)
Slimstat on another subdomain of the same site does record hits.
Last edited by els (2006-09-19 21:14:35)
Offline
#44 2006-09-25 18:16:43
- rayben
- Member

- From: Cologne, Germany
- Registered: 2004-10-20
- Posts: 31
Re: wet_slimpattern: SlimStat integration into Textpattern
Sorry to bother you guys with a noob question, but how can I exclude Feedburner.com from being logged ?
Thanks in advance
Ben
Offline
#45 2006-10-09 23:20:55
- nardo
- Member

- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: wet_slimpattern: SlimStat integration into Textpattern
further to the above… in the page template, I have the tag <base href="http://sub.domain.tld" /> – could this be the culprit?
Offline