Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2007-06-15 07:09:19

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

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&section=Arts_Info , /main/rss/?section=Article&category=Articles and /main/rss/?category=Calls&section=Call


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#62 2007-06-15 07:21:16

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

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&section=Arts_Info|\/main\/rss\/\?section=Article&category=Articles|\/main\/rss\/\?category=Calls&section=Call/';

How to build the ignore pattern:

  1. Identify the URLs to ignore
  2. Replace every forward slash with a backslash-forwardslash (\/)
  3. Replace every question mark with a backslash-questionmark (\?)
  4. 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|...)
  5. Enclose this whole shebang with slashes and single quotes ('/pattern_1|pattern_2|pattern_3|.../')
  6. Have a stiff drink.
  7. 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

#63 2007-06-15 18:12:01

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

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.

Offline

#64 2007-06-18 20:31:37

Matl
Member
From: Brannenburg, Germany
Registered: 2007-06-18
Posts: 13
Website

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

#65 2007-06-18 20:34:33

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: wet_slimpattern: SlimStat integration into Textpattern

Your file paths must be wrong – was slimstat working before the plugin??

Offline

#66 2007-06-18 21:01:54

Matl
Member
From: Brannenburg, Germany
Registered: 2007-06-18
Posts: 13
Website

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

#67 2007-06-19 11:30:54

Matl
Member
From: Brannenburg, Germany
Registered: 2007-06-18
Posts: 13
Website

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

#68 2007-11-28 17:44:42

typeshige
Member
From: USA
Registered: 2005-08-11
Posts: 151
Website

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

#69 2008-03-14 08:40:26

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

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.

Offline

#70 2008-08-01 17:31:34

pfctdayelise
Member
From: Melbourne, Australia
Registered: 2007-05-18
Posts: 68
Website

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

Board footer

Powered by FluxBB