Mikedowney.co.uk
What's New
Site Map

Diary
Astronomy
Bits N Bobs
Computing
Food And Drink
Links
Photography
Welcome


Recipe Collections
Recipe A Week 2013
Recipe A Week 2010
A-Z of Regional Cakes
Alphabet of Nations


Selected Entries
Pinhole Photography
Keeping Quail
Coventry
Recipes
A different recipe each week
Friends websites
Oven Temperatures and Measuring Cups


Most popular stories
A Hamster's Home is his C...
Hamster Peanuts
Simple HDR photography wi...
A Tangfastic Mess
Halloween Animal Beds
Decaffeinated Coffee
Garden Fountain
Pizza, Hamsters and Ballo...
Hamster Baby Update
More Squirrel Photos
Not Quite HDR photography


RSS Feeds:
RSS Feed Entire Site.
RSS Feed Diary only.



Powered by Blosxom


Pinhole Photography Ring
pinhole webring logo
powered by RingSurf
Next | Previous
Random Site | List Sites

Plugin for a 'Like' button

Story location: Home / computing / blosxom /
08/Oct/2014

I wrote this plugin over 4 years ago, to add a 'Like' button similar to Facebook. It is a standard Blosxom plugin which uses a bit of JavaScript to modify the page when the button is clicked.

I hadn't realised that I never uploaded it here. I have updated it to use JQuery, which replaces some if statements and browser specific code with a single line (JQuery takes care of all the browser specific stuff).

To use the plugin, copy it into the plugins folder as usual. It needs

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

adding to the head section of the webpage, like all the other JQuery based plugins here. Add the line:

$like::likeform

where you want the button to appear.

A list of most-liked stories can be generated and is available in

$like::mostliked

The plugin is available to download here.