rss aggregator extension

Creating and modifying plugins.
Post Reply
robert
Regular
Posts: 1063
Joined: Mon May 09, 2005 9:17 pm
Location: Vienna, Austria
Contact:

rss aggregator extension

Post by robert »

I would like to use rss aggregator to fill in some tag-rss-feeds of my del.icio.us accounts to some categories of my blog.

The problem is, that the entry doesn´t contain the url of the website i tagged.

Would it be possible to include this in the entry text?

Regards
Robert
Von 2005 bis 2020 nutzte ich Serendipity/S9y. Auch nach meinem Umstieg bin ich S9y weiterhin in Gedanken verbunden. Ein Dank ergeht an alle Forumsteilnehmer:innen, die mir hier weitergeholfen haben.

Nur ein Blog
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: rss aggregator extension

Post by garvinhicking »

Hi!

You might need to apply the template patch file that ships with the plugin? It inserts {$entry.properties....} links into the default entries.tpl.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
robert
Regular
Posts: 1063
Joined: Mon May 09, 2005 9:17 pm
Location: Vienna, Austria
Contact:

Post by robert »

I´m a real Newbie... :cry:

I tried to alter "theme-patch.diff" - see the red line. But nothing happens. Could someone give me a hint or post the right code. Thanks in advance.
diff -ru default/entries.tpl isoplanet/entries.tpl
--- default/entries.tpl 2005-03-15 00:04:33.000000000 +0100
+++ isoplanet/entries.tpl 2005-04-29 20:26:00.000000000 +0200
@@ -10,7 +10,7 @@
{/if}

{foreach from=$dategroup.entries item="entry"}
- <h4 class="serendipity_title"><a href="{$entry.link}">{$entry.title}</a></h4>
+ <h4 class="serendipity_title">{$entry.properties.ep_aggregator_feedname}: <a href="{$entry.link}">{$entry.title}</a> <span style="font-size: 6pt">(<a href="{$entry.properties.ep_aggregator_articleurl}">Original</a>)</span></h4>

<div class="serendipity_entry serendipity_entry_author_{$entry.author|@makeFilename} {if $entry.is_entry_owner}serendipity_entry_author_self{/if}">
{if $entry.categories}
@@ -24,7 +24,11 @@
{/if}

<div class="serendipity_entry_body">
+ {if $entry.body == ""}
+ <a href="{$entry.properties.ep_aggregator_articleurl}">Read Article</a>
+ {else}
{$entry.body}
Read The Article: <a href="{$entry.properties.ep_aggregator_articleurl}">Link</a>
+ {/if}
</div>

{if $entry.is_extended}
@@ -36,7 +40,7 @@
{/if}

<div class='serendipity_entryFooter'>
- {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a>
+ {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.properties.ep_aggregator_feedname}</a>
{if $entry.categories}
{$CONST.IN} {foreach from=$entry.categories item="category" name="categories"}<a href="{$category.category_link}">{$category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
{/if}
Von 2005 bis 2020 nutzte ich Serendipity/S9y. Auch nach meinem Umstieg bin ich S9y weiterhin in Gedanken verbunden. Ein Dank ergeht an alle Forumsteilnehmer:innen, die mir hier weitergeholfen haben.

Nur ein Blog
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Okay; the .diff files only shows what you need to add to your templates "entries.tpl" file. The file itsel fdoes nothing, you must not edit it!

The .diff file shows which lines of the original entries.tpl need to be removed prefixed with a "-". All lines that you need to insert are prefixed with a "+".

There are tools that apply .difff files automatically, but I'd rather not confuse you with that. :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
robert
Regular
Posts: 1063
Joined: Mon May 09, 2005 9:17 pm
Location: Vienna, Austria
Contact:

Post by robert »

Oh :oops: I´m a real Newbie.

Thanx for this help - I will try it soon.
Von 2005 bis 2020 nutzte ich Serendipity/S9y. Auch nach meinem Umstieg bin ich S9y weiterhin in Gedanken verbunden. Ein Dank ergeht an alle Forumsteilnehmer:innen, die mir hier weitergeholfen haben.

Nur ein Blog
Post Reply