[pLog-svn] r1153 - plugins/trunk/blogtimes

mark at devel.plogworld.net mark at devel.plogworld.net
Mon Feb 21 08:43:35 GMT 2005


Author: mark
Date: 2005-02-21 08:43:34 +0000 (Mon, 21 Feb 2005)
New Revision: 1153

Modified:
   plugins/trunk/blogtimes/readme.txt
Log:
Update Readme.txt of blogtimes plugin.

Modified: plugins/trunk/blogtimes/readme.txt
===================================================================
--- plugins/trunk/blogtimes/readme.txt	2005-02-21 07:54:20 UTC (rev 1152)
+++ plugins/trunk/blogtimes/readme.txt	2005-02-21 08:43:34 UTC (rev 1153)
@@ -1,28 +1,19 @@
-Plugin: Article Referers
+Plugin: Blog Times
 Author: Mark Wu
+Idea From: Matt Mullenweg http://photomatt.net
 Release Date: 2005/01/23
 Version: 1.0
 
-This plugin offers you to get the referers of the specific article. Usage as followed:
+This plugin offers you to get the blog times image. Usage as followed:
 
 You can use:
-1. $articlereferers->isEnabled() to check the plugin is enabled or not. 
-2. $articlereferers->getArticleReferers( $articleId, $maxReferers , $sortByField ) to get the article referers. 
+1. $blogtimes->isEnabled() to check the plugin is enabled or not. 
+2. $blogtimes->show() to get the blog times image. 
 
-Where:
-1. $articleId is the specific ariticle id
-2. $maxReferers is the the max referers you want to show. 0 means show all referers. Default is 10.
-3. $sortByField is the order of referers. 1 means sort by hits, and 2 means order by last visit date. Default is 1 
-
 Example:
-Add the following code to postandcomments.template:
-{if $articlereferers->isEnabled()}
-<p>
-<h3>{$locale->tr("referers")}</h3>
-{assign var=postid value=$post->getId()}
-{assign var=referers value=$articlereferers->getArticleReferers($postid)}
-{foreach from=$referers item=referer}
-<li><a href="{$referer->getUrl()}">{$referer->getUrl()|truncate:60:"..."|escape}</a> ({$referer->getCount()})</li>
-{/foreach}
-</p>
+Add the following code to bottom of main.template:
+{if !empty($blogtimes)}
+{if $blogtimes->isEnabled()}
+{$blogtimes->show()}
+{/if}
 {/if}
\ No newline at end of file




More information about the pLog-svn mailing list