Posts Tagged ‘PHP’
AdSense Injection WordPress plugin tweaks
On this blog I use the AdSense Injection plugin (update: this plugin no longer seems to be available) to automatically add Google's targeted AdSense adverts to my posts. The plugin is excellent and has helped to make more money for this site but there are a few tweaks that I have done. First, I've made a modification so that if a individual [...]
Adding ‘Related Posts’ to WordPress articles and 404 error pages
Many blogs have a list of related articles after each of their posts. I wanted something similar for my WordPress blog but found it wasn't as easy to do as I thought it would be. At the same time I was interested in capturing any access attempts to non-existent pages (causing a 404 error), and showing a list of suggested links. This is [...]
Using a common form mail script for multiple websites
I run a number of different websites. Most of them have a contact page which is powered by a form mail script. Until recently each of these websites used an almost identical copy of the same form mail script - I use PHPFormMail but you could adapt this solution for other form mail scripts. Each contact us page has very similar HTML in it. I wanted [...]
Hidden field spam trap for PHPFormMail
If you have a form mail script on your website you may find that you reguarly recieve automated spam to your email account. Even worse it is possible that spammers may use your form mail script to send spam to other people. One well known method of significantly reducing (or even stopping) spam without having any impact on your website visitor [...]
Improved KML embedding of Google Maps into web pages
I've been further improving the code that I described in my previous in my previous post - 'Adding KML Google Maps overlays to WordPress posts'. I've made these changes: Option to specify a latitude / longitude / zoom for the map. This allows you to have one map and then show lots of different views of it The code is now implemented as [...]
Adding KML Google Maps overlays to WordPress posts
Embedding basic KML Maps into your blog post There is an easy way to include Google Maps KML overlays in your WordPress blog if you are willing to have all the size and style information hardcoded into each post. All you have to do is to go to http://maps.google.co.uk/ type the KML location into the search box and then click on 'Link to this [...]









