Posted by kevin
July 5, 2010

10 Comments

fotoslide wordpress plugin

Following from the work I done previously with the WPS3slider, I felt it necessary to re-look at the way the plug-in was structured. The result is a more robust and simpler plug-in that generates multiple galleries on a web page. This plugin now has the following features; Optionally provide a caption message and customise its [...]

Posted by kevin
June 21, 2010

1 Comments

Quick tip: Mounting CIFS volumes on Linux

I recently got myself a Netgear ReadyNAS duo. Amazing bit of kit, best purchase I’ve made in a while. OneI always run into is remembering how to mount a CIFS volume. Do do this, create a mount point (I choose /mnt/cifs but use whatever you want), then execute the following command; $ mount -t cifs [...]

Posted by kevin
June 19, 2010

28 Comments

WPS3Slider plugin for WordPress

This is my first contribution to the WordPress community. It is a plugin that will allow you to place s3slider galleries anywhere within your WordPress install. To render the images, the plugin uses the swiss army knife for dyamic thumbnail generators, timthumb. You can obtain the latest version of this plugin by visiting the plugin [...]

Posted by admin
May 17, 2010

5 Comments

Using multiple database connections with Yii framework

There may be occasions where you will need to set up database connections to more than one database. This guide will show you the easy way to set up these resources. In your main.php config file, you may already have a db component set up by default. //.. main.php ‘db’=>array( ‘connectionString’ => ‘mysql:host=localhost;dbname=testdrive’, ‘emulatePrepare’ => [...]

Posted by kevin
March 9, 2010

2 Comments

WordPress Skeleton Theme for Developers

If you are a frequent WP developer then you’ll know the time consuming job of setting up a completely new theme. Today I have created a basic theme that is free to use for anyone creating a new site. It features a developer options page in the Appearance Panel where you can configure such things [...]

Posted by kevin
February 17, 2010

0 Comments

SQL JOIN statements

When working with relational databases, you will often find that the data your require can reside on multiple tables. In simple terms, a join statement brings together these tables using a common identifier. Joins are the best way to query a database whilst improving transaction efficiency. An example We’ll create two tables, a users and [...]

Posted by kevin
January 5, 2010

7 Comments

Calculating the radius of a coordinate using PHP

Sometimes you’ll want to get the radius of a location. For this I have written a function that I’ll share with you. /* Copyright 2009 Kevin Bradwick (http://www.kevinbradwick.co.uk) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software [...]

Posted by kevin


1 Comments

Creating custom page layouts with WordPress

If you are using WordPress to create a website, and you want to avoid it looking like a blog, then you need to look at creating custom pages. The ‘page.php’ file displays your generic page content using this template. You could customise this page to make it look as you want and set it as [...]

Posted by kevin


3 Comments

Fixing the pagination error using custom permalink structure in WordPress

For a while this has been really annoying me. Whenever I use the permalink structure /%category%/%postname%/ I get 404 errors when using the next_posts_link() and previous_posts_link(). I a fix for this here. You can use this code in a themes functions.php file or use it as a plugin. /* Plugin Name: Fix Paging in Category [...]

Posted by kevin


0 Comments

Grant remote access to MySQL

If you’ve installed MySQL on a machine other than your work station (localhost) and you want to use the MYSQL GUI tools to administer the server then you’ll need to grant remote acccess on the root account (or another account that has useful privileges. This is how to do it. Connect via SSH and login [...]

12»