Table of Contents

NP_Duration.php

This plugin is designed for displaying the duration in blog post in relative to current time. Much easier to relate than verbose date.

Generally dates being displayed as Dec 20, 2005 21:14 PM, is quite verbose and viewer will calculate how fresh that item is. This plugin gives this freshness information directly to the user.

This plugin displays duration as: 4 hours ago, 21 days ago. The numbers are rounded to nearest integer.

General Plugin info
Current Version: v1.0
Download: http://samirkulkarni.com/NP_Duration.zip
Code: -
Demo: -
Forum Thread: -

Install

  1. Download the plugin zip
  2. Unzip the source file from zip in plugin folder
  3. install the plugin
  4. change option if needed. (By default, EST time zone is used for calculation. Provide offset of EST (+/-) with your current time zon in options.
  5. In the template, put <%Duration%> where you want duration to appear.

History

v1.0 - first public release

:: Back to Plugins Overview ::

duration.txt · Last modified: 2007/05/28 14:48 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki