NP_RSSButtons

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 &amp; 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
  • google
  • 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.


« Prev item - Next item »
--------------------------

Comments

Uhm, don't see any RSS buttons in the sidebar (of this blog). But it's late and my eyes are tired, lol.

zenny • 16 March, 2007 • 05:41:37
Yeah, sorry I removed them for something else and forgot to put them back. I'll try to add them to the bottom of the sidebar soon.

ftruscot • 16 March, 2007 • 09:04:11
Thanks for the code.

Herb • 25 October, 2007 • 07:24:35

Leave comment



Skin Chooser

Categories

Blogs

Links

Archives

Search