Loving widgets, part II

Add comments

Well, the widget I created to add the EVE Blog Pack to your blogs has it’s issues, as it does not put the title of the blog with the recent posts in it.  There is also an issue with how your site’s RSS feed will show up in some RSS feed readers.   I am still working to come up with something that will do the job.

In the meantime, I have removed that widget from my site and replaces it with something else.

If you look at the sidebar of my site, you will see a nice little thing that says “Read the EVE Blog Pack”.  It looks like a simple blogroll, but it’s not.  It’s a javascript widget that pulls it’s information from the Google Reader Clip that CK setup.

To use this widget, you will need to add a text widget to your sidebar and place the following javascript code into the text field:

<div id=’blog_roll_EBP’>

<script type=’text/javascript’>
function EBP(data) {
var container = document.getElementById(’blog_roll_EBP’);
var list = document.createElement(’div’);
for (var i=0; i < data.items.length; i++) {
var item = data.items[i];
if (item.alternate){
var link = document.createElement(’a');
link.appendChild(document.createTextNode(item.title));
link.href = item.alternate.href;
link.target = ‘_blank’;
list.appendChild(link);
list.appendChild(document.createElement(’br’));
}
}
container.appendChild(list);
}
</script>

<script src=’http://www.google.com/reader/public/javascript-sub/user/13508179136225455934/label/EVE%20Blog%20Pack?callback=EBP’ type=’text/javascript’></script>
</div>

That’s it.  It will create the EVE Blog Pack blogroll on your site and if CK makes any changes to the membership of the EVE Blog Pack, they will automatically be up to date on your site.

Share and Enjoy:
  • Digg
  • Google Bookmarks
  • del.icio.us
  • Facebook
  • Slashdot
  • Technorati
  • E-mail this story to a friend!
  • Reddit
  • Twitter