Tag: widget

Stuff that aint API or backend code

Hurray! I have been able to do some stuff that wasn’t directly related to the API or backend code for the ComLuv database! This Monday has been an awesome day for productivity.

I have fixed the errant phpmyadmin on my plesk server so I can view my massive innoDB database. (and make backups)

I added a plugin to make adding youtube videos much easier to a ComLuv blog post.

I implemented a site wide footer text links box on the network.

I added a new widget to allow Comluv blog owners to become an affiliate to sell those ads.

I edited every single themes footer to make sure it all worked hunky dorey.

I wrote a “spoonfed” tutorial to show people how to make money with their comluv blog.

I answered ALL support tickets and resolved them.

I got fiddyp back up and running!! Some DNS issues were making it a bit invisible but a quick change of my DNS A records means I’ve got a place to ramble again.

Yey for me. I feel awesome enough to take the rest of the day off :)


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


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

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 reading…)


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


Widget for hiding an affiliate site cookie on your blog

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



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