Tag: sidebar

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..
[php]if(function_exists(stumbled_as_plugin)) {
stumbled_as_plugin(“glytch”,10,”text”,”

    “,”

“,33);
}
[/php]
will show this…
<?php if(function_exists(stumbled_as_plugin)) {
stumbled_as_plugin(“glytch”,10,”text”,”

    “,”

“,33);
}?>

Or as images with no numbering..
[php]if(function_exists(stumbled_as_plugin)) {
stumbled_as_plugin(“glytch”,10,”pic”,”",”",33);
}
[/php]

will show this…

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

Download Stumbled Widget & Plugin For WordPress


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]
?php if (function_exists(hellostumbler)) { hellostumbler();}?>
[/php]
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



  • 279
    Unique
    Today
    Powered By Google Analytics
  • Copyright © 1996-2010 FiddyP. All rights reserved.
    iDream theme by Templates Next | Powered by WordPress