Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: wet_slimpattern: SlimStat integration into Textpattern
A stupid question… All those back and fore slashes confuse me:)
How do I add to queries to ignore?
As it is now the array shows like this:
$ignore = '/\/&|^\/rss\/|^\/rss$|^\/atom\/|^\/atom$|\?rss=1|\?atom=1/';
I’d like to add:
/main/?js=tabmenujs , /main/?js=jumbmenu , ?js=tabmenujs , ?js=jumbmenu, main/rss , main/atom , /main/rss/?category=Arts_Info§ion=Arts_Info , /main/rss/?section=Article&category=Articles and /main/rss/?category=Calls§ion=Call
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Online
Re: wet_slimpattern: SlimStat integration into Textpattern
They confuse me, too ;-)
Anyhow, this should work:
$ignore = '/\/&|^\/rss\/|^\/rss$|^\/atom\/|^\/atom$|\?rss=1|\?atom=1|\/main\/\?js=tabmenujs|\/main\/\?js=jumbmenu|\?js=tabmenujs|\?js=jumbmenu|main\/rss|main\/atom|\/main\/rss\/\?category=Arts_Info§ion=Arts_Info|\/main\/rss\/\?section=Article&category=Articles|\/main\/rss\/\?category=Calls§ion=Call/';
How to build the ignore pattern:
- Identify the URLs to ignore
- Replace every forward slash with a backslash-forwardslash (
\/
) - Replace every question mark with a backslash-questionmark (
\?
) - Add every single URL to the ignore pattern by separating them with a bar (
|
). Do not introduce additional space, as spaces are matched against the URL, too (pattern_1|pattern_2|pattern_3|...
) - Enclose this whole shebang with slashes and single quotes (
'/pattern_1|pattern_2|pattern_3|.../'
) - Have a stiff drink.
- Test it. Most simple solution in case you added your own IP address to the ones which are not logged: Let the W3 Validator crawl a URL which shouldn’t be logged.
Last edited by wet (2007-06-15 18:15:42)
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
Thanks robert, that was very helpful! In fact I edited the help of the plugin to include your explanation above… stiff drink included:)
Last edited by colak (2007-06-15 18:14:39)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Online
Re: wet_slimpattern: SlimStat integration into Textpattern
slimstat doesn’t work. I get the message:
Ein Fehler trat auf beim Laden des Plugins: wet_slimpattern -> Warning: Unknown(): Unable to access /srv/www/htdocs/web524/html/slimstat/inc.stats.php on line 14
Ein Fehler trat auf beim Laden des Plugins: wet_slimpattern -> Warning: Unknown(/srv/www/htdocs/web524/html/slimstat/inc.stats.php): failed to open stream: Erfolg on line 14
Ein Fehler trat auf beim Laden des Plugins: wet_slimpattern -> Warning: (null)(): Failed opening ‘/srv/www/htdocs/web524/html/slimstat/inc.stats.php’ for inclusion (include_path=’.’) on line 14
Please help me:
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
Your file paths must be wrong – was slimstat working before the plugin??
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
No, it didn’t work. Do you have an example for a right file path. Must I change it in _config_php?
It looks like this:
var $server = “localhost”; // Leave as localhost unless you know otherwise
var $username = “web??????4”; // The username used to access your database
var $password = “EJ???????SQL”; // The password used to access your database
var $database = “usr_???????_2”; // The database containing the stats table
Last edited by Matl (2007-06-21 15:54:24)
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
If I enter in the browser:
… mattmedia/slimstat/inc.stats.php everything functions. The database counts the hit. But all other sites were not counted.
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
Hi, I just installed this plug in and SlimStat.
I’m having the exact same issue. Only typing a URL registers a hit. Links in my pages going to other pages don’t show up.
Any suggestions? Thank you
Shige
jstubbs wrote:
Update: The pages visited are entered into SlimStat when entering the link directly into the URL bar and pressing enter, but if clicking through the site pages, only the homepage shows up as one hit.
Offline
Re: wet_slimpattern: SlimStat integration into Textpattern
Since the crash of burnaby at textdrive yesterday slimstat used for neme.org returns no hits. I also filled a support ticket in Joyent but Ijust thought to ask here too just in case there is something I could do to check if the stats are actually working or not. I have performed all the obvious tests like disabling stealth, creating a new post and checking the “New Resources”.. Nothing. Our stats software worked seamlessly since 13 Jun 2006 and this is the first time that no hits are recorded. Any advise/assistance would be appreciated.
>Edit: False alarm. Just a corrupted table. Nothing phpAdmin couldn’t fix
Last edited by colak (2008-03-14 13:05:53)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Online
Re: wet_slimpattern: SlimStat integration into Textpattern
I have no complaint. I just wanted to express my deep happiness at this plugin and SlimStat’s fine coexistence.
—SlimStat Fanclub, Newest Member
Offline
#71 2009-03-27 12:30:28
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: wet_slimpattern: SlimStat integration into Textpattern
jstubbs wrote:
Update: The pages visited are entered into SlimStat when entering the link directly into the URL bar and pressing enter, but if clicking through the site pages, only the homepage shows up as one hit.
typeshige wrote:
I’m having the exact same issue. Only typing a URL registers a hit. Links in my pages going to other pages don’t show up.
I’m trying this plugin for the first time and it looks very nice.
Anyway I have the same issue: only typing a URL registers a hit.
I have read the whole thread without finding an answer. Does someone have a suggestion to avoid this?
Thanks!
Offline
#72 2009-03-27 18:39:47
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: wet_slimpattern: SlimStat integration into Textpattern
redbot
Isn’t it something in your Slimstat settings? Did you check _config.php? I’m not sure but it could be this line:
/** Whether to display number of unique IP addresses */
var $show_uniques = false;
Offline