Simple jQuery plugin for Vertically Centering

Came across this while needing to vertically center a div within another div: 1234567891011(function ($) { // VERTICALLY ALIGN FUNCTION $.fn.vAlign = function() {     return this.each(function(i){     var ah = $(this).height();     var ph = $(this).parent().height();     var mh = Math.ceil((ph-ah) / 2);     $(this).css(’margin-top’, mh);     }); [...]

Great WordPress Plugins

WordPress is certainly one of the most feature rich and user friendly publishing platforms available today. At the same time it is loved for its openness, extendability and great open source community. WordPress is today used in serious projects and on large commercial websites besides the millions of hard working bloggers sharing their valuable knowledge. [...]

Styling your WordPress Comments

I recently stumbled across a website that shows you how to customise your theme’s comments skin, and also provides you with some nice code/themes that you can drop into the template file, such as: Green Gravatar:  The Speech Bubble: The blog post can be found at: http://www.darrenhoyt.com/2007/08/18/styling-your-wordpress-comments/. I realize though that it was written in 2007, and the wordpress code [...]

atoChat v1.0

Just a recap here, of some things that have changed in atoChat v1.0: Installer updated with new skin Now almost XHTML compliant Javascript moved to its own .js file, instead of being in the index.php All the ajax calls are much more stable now, it initializes it’s own xmlHttp object for each call instead of [...]

Remove scrollbars and get your facebook app/canvas iframe to autosize to height – FB.Canvas.setAutoGrow()

Note: This works with the new facebook 810px width canvas page! If you have created a Facebook application that has an canvas/iframe page tab and you want the frame to automatically grow to the size of the content, you can use FB.Canvas.setAutoGrow() within the frame. If you haven’t already created a Facebook app tab, follow [...]

osCommerce v2.3.1 and SagePay Direct: Error 4020: Invalid IP Address

Two possible error messages for 4020: “Information received from an Invalid IP address” and just “Invalid IP address”. While I was configuring SagePay Direct for an osCommerce store I made, the checkout process wasn’t completing because SagePay was returning error 4020. This means that the IP address I added to the “Valid IPs” tab on [...]

The benefits of Google Analytics

I’m going to write a little bit about Google Analytics today, for those who don’t know anything about it. If you already use Google Analytics on your website then stop reading now, I’m only going to be going through the basics. So, what is Google Analytics? It’s an amazing web application that allows you to [...]