Hello Stumbler - Wordpress plugin for Stumbleupon visitors

Here's a little plugin I made for Stumbleupon visitors, I got the idea while playing with the Digg This plugin.

Hello Stumbler plugin will display a note at the top of your post (or wherever you put the call) when it detects that the person viewing the page came through the Stumbleupon button and ask them to give you a thumbs up.

Simply download the plugin, upload it to your plugins directory and activate it. Once you have done that, go to your single post template page and add the following command under the entry-content line (click image to see example).

PHP:
  1. ?php if (function_exists(hellostumbler)) { hellostumbler();}?>

Hello stumbler example
It's as simple as that! I have tried it by showing the link if this blog is the referring page and it works, hopefully it will do the same when the post is stumbled upon with the toolbar button (it'll take me ages to stumble and stumble until this post shows to truly test it, but it should work!).

If you came here via a stumble button press, please let me know if you can see the "thanks for stumble-ing" message at the top of the post. thanks!

Download the plugin here Hello Stumbler

[edit]To see a tutorial on how I made this plugin, see here: wordpress plugin sourcecode tutorial

Popularity: 6% [?]

18 Comments

  1. Rob La Gesse (1 comments.)
    Posted September 6, 2007 at 5:53 pm | Permalink

    This is pretty cool - one suggestion though - wrap this in an “if(function_exists” - just in case the user disables the plugin. It’ll keep you from throwing an error:

    Rob

  2. Posted September 6, 2007 at 5:58 pm | Permalink

    haha! thanks Rob!
    I’ll go put that in the ’structions now

  3. Sharon (86 comments.)
    Posted September 7, 2007 at 5:05 am | Permalink

    Ah, I love it!!!!! I also love the traffic from Stumble Upon. You just can’t have too many visitors :)

    Did I already say that this is one of my favourite websites?

    :)

  4. Posted September 7, 2007 at 10:41 am | Permalink

    thanks Sharon!
    oo a favourite already :-)

  5. Dana Wallert (1 comments.)
    Posted September 11, 2007 at 7:33 pm | Permalink

    Installing this right away! I’ve stumbled across several sites that are using it and had to find out how they did it. Great plugin idea!

  6. Posted September 11, 2007 at 7:36 pm | Permalink

    I’m going to update it soon so it does a nifty slide down before displaying the message.

    I’ll post here when it’s done!

  7. Jobs In Israel (2 comments.)
    Posted September 24, 2007 at 8:12 am | Permalink

    Nice idea. I know of at least one other plugin that does something similar, I think it’s called Landing Sites or something like that.

    Jacob

    Jobs In Israel’s last blog post..How I Enjoyed Unemployment

  8. Jenny (7 comments.)
    Posted October 17, 2007 at 5:26 pm | Permalink

    Oh nifty. I have to have this one!!

    Jenny’s last blog post..I’m Getting Old

  9. Posted October 17, 2007 at 8:12 pm | Permalink
    great! I’d love to stumble on a site that uses it!
  10. Vikram (1 comments.)
    Posted October 31, 2007 at 4:52 am | Permalink

    Thank you so much for this thoughtful plugin Andy!
    Have you thought of any idea where, if anyone comes from a network like digg or readit to view your full post, we can convey a similar message?

    Would help in get Dugg a lot. a combination in which the plugin detects the origin of the visitor and we greet him accordingly!

    When I came here I saw the Google Searcher Welcome Msg. If we have one for eacj social network, the chances of conversion will increase many fold.

    I am thinking of constructing one on these lines! Will keep you posted as i would need some assistance.

    Cheers!!!

    Vikram’s last blog post..A Detailed Page Rank Update Report for Top 25 Blogs about blogging: Past, Predicted and Present.

  11. Posted October 31, 2007 at 10:33 am | Permalink
    @ Vikram: I made it so I could have some fodder for a tutorial, it is only a simple check on the referring page. Feel free to add more options for all the social sites and let me know if you want any assistance…
  12. Diana13 (9 comments.)
    Posted November 7, 2007 at 11:29 am | Permalink

    You should make a post called: “What kind of plugin do you want?” :) I saw this in a blog. I want a plugin that displays how many thumbs up and how many thumbs down has my post. And people who read my post to be able to vote from within article. Like in seomoz.org/blog, you can see this after every single post. But I think it could be a little easier than there: people to be able to vote for the post without registering or loging in. Like thumbs up and down from ff toolbar, but with a count of votes. I don’t know if I make myself clear. And I write this here, because this is a post related to stumbleupon.

    Diana13’s last blog post..Strange things happens

  13. Posted November 7, 2007 at 12:07 pm | Permalink
    thanks for the suggestion Diana, I know what you mean about the thumbs up plugin. In fact, it looks like it will continue on nicely to my AJAX tutorial series which will take users from an introduction to a simple onclick event to a voting button and finally it would be nice to make it do the thumbs up thing you are mentioning. (without registration of course!)

    I think I’ll make a ‘request a plugin’ post when the new theme becomes live. thanks for your feedback

  14. LGR (2 comments.)
    Posted December 19, 2007 at 6:13 am | Permalink

    Great idea! I have a script that did pretty much the same thing for websites that were not built on WordPress. It was slightly different though. It checked to see if the person was referred from StumbleUpon, and it did not matter if they came from the refer.php or not. So if people clicked through the review page they also would get the message. Thanks for the plugin. Works great.

    LGR’s last blog post..Trackback test

  15. Posted December 19, 2007 at 10:41 am | Permalink
    LGR: I suppose I should update it so it works just like it does here, I’ve been meaning to add some javascript slides to it for ages! thanks for visiting. :)
  16. Seth
    Posted February 6, 2008 at 5:32 am | Permalink

    Hey there - any tips on how I add the [Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon] all in a row to my wordpress blog for any one post? I’m hoping for a single plugin.

  17. Hani Mourra (1 comments.)
    Posted July 27, 2008 at 1:49 am | Permalink

    Hi Seth,

    There is a wordpress plugin that can detect if the link came from [Digg] and/or [Stumbleupon]. Here is the link: http://wordpress.org/extend/plugins/increase-sociability/

    Hani Mourras last blog post..Unlimited Gmail Addresses

  18. Jeremy (1 comments.)
    Posted August 1, 2008 at 12:53 pm | Permalink

    This looks like a great plugin. I just added some text to the top of my post earlier today to ask people to thumbs up the site if they like it, but this obviously a much more clever approach to the situation. Oh and don’t worry I gave you a thumbs up for the article :)

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*