PHPMyAdmin Password Protection

Oct 26
2011

Just found this rather handy link regarding password protection when using a localhost version of PHPMyAdmin (and probably works on dedicated server setups too): http://how2notfail.com/web-development/password-protect-phpmyadmin-without-htpasswd/ Basically, you edit the config.inc.php file which sits in the root directory of your PHPMyAdmin folder. In WAMP (and I assume LAMP and MAMP too) your PHPMyAdmin folder will be [...]

dislpay: inline-block – a rule you should know

Apr 11
2011

I recently encountered a need to add an inline-clock css rule to a page I was working on. While one of the more obscure css rules, inline-block is excellent for displaying items that usually wouldn’t appear together. My case involved inline-block being applied to some text that sat between a pair of icons that had [...]

Photoshop CS4 – Collapse Layer Goups

Sep 01
2010

It occurred to me while using Photoshop CS4 that ther should be a shortcut or menu item to collapse all layer groups at once as you can have over a hundred in some documents. You can collapse all root layer groups by pressing: cmd + left mouse click (Mac) ctrl + left mouse click (Windows) [...]

A lesson (for me) in xml

Feb 18
2010

I came across a problem today that I had absolutely no idea how to fix that was due to my somewhat rudimentary understanding of xml. Basically, we have a feed coming from one website that gets imported into another one of our websites at work. In that feed there are tags like <a href> and [...]

ol displays single digits (looks like it only goes to 9)

Feb 16
2010

When working on the WordPress blog site at work today I came across a very peculiar bit of css buggery by the people who created the WordPress theme we’re using. They’d gone so far into making the css complete that they’d even styled ol lists which aren’t usually used in very many circumstances. Not only [...]

Editing Decrepit Code

Feb 13
2010

It’s not always fun editing someone else’s code. Sometimes it’s elegant, tidy, succinct and brilliant. We’ve all come across those little code nuggets where we’ve thought “Ah! Genius!” (and then swiftly ripped it off). But then there’s the other, unfortunately more frequent kind of work. I’m talking about spaghetti. There are many people with lots [...]

WordPress get_meta() Function Amendment

Feb 09
2010

Not to go into too much detail, but today I came across the need to get a Custom Field Value without the Key or HTML presentation. It didn’t take loads of digging but I thought I’d jot down my method for anyone who wants a nice quick solution to an otherwise troublesome problem. I found [...]

WordPress: Absolute URL’s

Feb 06
2010

After using WordPress to build several sites, a certain issue has come up which I think should be written on as many blogs as possible to help new developers. I’m talking about absolute URLs in WordPress pages and links. When you add a link (say, as a manually added <a href…) to a page, you [...]

Multiple Installations of WordPress On 1 Database

Jan 31
2010

I’ve seen several long winded explanations of how you have multiple installations of WordPress running through one database. I thought “it can’t be that hard…” so I had a quick go myself and I was right. When you install WordPress, you change the wp-config-sample.php file to wp-config.php before you install WordPress. When you do this, [...]

Does WordPress Need MVC Framework?

Jan 31
2010

In my short time in PHP I’ve come across several good, modern practices and one of those is the MVC (Model, View, Controller) Framework. If you’re a programmer you’ll probably know what this is already, but if not the you should have a look. I’m very new to the MVC model at this time so [...]