Right, I’m back after my christmas break & since I had a barrage of emails asking how to make it, I thought I’d show you how to make the layout shown in the screenshot for my new plugin the_attached_image(). Remember it’s a WordPress theme so you don’t need a huge amount of PHP knowledge, but a little would be helpful. […]Read more
A little while ago I posted about storing more than one piece of information in a MySQL table field. This can help with storing arrays of data that do not need to be included in a relationship. Anyway the trick here is to first place the information you want to store in your MySQL table into an array, so let’s […]Read more
Something that most people starting out learning PHP ask is how do you store information temporary? Well the answer to the that is by using PHP sessions. So here is a quick overview of how to use sessions in PHP. Sessions are, in a nutshell, a way of temporary storing information in the browser’s memory while a user is browsing […]Read more
Today we are going to look at how to select a row from a MySQL database as randomly as possible, but not repeating it. Basically it’s a poll, but one of the features the poll has is that it will change randomly every day. I have found lots, and lots of people asking how to do daily polls or pictures […]Read more
Today we are going to take a look at one of the most efficient ways to store IP addresses in a MySQL database. You may think that you would store an IP address as a VARCHAR(15) field and you could, but this is not the most efficient way to store IPs. Instead you could use an INT. Please remember though […]Read more
I have recently started using Codeigniter, and found it to be an incredibly powerful framework. Some people argue that lazy people use frameworks, but personally I think it stops you from having to re-invent the wheel everytime you start a new project. Getting Codeigniter The only place I advise you get Codeigniter from is the official Codeigniter website. Also while […]Read more
Today I’m going to show you how to write your own shortcode plugin for WordPress. The shortcode system can be extremely powerful & for developers they are great for allowing clients to insert complicated pieces of HTML into posts without worrying about it being overly complicated. Now as usual you need to start your plugin with the following:
Plugin Name: Plugin Name
Plugin URI: Plugin URL, can be your website URL.
Description: Type what the plugin is used for here.
Author: Your name
Version: Version number, like 1.0
Author URI: Your Website's address
You […]Read more