Archive for the ‘Quick Tips’ category

Recently I’ve been trying out the HTML5 Boilerplate to get some of this new fangled HTML into my projects. One thing I particularly like about the boilerplate, is the feature that allows you to not just implement HTML5, but also provide a fallback for the not so fortunate browsers.

In my latest WordPress project, the client wanted a user with the capabilities of a Contributor but they also wanted them to be able to upload files. This is where the problem arose, a Contributor can’t upload files! I could upgrade them to an Author, which would allow them to upload files but in turn [...]

Related post(s)

  • No Related Post

Tags

Right here’s the scenario. On one of your clients post page’s you use the_excerpt function to display an excerpt for each post. You’ve got room for a decent size excerpt and explain to them they can put about a paragraph into each excerpt, 100 words or so…

Related post(s)

  • No Related Post

Tags

traversing

To be more precise, we’re going to look at some of the functions used in the ‘Finding’ section of jQuery’s Traversing methods. The best way to explain this, is of course, with an example. So lets start with the problem that led me to use Traversing, oh and thanks to @tweaked for prompting me to [...]

In this quicktip I’ll show you how to create clever ‘pretty URL’s’ using your servers htaccess file. Why are they clever? The easiest way to explain this is in an example : So say we enter www.example.com/pretty-url/ into our browsers address bar, this will then call the file www.example.com/pretty-url.php (or whatever file extension you like) [...]

Right lets get straight to it as this is only a quick tip, do note though that we’re only scratching the very surface of PHP classes.
We’ll be creating two files, our main page index.php and our class file class.helloworld.php. The only thing we’ll need on our index.php is the code below and the calling of [...]

In this quick tip, I’ll show you how to display custom messages to your visitors depending on where they click from onto your website. I saw this technique and at first thought, how is this being done?! But I’d forgot the value’s PHP can store in $_SERVER
Below is the full code
If you want to quickly [...]

After building several WordPress sites lately, I’ve been getting used to writing it’s common, but useful functions to do various different things. I’ve now come to write new sites that don’t use WordPress and I miss those functions! So I’ve created my own version of the is_page function among others. View the is_page function in [...]

I’ve had this problem (changing the order on those darn categories pages) from day one since working with WordPress and it really bugged me when I’d had to resort to plugins to solve the problem. Basically, when you select different categories in WordPress the post order and category is set in a query which you [...]

With most sites I build, I would have quite a big use for min-height but with not all browsers supporting it, I can’t really use it. So today I had a bash using jQuery to solve this dilemma, and here’s what I came up with.
First I defined my minimum height for my element in a [...]