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.
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 *
PHP Function: format_filesize()
This function allows you to make user readable filesizes easily.
Example: ‘1024′ into ‘1Kb’.
PHP Function: duration()
This function will turn a unix timestamp into a user readable time.
Example: 115023234 into 1 day, 25 minutes ago.
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.
jQuery Javascript Framework
Recently 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.
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/.
PHP Function: config_load()
A very basic configuration file (ini style) parser for PHP 4 & 5.
It is all easily saved to a variable.
Advanced Navigation using Includes
A 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.
