Tags:
create new tag
, view all tags

PageStatsPluginDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on PageStatsPlugin contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

Feedback on PageStatsPlugin

"inspired" by BBClone, a clone of Big Brother Webstats (aka BBStats)

simple implementation ( it uses grep to search the log files, so it's not exactly a speed demon smile )

i would prefer create links at the bottom of pages, which would lead to another page with the list of views and saves, but i don't know how to set that up...

-- WillNorris - 25 Oct 2003

I did some editing of the Plugins topic, feel free to take this into the next release.

Feedback from a quick look at the code:

  • the Plugin uses undocumented TWiki functions like TWiki::extractNameValuePair. Use the TWiki::Func equivalents
  • grep is called directly with backticks. Not all systems have grep in the path. You could use $TWiki::egrepCmd
  • the Plugin assumes $TWiki::dataDir/log*.txt for the log files. The latest TWiki version has a log dir setting, the default is the data dir, but an admin might change that. Better to parse $TWiki::logFilename", whcih is ="$logDir/log2012-02-10.txt" by default

You could create a generic TWiki05x01.WebTopicStatsDisplay topic that contains a %PAGESTATS{ web="%URLPARAM{web}%" topic="%URLPARAM{topic}%" }% line, then add a [[%SCRIPTURL%/view%SCRIPTSUFFIX%/%TWIKIWEB%/WebTopicStatsDisplay?web=%WEB%&topic=%TOPIC%][page stats]] link in your view template (or skin)

-- PeterThoeny - 25 Oct 2003

Oh.

"grep is called directly with backticks"
Perhaps we need a security audit of plugins and add-ons.

-- AntonAylward - 25 Nov 2004

of course we do

-- WillNorris - 25 Nov 2004

checked .zip into CVS

-- WillNorris - 19 Jul 2005

 
Topic revision: r7 - 2005-07-19 - WillNorris
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.