Lilina now outputs RSS with Feedcreator
Aggregated RSS feeds presented as HTML and Javascript by Lilina are very sweet. The more we used them, the more we missed having them served as RSS. After much research it seemed to us that there is no nice and easy PHP code capable of mixing RSS as RSS. There are plenty of feed mixers offered as a service but very few offered as a product.
On the fetching and parsing side, Lilina had everything I wanted. All I needed was to make it generate RSS instead of HTML.
I went foraging for RSS creation libraries. The first one I found was XML-RSS-Aggregate . I liked it because the example provided with XML-RSS-Aggregate is an RSS agregator that ouptuts RSS – exactly what I was looking for. But Shlomi Fish mentioned that “this module is unmaintained and no longer works very well. The author (and I) recommend that you use XML::Feed now“. So I took a look at XML-Feed and found it too complex for my meagre skills. And I’m not that hot with Perl anyway. So I went looking somewhere else.
I found my salvation in Feedcreator. Feedcreator creates valid feeds in various formats, features configurable caching, reasonnable documentation and readable code. I found it quite easy to use. All it needs is an array of RSS elements, and that is exactly what Lilina provides.
I took Lilina’s index.php, cleaned up the HTML generation, spliced in the example code from Feedcreator, mapped input to output and lo and behold I had a reasonably valid RSS output by Lilina. Very sweet !
Source code of the modified Lilina with Feedreactor hybridation is available here.
I even added a cute RSS icon to Lilina’s default layout…
11 responses to “Lilina now outputs RSS with Feedcreator”
Leave a Reply
You must be logged in to post a comment.
Great Patch! Thanx.
I have a problem though. I see your feed in my site. What should I change?
> I see your feed in my site.
> What should I change ?
Do you actually mean you do not see it ? I do not understand your problem. Could you please explain more ?
Ofcourse, when i click the feed button I cant see this: http://www.webz.gr/watcher/aggregated_rss/
*can
Ok I understand : you see the default feeds configured with the package. You need to go to http://www.webz.gr/watcher/aggregated_rss/edit.php to delete the default feeds and add your own. Login and password are configured in conf.php
Thank you very much.
There is another problem with encoding. Do you happen to know how to fix it? :)
> There is another problem with encoding.
> Do you happen to know how to fix it ?
I have also noticed it. I don’t have a fix yet. It may have something to do with conflicting declarations about ISO8859-1 and UTF-8 between the page headers and the HTTP server. I don’t know yet…
Ok, If I fix it, I will post here the solution. Thank you Again!
Is the only difference from the main lilina the aggregated_rss folder, and does it require modification to any other file? Also can it just be integrated into 1 extra file?
I ask this as I may soon be releasing a new version of lilina, if my project takeover is accepted.
Thanks,
Ryan
> Is the only difference from the main lilina
> the aggregated_rss folder
Essentially yes.
Apart from that there is just the trivial HTML required to display the RSS icon on the main page.
I also modified the AUTHORS file with all due credit.
Thanks.
I am now a project admin on lilina and plan to make a lot of changes.