background headerFollow me on TwitterTom Elliott Blog RRS FeedWeb Dev Door Home

02 March 2012

iPhone issue with displaying a large background image

Large backgrounds in the BODY or DIV element will not display on an iPhone (Safari) because of the dimensions of the image which cannot exceed 5.2 mega-pixels.

Large background image not displaying on iPhone »

14 February 2012

PHP function: calculate x seconds, minutes or hours ago

A useful Twitter style PHP time interval function to calculate the difference in seconds, minutes, hours or days between two different dates and times. The function can be used to display seconds, minutes or hours only, or display the most relevant time measurement unit automatically.

PHP time interval function »

09 February 2012

JavaScript Function to Check\Uncheck all Checkboxes

A cross browser compatible JavaScript function to select or de-select all checkboxes in a form. The check all function finds all checkboxes in a designated form, regardless of the checkbox name .

Check all checkboxes in JavaScript »

02 February 2012

PHP get first paragraph from a string function

A useful PHP function that gets the first paragraph from a regular HTML string, with option to remove the paragraph tags.

Get first paragraph function in PHP »

28 January 2012

Spry XML Dataset: Selecting a Single Row

Some useful Spry code that allows a single, unique row or record to be selected from an XML dataset. The process involves first passing a unique row ID to a detail page and then filtering a single row from the XML using the unique ID.

Find specific row in Spry XML Dataset »

25 January 2012

Spry Dataset: Limit Rows, Characters & External Feeds

A few simple Spry snippets to limit the number of rows displayed from a Spry XML Dataset, limit the characters displayed in a Spry field and how to get around the security issues preventing xml external feeds to be used.

Limit rows & characters & using external feeds with a Spry dataset »

22 January 2012

Custom WordPress Meta Titles – Homepage, Pages, Posts

Getting into the nuts and bolts of Wordpress PHP in order to customise Meta Titles for the various page types including category meta title, homepage meta title, and post meta title.

Wordpress meta titles on Home, pages, posts and categories »

14 January 2012

Variation in Google Rankings on Different Machines

Looking at why variation in search engine results can be consistently different from one machine to another. Usually down to personalisation, locational search or results from different Google data centres.

Different rankings on different computers »

07 January 2012

Reset PHP Recordset for Multiple Repeat Regions

How to re-use a PHP recordset by resetting the recordset pointer. This allows multiple repeat regions from the same recordset to be used.

Reusing a PHP recordset »

03 January 2012

Chrome to overtake Internet Explorer market share in June 2012

According to worldwide statistics, Chrome is gaining month on month market share over Internet Explorer. I make a prediction that Chrome will overtake Internet Explorer by June 2012.

When will Chrome overtake IE? »