Javascript Function: array_search()

Was writing some javascript for a friend and developed these simple functions for searching javascript arrays.
Becomes pretty useful when your working with select html boxes and arrays in javascript.


Read the rest of this entry »

Simple Swear/Badword Filtering tutorial

In this tutorial you’ll learn how to censor the swear words and profanity on your website.

You could even use this tutorial to prevent people making posts about your competitors.

* Contains strong language *


Read the rest of this entry »

PHP Function: format_filesize()

This function allows you to make user readable filesizes easily.
Example: ‘1024′ into ‘1Kb’.


Read the rest of this entry »

PHP Function: duration()

This function will turn a unix timestamp into a user readable time.
Example: 115023234 into 1 day, 25 minutes ago.


Read the rest of this entry »

File-icon plugin hack, sorted list.

Today, i installed the Wordpress File Icons Plugin (v2.0) by  Roland Rust and discovered something really annoying whilst so great at the same time.

I think the file icon plugin is a great idea, but contains 2 problems.


Read the rest of this entry »

jQuery Javascript Framework

jQuery iconRecently I tried to take my knowledge of Javascript to a new level, because, on the whole, it was pretty dire.

Whilst looking into new techniques and reading tutorials I came across some useful Javascript frameworks, specifically, jQuery, which caught my attention immediately.


Read the rest of this entry »

Advanced Navigation II using Clean Urls

This tutorial will teach you how to implement clean SEO friendly web URLs.
Example: Turning /index.php?page=register into http://www.domain.com/register/.


Read the rest of this entry »

PHP Function: config_load()

A very basic configuration file (ini style) parser for PHP 4 & 5.
It is all easily saved to a variable.


Read the rest of this entry »

Advanced Navigation using Includes

PHP Navigation tutorialA very simple way of doing the index.php?page=page_here. Includes a few configuration options.

Written in php4, works in php5, mostly so you can view the source and attempt at understanding how it works.


Read the rest of this entry »