Enquiry Email Form


Magento Tables That Can Be Emptied/Truncated

Magento’s DB seems to get bloated rather quickly with cached data and logs, occupying an obscene amount of space, so it often needs a good clear out. Many of those…

PHP Scripts, Tips & Tricks

PHP – Best Way To Get User IP Address

A lot of people rely on the $_SERVER[‘REMOTE_ADDR’] global variable to retrieve a user IP address, but there’s a better more reliable way of retrieving a vistor’s/user’s IP Address… Retrieve…


Magento FIX: Unknown number format type ‘boolean’. Format ” must be a valid number format string

Just to clarify, I hate Magento with a passion. I find it cumbersome and unbelievably bloated, and the filing system is a minefield. Not to mention, the community and support…

htaccess fun

htaccess – 301 Redirect Website From http to https

More and more websites are making the move from http to https, primarily because of Google’s announcement back in August 2014, where they said websites with SSL (i.e. secure connection)…

Wordpress Tips & Code Snippets

WordPress Solution- WP-Admin Shows White Blank Screen

I was working on a client’s WordPress website, which was working perfectly on my local environment. But when I uploaded it to their server, I was served a blank white…

Wordpress Tips & Code Snippets

FIX: Using WP Minify Fix With WP eStore & Corrupt PDF Download Files

I’ve been pulling my hair out for the last couple of hours trying to work out why all the PDF files being downloaded through the WP eStore Plugin were corrupt….

Wordpress Tips & Code Snippets

WordPress – Missing “Menus” Option From “Appearance” Menu

Bit of an odd one. Some times when I install WordPress the “Menus” option from the “Appearance” dropdown from inside the WordPress control panel is missing, other times it’s there…

Wordpress Tips & Code Snippets

WordPress – Get Recent Comments & Blog Post Details

Retrieving recent comments in WordPress is pretty standard/easy, you can do it by using the get_comments function. The syntax requires a foreach loop, and is used as follows: Get recent…

CSS Tips & Tricks

HTML Headings with inline-block and line break

You’re trying to achieve this: Hello Bye bye Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever…

htaccess fun

htaccess- Redirect Entire Website To New Domain While Preserving URL Structure

Here’s a piece of htaccess code which you can use to 301 redirect an old website onto a new domain, while preserving the same URL structure for every page. Obviously,…

jQuery Scripts & Helpful Snippets

Google Maps Won’t Show Centralised Inside jQuery Tabs

I was working on a client’s website earlier today, and I ran into a real head-scratcher of a problem. Basically, the page had multiple content tabs, and each tab would…

Wordpress Tips & Code Snippets

MySQL Queries Used When Moving WordPress Site To A New Domain

When we’re developing our websites, we always develop in a local testing environment, so the URL for the website will be something like http://dev.testexample.com. Once the website is ready to…

Wordpress Tips & Code Snippets

Use WordPress Environment/Functions In An External File

If you want the ability to use WordPress functions/environment features in a section of the website which is outside of the WordPress environment (/blog/wp-content/themes/theme_dir/), then you just need to add…

Wordpress Tips & Code Snippets

WordPress- Set Featured Image Link Missing

I have no idea why, but now and then the “set featured image” link is missing from the “add new post” page. I’ve also noticed that a lot of other…

PHP Scripts, Tips & Tricks

PHP- Get URLs/Links From A String

The following function puts all URLs/links from a string into an array. The function uses the preg_match function, and looks for URLs/links with http/https. Please note, the function does NOT…

Wordpress Tips & Code Snippets

WordPress- Custom Excerpt Length

Here’s a bit of code that allows you to to create a custom excerpt length, based on the amount of characters you want to display. Code Add the following code…

PHP Scripts, Tips & Tricks

PHP- Display Certain Amount Of Words From String/Variable

If you want to display a specific amount of characters from a string, you can use the PHP built-in function substr, but from what I’m aware, there isn’t a PHP…

PHP Scripts, Tips & Tricks

PHP- Show Your Latest Tweet On Your Website With PHP

In the archives, there’s a post that shows you how to show your latest tweet on your website using jQuery. While that method was OK, I found it rather temperamental….

PHP Scripts, Tips & Tricks

PHP- How To Show An Excerpt/Teaser From A String

Here’s a quick function that will limit the amount of words that will display from a string of words, so you effectively get a excerpt/teaser. For example, let’s assume you…

jQuery Scripts & Helpful Snippets

jQuery – Start jQuery After Page Has Fully Loaded

If you want your jQuery to start executing after the page is fully loaded, you can use the following code: 1 2 3 4 5 <script type="text/javascript"> $(window).load(function() { //…

jQuery Scripts & Helpful Snippets

Using jQuery Lightbox With live()

I’ve noticed a few people struggling with the following issue in a few forums, so I thought i’d write a blog post on how to overcome it. I looked through…

jQuery Scripts & Helpful Snippets

jQuery – Uploadify Returning HTTP 401 Error On Mac OS

Not sure how useful this is going to be for anyone else, but I was on the verge of throwing my computer out the window earlier today while trying to…

jQuery Scripts & Helpful Snippets

jQuery- Show On Click, Hide On Hover Out Function

Not sure how many people would be looking for a function like this, but I needed it, so I suspect someone else out there might too. The code below is…

jQuery Scripts & Helpful Snippets

jQuery – Second Click Function Examples

Here are a few ways in which you can use the “click” event to trigger an action on the first click, and then trigger another action on the second click….

MySQL Functions, Tips & Tricks

MySQL – SELECT Rows Where First Character Is Not A Letter

Here are two methods of SELECTING rows where the first character is not a letter. For example, if you have the following data: So let’s say you want to select…


Javascript – Passing Variables Into window.location

I’m quickly going to show you how to pass a variable into window.location – I’ve recently read a few discussion forums where people have been struggling with this. It’s really…

PHP Scripts, Tips & Tricks

PHP- Alternative To The Depreciated mime_content_type Function And Fileinfo Functions

You’ve probably landed on this page because you want to find the Content-type of a file by using the mime_content_type function. But when you tried using the function, you were…

jQuery Scripts & Helpful Snippets

How To Display Latest Tweet From Twitter On Your Website

The code below no longer works, since the Twitter API updated to 1.1 on the 11th June 1013. The 1.1 API requires oAuth which requires a server side component. But…


Javascript – Get The Hash Tag Value From A URL

So, you have the following URL: http://www.example.com/page/#comment-12 You want to get the value after the hash tag (#), which is comment-12 The following Javascript code will help you achieve what…

htaccess fun

htaccess- 301 Redirect Old URLs With Spaces

Here’s a quick and easy htaccess 301 redirect tip. So, you have a URL like this: http://www.example.co.uk/this is_a_file.html and you want to redirect it to: http://www.example.co.uk/this_is_a_file.html All you need to…

Page 1 of 3123

Learning & sharing

This section is dedicated to Web development notes, for both our own uses and for others to learn from. Sharing is caring.

Please feel free to contribute to our blog posts; perhaps even teach us a few tricks of your own. We'd love to hear your thoughts.