Stumbled – Stumbleupon Widget for WordPress 2.2

Here is a widget and plugin combined for Stumbleupon and WordPress. I rewrote it from scratch to be a little better, thanks to the suggestion of mcangeli in the comments!

This will display a list of titled links to up to 10 of your last pages that you gave a thumbs up to with Stumbleupon, it can also show as icons for web page, image, flash file, quicktime. Use it as a widget or as a plugin.

Upload it and activate it to see a widget called ‘Stumbled’ in your tray, drag it to where you want it to be displayed on your blog and click the options square to add your Stumbleupon username, how many of your last thumbs up sites you want to display, choose to display as Text links or Icons. If you chose to display as text then you can put in the maximum amount of characters to show.

You can also use it as a plugin if you don’t like widgets, see below for code examples..

here’s what it looks like in the sidebar as icons..

Stumbled Widget

here it is as text..
Stumbled widget as text

and the options….
Stumbled Options page

Just download the zip file below and extract the folder, upload the whole folder to your plugins directory and activate it in WordPress, then, visit the widgets section under Presentation and drag it to the sidebar, click the square to change the options and that will be it!

For non-widget-ers, you can use it as a plugin by using this syntax..

stumbled_as_plugin(username,quantity to show,text or pic,html before list, html after list,max length of characters);

ie. for showing text links with a numbered order..

if(function_exists(stumbled_as_plugin)) {
stumbled_as_plugin("glytch",10,"text","<ol>","</ol>",33);
}

will show this…
<?php if(function_exists(stumbled_as_plugin)) {
stumbled_as_plugin(“glytch”,10,”text”,”

    “,”

“,33);
}?>

Or as images with no numbering..

if(function_exists(stumbled_as_plugin)) {
stumbled_as_plugin("glytch",10,"pic","","",33);
}

will show this…

If you have any problems with it, please let me know!.

Download Stumbled Widget & Plugin For WordPress

About Andy

This is my personal website where I (occasionally) post about things going on in the world of me. I am the creator of CommentLuv and administrator of comluv.com
Code, Wordpress , , , , , , ,

0 responses to Stumbled – Stumbleupon Widget for WordPress 2.2


  1. Great script. I’ll be holding on to this for when i start using stumbleupon a bit more :)

  2. I look forward to seeing it on your fine blog Rob!
    great article you did recently about affiliate links!

  3. Pingback: Win Noise Isolating Headphones from "FiddyP"

  4. Pingback: Win a set of Noise Isolating Headphones worth 69.99 GBP

  5. Pingback: Win a set of Noise Isolating Headphones | ProBlogContester

  6. Is there a way to use this with out using it as a widget??

    mcangeli’s last blog post..Scary Costumes

  7. @mcangeli: I’ve rewritten it so it can now be used as a plugin, thanks for your suggestion! it was the kick up the butt I needed to update this plugin. :-)

  8. Downloaded and installed the new version, however, it doesn’t seem to work correctly as a plugin…. (check my site, its in the sidebar below mybloglog)

    It looks like the version online in the zip file was last edited 9/6/2007. Has the zip file been updated??

    mcangeli’s last blog post..
    Halloween Photos Online

  9. are you sure you have all the parameters set correctly? the text will go in ” quotes and numbers without.
    also, it wont show if you have put a wrong username.

    the zip file has a date of 02 nov on my site, maybe you got a cached version??

  10. Thanks a lot for the 2 links and stumbling my post Andy, much appreciated! Glad you liked my post!

    Karthik’s last blog post..
    Who can’t use a couple of tutorials?

  11. thanks for coming by Karthik, great site you have there

  12. You’re most welcome Andy – and you have a very good blog here too – count me in as a steady reader :)

    Karthik’s last blog post..
    Who can’t use a couple of tutorials?

  13. Yea, It appears I had the old version on my server still (even though I downloaded the new one…). Its up and running now and it works great!!

    mcangeli’s last blog post..
    Halloween Photos Online

  14. Dang.
    This is brilliant! :)

    pelf’s last blog post..
    What have I been doing (and some link loves)?

  15. Nicely done, me so like it. You have been stumbled!

    BONTB’s last blog post..Top 10 Websites New Bloggers Should Know About

  16. that is so hawt. i am SO using this in my next theme.

    Jenny’s last blog post..Nov. GWP Results

  17. I’m glad I rewrote it now and glad that you like it!

  18. Pingback: WordPress Plugins Database » Plugin Details » Stumbled

  19. Sweet – I had been looking for something like this – since the other one I saw didn’t work.

    Matt Ellsworth’s last blog post..Google?s Stock Still Creates Uncertainty

  20. Pingback: » FiddyP Blog Contest! Win a set of Noise Isolating Headphones worth 69.99 GBP > FiddyP

  21. I’m a dedicated Stumbler and want to thank you for all your hard work on this and especially the Comment Luv plugin. Good ideas both and what look to be good execution. I STRONGLY agree that ‘dofollow’ is the way to go with comments and blogs that use nofollow don’t get much ‘repeat business’ from me. Sometimes, depending on how much caffeine I have available vs how long I’ve been awake, I can get a bit testy about this.

    Before I go off the deep end about this again … thanks. It’s time for me to shut up. ;-)

    BillinDetroit’s last blog post..The Role Of Race In The United States Mortgage Mess

  22. I just installed it. I had to modify the html in the plugin file for my theme but it works awesomely. You can see it here: http://thesocalledme.net/about

    Jenny’s last blog post..The Mommy Blog Carnival Ed. #3

  23. jenny: that looks really good, sorry you had to go in the guts of it to make it work how you want. if you tell me what you did, I’ll put that in the plugin and leave you some credit in the source..

  24. I just took out the divs and the breaks. :)

    Jenny’s last blog post..Mommies of the ‘Net Unite!

  25. haha, ok. I made this one early in my plugin career so it’s a little clunky. I think it needs a rewrite anyway. I’ll get on it as soon as I get time (hah! time, theres a thing I don’t seem to have!)

    thanks for your feedback and comments

  26. Wow, thanks! Much easier to use than the one Stumble put out. Thanks so much!

    starr’s last blog post..Snubbed!

  27. Just curious why the number of recent stumbles is capped at 10? Can the code be edited to work around this?

  28. Shawn: 10 is the number shown on the feed for stumbleupon favorites, it would be possible to get more returned by adding extra code to read the next page but it would take longer and I think 10 is enough to show for most needs..

  29. sid

    hey,

    thanks for creating the plugin. i use it as a widget, been looking a lot in wordpress plugins and widget database. i suggest adding it there, there’s not too many usable. at least i couldnt find them.

    just one question: how often does it refresh the list? how can I alter this (not knowing anything about php, a little about html)

    best,

    Sid.

    sids last blog post..nieuwe “Adam” stills!

  30. Pingback: Facebook Social Ads - The New Adwords | 7DOLLARBOOKS.COM | Home of the $7 eBook

  31. Yeah, dude not working for me.