Category Archives: Web Development

Password Protect Directories Using Htpasswd On Nginx

Nginx 1.4.3, Magento CE 1.7.0.2 Apache offers us a neat security feature using http auth. It provides a simple way of protecting files and directories which is extremely useful, albeit not high-level security. Nginx users will be happy to hear that this functionality is also available by default on Nginx 1.4.3 using the HttpAuthBasicModule. The […]

jQuery Validations In A Script File

jQuery 1.10.2 This is pretty straightforward really. I want to keep all my validations in a seperate file and call them to act on a specific form after the page has fully loaded. I keep forgetting the syntax, so this is as much for me in future as for you! 123456789101112131415(function($){     var validateInputForm […]

Add Home Link To Magento Navigation With Active State

Magento 1.8.0.0 CE This is actually really easy to do. Why this still isn’t part of Magento out-of-the-box beggars belief, but I guess they have their reasons. First, copy the menu phtml file to your own theme folder. The original is located at app/design/frontend/base/default/template/page/html/topmenu.phtml. Now let’s add our link, with ‘active’ state support. By default, […]