Fullscreen
[Show/Hide Left Column]
[Show/Hide Right Column]

Displays number of hits for certain objects
3d browser Print

Tags: plugin

Plugin Object Hits

This Wiki Plugin will display the number of hits for a wiki page, article, image gallery, file gallery and individual images or files in a gallery. The total number of hits can be displayed or the number of hits over the past x number of days.

Table of contents



Usage and Parameters

To use this plugin in a wiki page, use the syntax:
Syntax for the OBJECTHITS plugin
{OBJECTHITS(object=> ,type=> ,days=> ) /}


Parameter Accepted values Default Effect Required? Since
object for a wiki page:
the page name
for all others (see type parameter and note about file galleries below):
ID number + ? + object title
the wiki page where the plugin is used Identifies the object that the hits relate to n
type wiki, article, image, file, image gallery, file gallery wiki Identifies the type of object n
days numeric 0 The default is to show total hits for the object since it was created. Setting this parameter above 0 will cause the number of hits for that number of past days to be shown. For example, if set to 4, the total of the hits over the last 4 days for the object will be displayed. n


Close
note Note about file galleries
The plugin works differently for file galleries than described above:
  • Prior to version 3.0
    • The ID number that will work in the object parameter may be different than the actual ID number for a file gallery (sometimes it's "-1"). You would need to look in the tiki_stats MySQL database table on the server where TikiWiki is installed to see what number to use.
  • With version 3.0
    • Only the hits for the top level File Galleries can be displayed, and this is done by setting the object parameter to "0?" and the type parameter to "file gallery" (both without the quotes). The result is essentially the number of hits for the List Galleries page.

Examples


This code,
Example with no parameters set
{OBJECTHITS() /}


arrow-right.png


Would produce on this site (total hits for this page):

2173

This code,
Another wiki page and days used
{OBJECTHITS(object=HomePage, days=30) /}


arrow-right.png


Would produce on this site (hits on HomePage for the past 30 days):

43668

This code,
Hits for an article
{OBJECTHITS(object=19?News from doc.tw.o!, type=article) /}


arrow-right.png


Would produce on this site (total hits on article ID 19, titled News from doc.tw.o!):

1496




Contributors to this page: lindon1701 points  .
Page last modified on Sunday 07 June, 2009 19:10:29 UTC by lindon1701 points .

To register

To have an account at this site, please register at Tikiwiki.org (external link), and then use that user name and password to log in here.

Find by Page Name

Exact match

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki documentation and should correspond to development keywords (bug reports and feature requests):

Accessibility (WAI – 508)
Action log 2.x
Alert 3.x
Articles & Submissions
Backlinks
Banners
Blog
Bookmark
Browser Compatibility
Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts Address book
Contact us
Content template
Contribution 2.x
Cookie
Copyright
Custom Home (and Groups Home Page)
Date and Time
Debugger Console
Directory (of hyperlinks)
Documentation link from Tiki to doc.tikiwiki.org (Help System)
DogFood
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interaction
Inter-User Messages
InterTiki
Karma
Live Support
Login
Look and Feel
Lost edit protection
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profile Manager
Quicktags
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Security
Semantic links 3.x
Shadowbox
Shoutbox
Slideshow
Smarty Template
Smiley
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
System log
Tags 2.x
Task
Tell a Friend + Social Bookmarking 2.x
TikiTests 2.x
Theme
Trackers
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebHelp
Webmail
Webservices
Wiki 3D
Wiki History, page rename, etc
Wiki Page Staging and Approval 2.x
Wiki Plugins extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
WYSIWYCA
WYSIWYG 2.x
XMLRPC