Stumbled - Stumbleupon Widget for Wordpress 2.2

Posted by Andy Bailey at 2 November, 2007, 7:28 pm

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..

PHP:
  1. if(function_exists(stumbled_as_plugin)) {
  2. stumbled_as_plugin("glytch",10,"text","<ol>","</ol>",33);
  3. }

will show this...

Or as images with no numbering..

PHP:
  1. if(function_exists(stumbled_as_plugin)) {
  2. stumbled_as_plugin("glytch",10,"pic","","",33);
  3. }

will show this...

[?]

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

Download Stumbled Widget & Plugin For Wordpress






Popularity: 10% [?]

Category : Code | Wordpress

Related Posts

  • Stumbleupon widget for wordpress
  • Change your Wordpress permalink structure without screwing up your original links
  • About
  • Hello Stumbler - Wordpress plugin for Stumbleupon visitors
  • FiddyP Blog Contest! Win a set of Noise Isolating Headphones worth 69.99 GBP
  • Get down boy! Dogg gets neutered and FiddyP hits 500!
  • How to make a Wordpress plugin with less than 20 lines of code

  • Comments

    RobMalon (1 comments.) September 8, 2007

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

    Andy Bailey September 8, 2007

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

    mcangeli (3 comments.) October 29, 2007

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

    mcangeli’s last blog post..Scary Costumes

    Andy Bailey October 29, 2007
    @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. :-)
    mcangeli (3 comments.) November 2, 2007

    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

    Andy Bailey November 2, 2007
    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??

    Karthik (2 comments.) November 3, 2007

    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?

    Andy Bailey November 3, 2007
    thanks for coming by Karthik, great site you have there
    Karthik (2 comments.) November 3, 2007

    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?

    mcangeli (3 comments.) November 5, 2007

    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

    pelf (26 comments.) November 5, 2007

    Dang.
    This is brilliant! :)
    pelf’s last blog post..
    What have I been doing (and some link loves)?

    BONTB (2 comments.) November 7, 2007

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

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

    Jenny (7 comments.) November 17, 2007

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

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

    Andy Bailey November 18, 2007
    I’m glad I rewrote it now and glad that you like it!
    Matt Ellsworth (3 comments.) November 28, 2007

    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

    BillinDetroit (2 comments.) March 14, 2008

    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

    Jenny (7 comments.) March 17, 2008

    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

    Andy Bailey March 17, 2008
    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..
    Jenny (7 comments.) March 17, 2008

    I just took out the divs and the breaks. :)
    Jenny’s last blog post..Mommies of the ‘Net Unite!

    Andy Bailey March 17, 2008
    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

    starr (1 comments.) March 21, 2008

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

    starr’s last blog post..Snubbed!

    Shawn (1 comments.) May 6, 2008

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

    Andy Bailey May 6, 2008
    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..
    sid (1 comments.) May 12, 2008

    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!

    Leave a comment

    13 online now
    the most online was 176
    elottery magnetic Sponsoring
    Sponsors
    available ad space available ad space available ad space available ad space available ad space available ad space