kieranbarnes Independent PHP, WordPress & CubeCart Programmer

Using custom CSS in cForms

Posted on July 14, 2011

Posted by kieran

Pretty much every WordPress installation I've done in the last few years has got cForms installed. Its one of the must have plugins.

Many people are unaware of the custom CSS options available in cForms. Ever edited a default style and lost it during an upgrade? Annoying isn't it?

Here's how you make a custom, upgrade proof CSS skin for your cForms.

SSL/HTTPS for Shopp pages or checkout process only

Posted on June 25, 2011

Posted by kieran

Shopp currently doesn't redirect you to any SSL/HTTPS pages during any part of the checkout process. Technically, if you are using a 3rd party payment provider, it doesn't need to, but I'd like customers name/address data to be encrypted and secure.

So we need to force SSL on specific pages.

mod_geoip Revisted including stopping spam in phpBB 2

Posted on February 15, 2010

Posted by Kieran

I've recently moved a client's forum onto a new cPanel server, previously it was on a home-brew Ubuntu server.
So I had to install mod_geoip onto cPanel in CentOS. It wasn't as bad as I was expecting.

First off, we need to download the GeoIP libraries.

Single Line WordPress Install

Posted on July 20, 2008

Posted by Kieran

I'm getting a pro at installing WordPress now.I'm trying to cut down my install time to a minimum.

WP-O-Matic Bug Fixes Round Up

Posted on July 16, 2008

Posted by Kieran

I've run into quite a few issues in the latest 1.0RC3-7 release of WP-O-Matic. Here's a round up of the bug fixes and addons you need to actually this potentially useful product useful!
Also, it includes a well known MySQL bug fix.

KB_CAPTCHA – CAPTCHA Image Generation in PHP

Posted on July 21, 2007

Posted by Kieran

Introduction

KB_Captcha is a simple PHP script to generate reasonably safe CAPTCHA image to secure any public facing web application.

KB_Captcha offers the user a whole selection of options;

  • Choice of base image.
  • Choice of font (TTF).
  • Optional sound generation for accessibility. (Linux only)

Protoculous – Prototype and script.aculo.us

Posted on July 20, 2007

Posted by Kieran

An unknown Frenchman did a great job at combining and compressing Prototype & script.aculo.us into one ultra-small single Javascript file.

At the time of writing he is on version 1.0.2 which includes Prototype 1.5.1 and Scriptaculous 1.7.1 beta 3
The Protoculous file size is 54.6KB

Nicer Pagination with ADOdb

Posted on July 7, 2007

Posted by Kieran

Or should that be Nicr? To follow in an annoying theme.

Olavo Alexandrino wrote a nice well rounded class for record set pagination in ADOdb. If you've ever used ADOdb's version, you will know it is not very good, to say the least.

Although Olavo did a fantastic job on the logic, the presentation left a little to be desired from my perspective.
I am providing my modifed version for download below, it provides a few logic updates and better presentation.