views

NP_Views.php

This plugin display how many time an item is viewed.

General Plugin info
Current Version: v1.9.1
Download: here
Code: click here (outdated v1.4)
Demo: n/a
Forum Thread: forum here

Installing

  1. Copy the above code and save to NP_Views.php
  2. Upload to plugin directory
  3. Install from plugin admin menu
  4. Config the plugin options
  5. Add <%Views%> skinvar to item template. ie Viewed: <%Views%> times. For silent mode (which does not return view count, for use w/ NP_MostViewed), simply put <%Views%> somewhere in the item template

Available SkinVars and/or TemplateVars

The skinvar can also be called with <%Views(skipcount)%> to allow skipping count when used in main index template

History

  • v1.1
    • add getTableList
  • v1.2
    • use sql_table
    • Added silent mode (configure via option) to support NP_MostViews
    • Added Cleanup upon uninstall option
    • Added “just number” minimalist mode
    • Added supportsFeature
  • V1.2a
    • Added min version support
  • V1.3
    • Replaced doSkinVar with DoTemplateVar
  • V1.3a
    • Added repeat views ignore function aka repeat F5s from those bored and lonely one
  • V1.3b
    • Fixed counting off by 1 bug
  • V1.3c
    • Added <%Views(skipCount)%> to allow skipping count when used in template (ie to not count on click in main page)
  • V1.4
    • Fixed ignore same IP count problem
  • V1.5
    • Added views_log table and changed plugin performance to check for unique visits by IP address.[gRegor]
    • Added option to set the length of time before re-counting hits from the same IP address (default: 2 hours) [gRegor]
  • V1.6
    • Added plugin menu to display all view count, w/ counter reset function
    • Delete view counter and log for deleted item
  • V1.8
    • Admin menu enhancement to preserve sorting and order info when reset a count
  • V1.9
    • admin menu now show item title, instead of item#
  • V1.9.1
    • fix admin menu show draft view count (where it should not)
 
views.txt · Last modified: 2009/03/20 23:38 by admun