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/log2017-10-09.txt" by default

You could create a generic TWiki06x00.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

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2005-07-19 - WillNorris
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.