The BDP RSS Aggregator is a plugin for us with the Wordpress publishing platform.
The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
If after using this plugin your computer or server belches blue smoke, eviscerates the blogbase and melts into a puddle, you were warned.
Distributed under GPL. Copyright: Bryan Palmer 2005.
(Note: if you are upgrading, you may need to delete all old versions of the plugin).
<li><h2>RSS Feeds</h2>
<ul>
<?php BDPRSS2::output(1); ?>
<li>About <a href="http://www.ozpolitics.info/blog/?p=87">
the RSS Aggregator</a></li>
</ul>
</li>
Once you have installed the plugin and selected your feeds you will need to get ready to format your output. In this section we look at some styles you might want to consider.
The first format is recent entries. It looks like this.
The XHTML settings for this follow:
An example is on this page.
The XHTML settings for this follow:
An example is on the right hand column of this page
The XHTML settings for this follow:
One of the options is to display the age of the post.
This is tricky stuff.
Some feeds simply do not include the date and time of a post. Some feeds only include the date. In these cases the Aggregator uses the time the feed was polled as the date and time.
Another problem is with date and time formats. Some dates and times are encoded with a standard unix string.
Some are encoded with the W3C date and time format.
Some use non-standard encoding. The Aggregator uses the PHP function
strtotime() if the
date was passed in a <pubDate>date field</pubDate>.
If the Dublin Core
<dc:date>date field</dc:date> is used, the Aggregator decodes it with the
Wordpress function parse_w3cdtf().
Quite a number of feeds have the date and time, but express it incorrectly in terms of the GMT offset. If, at the time of polling, a new post has a date/time that is more than 5 minutes into the future or 5 minutes older than the last update time, then the Aggregator uses the poll time. It also sets a check on the timezone offset. The check is displayed as a question mark.
The most commen problem I see in Canberra Australia (GMT+10.00) is that some blogs report local time as GMT time. To correct this, I can enter an adjustment (of -10) to get GMT time (or -8 for those Perth based blogs).
The secret is to use a plugin that allows you to include PHP on a page.
There are a number of such plugins for Wordpress.
I use PHP Exec
Note: this necessitates re-enetering your feed lists.
I am a little more comfortable that the code is becoming stable.
Also changed the calling arrangements. So you will to change the code in your sidebar.php to upgrade to this version.
Still a prototype version!