Azharkamar.com

Snippets

17 Mar 12

Automatic Redirect to Mobile Website using JavaScript

Developing a Mobile site? Want users to be automatically redirected when they access it from a mobile device? Well I think I’ve got a nice piece of JavaScript that will do just that. Read more

29 Feb 12

How to Increase the Maximum File Upload Size in WordPress

My blog has been using the Download Monitor WordPress plugin for about 2 years now and I’ve been loving it since. So when a client wanted a function whereby admins can upload files from the backend for registered users to download from the frontend, I immediately knew which WordPress plugin to turn to. Read more

20 Nov 11

How to Add a ’selected’ Class to the Menu Link of the Current Page using jQuery

Differentiating the menu item of a current web page from other menu items is pretty important, generally because it enhances user experience as it instantly tells the user exactly which part of the website he is at. There are many different ways to implement this programmatically, but I’ll only explain the jQuery method here. Read more

10 Nov 11

How to Edit the Footer in Your WordPress Backend

Here’s a simple way to modify the footer in your WordPress backend, just by adding a function in your theme’s functions.php file. You can change to any text you want or simply remove it completely. Read more

24 Oct 11

SQL Query in phpMyAdmin to Change All Passwords to MD5

Hello there folks! Ok, so here’s the story. I had to batch create Joomla users (about 4000 of them) from an excel file that my client provided. So I created all the users successfully (using phpMyAdmin), but there was one problem. Read more

17 Apr 11

10 Useful jQuery Snippets for Creating Fade Effects

jQuery is being used by more and more web designers nowadays to create simple animation in web pages. One of the most commonly used effect is the fade in/out effect which is used in image slideshows, button hovers, page loads and more. Read more

17 Apr 11

2 Useful WordPress Admin Hacks

I’ve been using WordPress for just almost 2 years and there are generally 2 features that I would love to change in the WordPress admin. First is the autosave feature and second, the post revisions. These are great features, by the way, but they can be further tweaked for more comfort. Read more

10 Mar 11

CSS3 Codes for Rounded Corners

Since Dreamweaver or any web editing software doesn’t do auto-complete for CSS3 rounded corner properties, I find it helpful to have this here. So whenever you wanna throw in rounded corners for your website, just copy and paste this and adjust accordingly. Read more

8 Mar 11

Left Click ‘Save Target As’ PHP Script

Here’s an easy peezy PHP script to mimic the Right click > Save Target As… (or Save Link As, Save Image As, etc.) action in browsers. This script allows you to simply left click and the file dialog box will pop out. Read more

6 Jan 11

Hide DIV/SPAN Element Automatically After a Few Seconds Using jQuery

One of the many ways to get 100% attention from your website visitors is to interact with them using popups. Nope, not the 90s, ugly, annoying popup but the neat jQuery modal one. And sometimes you wanna automatically fade out that DIV / SPAN popup element in effort to improve user experience, so here’s something you might find useful.
Read more