I don't write quotes, I write code

but I occasionally write about writing code....

jQuery CDNs and WordPress theme conflicts

Posted by on Aug 6, 2012 in Wordpress | 1 comment

jQuery CDNs and WordPress theme conflicts

Since the recent update of version 3.4, many users have started to experience issues with their sites not working correctly, particularly due to JavaScript features such as datepickers, autocompleters, etc. failing to work as before.

For plugin developers like myself, it’s a pain in the @!+ as I’m now seeing users run into this problem on a daily basis for a few weeks now, and it has become obvious that the problem in every case is the forced loading of jQuery library files from CDNs, particularly Google.

The aim of loading jQuery libraries from external sources is to speed up page loading time, so no wonder why theme makers jump at this quick speed upgrade.

However, whilst there’s nothing wrong with doing this theoretically, they way they’re going about it couldn’t be more wrong! The various misleading posts circulating the web are most likely the cause of such a widespread problem, and now we’re starting to see the consequences as time passes.

Read More

My new home…..

Posted by on Jul 2, 2012 in Other | Comments Off

My new home…..

Blogging is no easy task! It takes time, dedication and consistency. I started a blog on netweblogic.com, which started falling behind as other priorities took over. It’s been over a year, and an ageing blog theme did nothing to motivate me.

Read More

Redirect users from WordPress admin pages

Posted by on Apr 20, 2011 in Wordpress | Comments Off

After some time looking at the various user-restriction/membership style plugins, I realized that there wasn’t a quick and easy way to ban normal users from all of the wp-admin pages.

Fortunately, wordpress makes this sort of customization easy with its amazing API. These four lines of code are all that’s needed:

Read More

Cursor Trail

Posted by on Feb 14, 2011 in Plugins | Comments Off

This is a pretty simple plugin and probably as useless as they get!

This was inspired by David Walsh’s MooTools implementation. Check out his demo to see functionality, it’s the same thing except you can control the fade speed and cursor image, as long with start/end dates for special occasions.

Activate it for Valentines Day for a special surprise, if that’s today you’ll know what I mean :)

Download it here!

Read More

Single string with multiple translations

Posted by on Aug 12, 2010 in Wordpress | 1 comment

Multilingual wordpress sites are not as straight-foward to create as you may think (unless you’re using multi-site). There are various plugins that make this easier, although they all lack something or other (my favourite is qTranslate so far). It gets tricky when you add custom text to sidebars, other plugins, or your themes. It’s not really the fault of the translation plugins either, because it’s literally impossible to reliably force plugin outputs to be translated in a user-friendly manner.

Read More

Adding & Removing Allowed FileTypes To WordPress Media Library

Posted by on Jul 2, 2010 in Other | 3 comments

WordPress has a set of restricted filetypes it will allow you to upload via the media library. Whilst this is a great security feature, there may be times where you’d like to add other files that are restricted by default, or maybe even the opposite where you’d only like to allow a few extensions to be uploaded. Fortunately, WordPress makes this dead easy with a small snippet of PHP code.

Read More

Choosing the right WordPress plugins

Posted by on Jun 25, 2010 in Wordpress | 2 comments

When choosing WordPress plugins, you need to keep in mind that these are open source, therefore each plugin is maintained by someone for free, so some plugins are made by people that aren’t experienced coders (which may result in the plugin preventing your site from loading), or may not have time or resources to maintain the plugin to keep up with new WordPress releases.

This becomes especially important when considering the crucial and complex plugins that make your site work the way you need, as finding a replacement in the future may be prove to be much more laborious than doing a little due diligence beforehand. Imagine, for example, if your photo gallery stopped working when you upgrade to the latest version of WordPress!

Due to this, it’s important to take certain things into consideration when choosing a plugin, and if keep these in mind you’ll probably find that your selected plugins get updated with the new WP releases and are regularly improved. There’s lots of factors that you need to consider when choosing a plugin. Below are some of the major things to think about:

Read More