Recent Topics

1 Apr 04, 2006 06:10    

This isn't a plugin or much of a hack, but it will take care of allowing people to subscribe to your b2evo blog with their favorite reader. I've tried to add as many as possible (at least the readers I've heard of). This script produces a drop down menu that allows the user to subscribe to your feed with the feed reader of their choice.

Paste this in between the <head> and </head> tag in the _main.php file where your skin is.

<script>
<!--
function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}
function jump(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("*");
target="";
if (splitc!=-1)
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_self";};
if (ref != "") {land(loc,target);}
}
//-->
</script>

Add this somewhere in your sidebar (note: you can change the b2evo feed to display the rss2 or atom feed instead of rdf if you prefer). Change the YOURBLOGDOMAIN value (for msn).

<form action="dummy" method="post"><select name="choice" size="1" onChange="jump(this.form)"><option value="">Subscribe with...</option><option value="http://add.my.yahoo.com/rss?url=<?php $Blog->disp( 'rdf_url', 'raw' ) ?>">My Yahoo!</option><option value="http://feeds.my.aol.com/add.jsp?url=<?php $Blog->disp( 'rdf_url', 'raw' ) ?>">My AOL</option><option value="http://my.msn.com/addtomymsn.armx?id=rss&ut=<?php $Blog->disp( 'rdf_url', 'raw' ) ?>&ru=YOURBLOGDOMAIN">My MSN</option><option value="http://www.live.com/?add=<?php $Blog->disp( 'rdf_url', 'raw' ) ?>">Windows Live</option><option value="http://fusion.google.com/add?feedurl=<?php $Blog->disp( 'rdf_url', 'raw' ) ?>">Google</option><option value="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=<?php $Blog->disp( 'rdf_url', 'raw' ) ?>">Newsgator Online</option><option value="http://www.rojo.com/add-subscription?resource=<?php $Blog->disp( 'rdf_url', 'raw' ) ?>">Rojo</option><option value="http://www.newsburst.com/Source/?add=<?php $Blog->disp( 'rdf_url', 'raw' ) ?>">Newsburst</option><option value="http://client.pluck.com/pluckit/prompt.aspx?GCID=C12286x053&a=<?php $Blog->disp( 'rdf_url', 'raw' ) ?>">Pluck</option><option value="http://my.feedlounge.com/external/subscribe?url=<?php $Blog->disp( 'rdf_url', 'raw' ) ?>">FeedLounge</option><option value="http://www.netvibes.com/subscribe.php?url=<?php $Blog->disp( 'rdf_url', 'raw' ) ?>">Netvibes</option><option value="http://www.bloglines.com/sub/<?php $Blog->disp( 'rdf_url', 'raw' ) ?>">Bloglines</option><option value="http://www.rssfwd.com/rssfwd/preview?url=<?php $Blog->disp( 'rdf_url', 'raw' ) ?>">RssFwd</option><option value="http://www.squeet.com/addfeed.aspx?feedurl=<?php $Blog->disp( 'atom_url', 'raw' ) ?>">Squeet</option><option value="http://www.feedblitz.com/f/f.fbz?Track=<?php $Blog->disp( 'rdf_url', 'raw' ) ?>">FeedBlitz</option><option value="http://www.feedster.com/myfeedster.php?action=addrss&rssurl=<?php $Blog->disp( 'rdf_url', 'raw' ) ?>&confirm=no">Feedster</option><option value="http://www.rss2pdf.com?url=<?php $Blog->disp( 'rdf_url', 'raw' ) ?>&img=1">Rss2Pdf</option></select></form>

I think this is a lot nicer looking than to have 5-20 little chicklet buttons for each reader cluttering up your sidebar.


Form is loading...

powered by b2evolution CMS – This forum is powered by b2evolution CMS, a complete engine for your website.