|
MPN RSS-Feed in Mozilla Firefox 1.0PR and Opera 7.5x
|
|
 |
Posted on Saturday, October 16 2004 @ 04:06:31 CESTby avw
|
|
|
access writes Mozilla Firefox allows you to read RSS-feeds in your bookmarks. If there is a feed available Firefox will show a small rss-symbol in the status bar. The only thing you need to do to tell Firefox that your page has a feed, you add this line to the file header.php in the html directory in the head section of the file:
echo "<link rel="alternate" type="application/rss+xml" title="Your sitename RSS-Feed" href="http://www.yourdomain/backend.php">\n";
The above text was submitted by access. Thank you for your contribution and reminding me of an idea I head some time ago.
I (avw) played a bit with your code and extended it like this so that it works without having to alter the texts and domainname yourself. It also works in Opera where it doesn't create a live bookmark as in Firefox but really provides a one-click feature that connects the Opera built-in RSS reader to the website's RSS feed.
echo '<link rel="alternate" type="application/rss+xml" title="' . stripslashes($sitename) . '" href="' . _MPN_ROOT_URI . "rss.php\">\n";
You need to add this line right under the other link tag(s).
You need to be using 1.8.8_8 RC2 latest release as that's the first distro that contains a RSS 2.0 compliant feed.
You can even extent this if you want to have a button in Opera that links to a colofon or copyrights page. Let's assume that your have added your copyright info to the sections and that it's page id is 10. You would need to add the following line:
echo '<link rel="copyright" title="Copyrights" href="sections.php?op=viewarticle&artid=10">' . "\n";
Another nice feature could be to always have the button in the menubar going back to index page. Easy, just add the next line:
echo '<link rel="index" title="Index" href="index.php">' . "\n";
I'm quite sure that something like this must be available in Mozilla Firefox but I didn't find a quick reference to it. If you know where this info is available, just reply to this article.
|
|
| |
|
|
|
|
|
addons
|
|
|
|
Comments