Sphinn Google Gadget

December 26, 2007 · 6 comments

Sphinn Google Gadget

A Google gadget for Sphinn.

It displays Sphinn Hot topics, whats new, and comments. This gadget grabs the feeds and then displays them four at a time, you can quickly browse through topics by using the “next” link near the bottom of the gadget. It should be really helpful for those with slower internet connections who have issues with Sphinn’s load time…

Here is the live gadget… (if you are reading this via feed the gadget is here)

If Sphinn adds any feeds, they will also be added to this gadget. Also of note, the amount of sphinns are not displayed right now, I can’t figure ut a good way to do it. If any of you out there can think of a way to do so, let me know. Also, if “sphinns” were an element of a feed, I could probably do it so if Danny, Barry, EvilGreen, etc. know of a way to make that happen, please let me know. I will be making a version of this that is custom fit for blog sidebars.

To add this to your iGoogle page go here or click the “+ Google” button beneath the gadget.

And for those of you who didn’t know there is also the Sphinn Facebook gadget.

Hmmm maybe a Netvibes version too? like my Expedia one?

{ 6 comments… read them below or add one }

Jeff Quipp December 27, 2007 at 12:08 pm

Nice gadget Patrick! Great idea.

Seo Design Solutions December 27, 2007 at 5:10 pm

This one is guaranteed to go red hot!!! Great gadget for the premier SEO News Source.

pat December 27, 2007 at 6:41 pm

Thanks guys, if anyone can take a look at the sphinn feeds and the way they are parsed in this gadget I would really appreciate suggestions on how to display the amount of sphinns each story has.

Zachary Fox December 28, 2007 at 5:15 pm

I’ve got a version that I started based on one of Google’s examples. It uses a regular expression to pull out the number of sphinns and to split the description from the feed. I’m not sure how the code will look, but here are the lines that do that. It’s rough, but it should give you an idea of how to do it.

Assuming that the full text of the description is in a variable named description:

var re = /(\d{1,2}) Vote\(s\)/;
var sphinns = re.exec(description)[1];
var description = description.split(re)[0];

sphinns will hold the number of votes, description will hold the html up to the number of votes. I may not check back here, so email me if you have any questions or if you would like my whole gadget. I’ll email it to you if you’re interested. It’s not as complete as yours, but it does display hot and upcoming stories.

Glen Allsopp December 28, 2007 at 11:20 pm

Great gadget, I’m sure the guys over at sphinn will be thankful for this one ;)

SEOish: Pat December 29, 2007 at 12:39 am

wow, thanks zachary, i will be in touch

whats up Glen? nice to see yo here

Leave a Comment

Previous post:

Next post: