Plugin recenttrackbacks
From LifeType Wiki
Name: Recent Trackbacks
Latest version: 1.0
Download link: http://prdownloads.sourceforge.net/lifetype/recenttrackbacks.zip?download
License: GPL
Author: Mark Wu
[edit] Description
This plugin offers the most recently article trackbacks.
[edit] Configuration
The plugin configuration page can be found under Control Center->Recent Activities Management.
You can use:
- $recenttrackbacks->isEnabled() to check the plugin is enabled or not.
- $recenttrackbacks->getRecentTrackbacks( $maxTrackbacks , $based ) to get the recent trackbacks.
Where:
- $maxTrackbacks is the the max trackbacks you want to show. Default is 10.
- $based is return the site-wide or blog-wide trackbacks. "BLOG" means blog-wide, and "SITE" means site-wide. Default is "BLOG".
Add the following code to footer.template or header.template:
{if $recenttrackbacks->isEnabled()}
<h2>Recent Trackbacks</h2>
{assign var=trackbacks value=$recenttrackbacks->getRecentTrackbacks()}
<ul>
{foreach from=$trackbacks item=trackback}
{assign var=trackbackpostid value=$trackback->getArticleId()}
{assign var=trackbackpost value=$recenttrackbacks->getArticle($trackbackpostid)}
<li><a title="View trackbacks by {$trackback->getBlogName()}" href="{$trackback->getUrl()}"><b>{$trackback->getBlogName()}:</b>{$trackback->getTitle()}</a></li>
{/foreach}
</ul>
{/if}
