NP_RSSButtons
- Posted by: ftruscot • 30 March, 2006
This plugin will insert a button/link to facilitate subscibing to a number of news reader or page indexing sites. See the sidebar to the right for an example.
I made it so that I could have an RSS icon link in my skins that was smart enough to give the feed for only the blog and category currently selected (I have multiple blogs and use categories).
I have made a version 0.2 which fixes some XHTML compliance issues. (Added alt attributes to <img> tags, removed some target="_blank" attributes for delicious and furl, and replaced & with & in URLs)
To Install:
Download the zip file NP_RSSButtons.zip.
Unzip the file and transfer the NP_RSSButtons.php file and rssbuttons directory to your nucleus/plugins directory.
Use the Nucleus Management GUI to install the plugin.
To Use:
In the skin, where you want the icon button to appear, insert:
<%RSSButtons(buttonname)%>
where buttonname is one of the following:
- rss
- xml
- delicious
- yahoo
- bloglines
- newsgator
- msn
- feedster
- aol
- furl
- rojo
Example
This is the code used to display the buttons in the sidebar of this site:
<%if(skintype,error)%><%else%>
<%if(skintype,member)%><%else%>
<div class="sidebar">
<dl class="sidebardl">
<dt>Subscribe </dt>
<dd><%RSSButtons(rss)%><br />
<%RSSButtons(xml)%><br />
<%RSSButtons(google)%><br />
<%RSSButtons(delicious)%><br />
<%RSSButtons(yahoo)%><br />
<%RSSButtons(bloglines)%><br />
<%RSSButtons(newsgator)%><br />
<%RSSButtons(msn)%><br />
<%RSSButtons(feedster)%><br />
<%RSSButtons(aol)%><br />
<%RSSButtons(furl)%><br />
<%RSSButtons(rojo)%><br /></dd>
</dl>
</div>
<%endif%><%endif%>
The Code
To view the code, click here.
zenny • 16 March, 2007 • 05:41:37