Stumbled - Stumbleupon Widget for Wordpress 2.2

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

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

blogrush, 7 reasons why I don’t like it.

Posted by Andy Bailey at 16 September, 2007, 1:47 pm
17

no blogrush here!There's a few bloggers commenting on a new widget called Blogrush, it's a service that is supposed to increase your traffic by sharing links to relevant stories on other Blogrush users blogs and your posts being displayed on theirs and so on.

It's a great idea and I expect it will work for a while with all the buzz happening but, here are 7 reasons why I wont be using it...

  1. The rich get richer...
  2. continue

    Popularity: 4% [?]

Category : Blog Tools | Social Networking

Hello Stumbler - Wordpress plugin for Stumbleupon visitors

Posted by Andy Bailey at 6 September, 2007, 3:49 pm
24

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% [?]

Category : Code | Wordpress

Widget for hiding an affiliate site cookie on your blog

Posted by Andy Bailey at 29 August, 2007, 9:24 pm
16

I made another widget! I had a hard few hours trying to figure out why my last widget wasn't saving it's options, I had to go through every single bit of code to figure it out and it turns out that I had missed an equals sign! just a piddly little character can throw a spanner in the works!

Now I know whats up, I can churn out widgets left, right and center!

Here's my latest one...

It's called GetCookie, it's a widget that can't be seen.
Just input your affiliate site URL into the options and save. The widget will add a hidden layer to the html and load the affiliate site in the background without the user knowing.

What's the point? hehe, the point being ;

If someone visits this blog, they will receive the cookie my affiliate site sends when a user surfs there via my affiliate link. They can then go off and carry on surfing, if they come across the site without an affiliate link (ie. if they search Google for the product and click through direct to the company url from the results shown) then the affiliate site will think that they came through my link because of the cookie they got when they visited my blog.

The widget obfuscates the code so someone looking at the source wont be able to see the call to the affiliate page. (the previous post about decoding bin2hex gives a hint at the obfuscation code)

Here's the options on the widget:

Get Cookie options

I only wrote it for myself so I didn't have to manually put the code into the template code. You can download it here:

GetCookie Widget

Download and extract file, upload getcookie.php into your plugins directory and activate it. You can then see "get cookie" in your widgets tray, drag it to your sidebar and click the options icon to add your affiliate url (as above) and you should be good to go.

I've tested it with a few different affiliate links in Firefox and it worked. If you have any problems with it, let me know. Note: if your affiliate site has a break frames function on it's page then this widget wont behave.

If your affiliate company finds out you're using a method like this then you'll probably be banned!!

Popularity: 3% [?]

Category : Wordpress
4 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