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)

Rating:
51.0
54 votes
1 2 3 4 5

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%>
Rating:
51.0
54 votes
1 2 3 4 5

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

Comments

1. 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
2. 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
3. Thanks for the code.

Herb • 25 October, 2007 • 07:24:35
4. You sir, are amazing. I wonder though, as it's beyond my poor hacking ability, if you'll consider adapting this to integrate Dynamic Drive's AnyLink JS Drop Down Menu?

http://www.dynamicdrive.com...

I've slightly adapted NP_RSSbuttons to have a larger icon for RSS, but would like to have all the different services drop down as this JS menu could provide. Please e-mail me if you'd consider some sort of monetary compensation.

Take a look @ my site & you'll get an idea of what I mean.

See you on the nCMS forum!

The Doctor • 06 February, 2009 • 22:02:52

Leave comment