Creating and modifying plugins.
-
bdconnolly
- Regular
- Posts: 140
- Joined: Tue Apr 04, 2006 9:37 pm
Post
by bdconnolly »
Last little question for the day. Can someone help me to get Feedflare to ignore Sticky Posts?
I take it I need a line of code in here somewheres:
Code: Select all
if (isset($hooks[$event])) {
switch($event) {
case 'entry_display':
if (!is_array($eventData)) return false;
$elements = count($eventData);
for ($i = 0; $i < $elements; $i++) {
if (empty($eventData[$i]['body'])) continue;
$eventData[$i]['add_footer'] .= '<script src="http://feeds.feedburner.com/~s/' . $this->get_config('feedburnerid', '') . '?i=' . serendipity_archiveURL($eventData[$i]['id'], $eventData[$i]['title'], 'baseURL', true, array('timestamp' => $entry['timestamp'])) . '" type="text/javascript" charset="utf-8"></script>';
}
return true;
break;
-
bdconnolly
- Regular
- Posts: 140
- Joined: Tue Apr 04, 2006 9:37 pm
Post
by bdconnolly »
No Brian... I'd use Smarty. Here, put this in your entries.tpl:
Code: Select all
<div class='serendipity_entryFooter'>
{if $dategroup.is_sticky}
{else}
{$entry.add_footer}
{if $entry.has_comments}
{if $use_popups}
<a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=480,height=480,scrollbars=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a>
{else}
<a href="{$entry.link}#comments">{$entry.label_comments}({$entry.comments})</a>
{/if}
{/if}
{if $entry.has_trackbacks}
{if $use_popups}
- <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=480,height=480,scrollbars=yes'); return false;">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
{else}
- <a href="{$entry.link}#trackbacks">{$entry.label_trackbacks}({$entry.trackbacks})</a>
{/if}
{/if}
{if $entry.is_entry_owner and not $is_preview}
- <a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a>
{/if}
{/if}