How To Archives

The main subject of this site: how to get something done, further divided by tags.

DNS Servers from OpenDNS

I was on the phone to Apple Support the other day. Among many other things they suggested that I use the OpenDNS servers for local DNS queries on my system rather than mu router’s. An what do you know – they work faster indeed. Here they are – in case I forget: 208.67.220.220 208.67.222.222 To … Read more

How to style WP Affiliate Platform

I’ve recently done some research on Affiliate Programmes that integrate with WP Ecommerce.

I came across the excellent WP Affiliate Platform from Tips and Tricks HQ – it works beautifully and is very easy to setup. At only $39 it’s a steal – considering how much business it can generate for you. Thanks Ruhul!

I wanted to make the front end integrate with my original site – which is just like tweaking a WordPress Theme. Let me talk you through it in this article.

Read more

How to upgrade PHP on CentOS 5

With the recent end-of-life announcement it becomes clear that WordPress isn’t going to support PHP 5.1.6. for much longer anymore.

CentOS 5 however comes pre-compiled with PHP 5.1.6 and there are no plans to change this in the current version.

For simple folk like me it’s unimaginable to re-compile the entire OS from source or switch to a different distribution altogether. yum doesn’t help much by default – unless you’re looking in the right repositories.

Help is at hand, courtesy of the 1and1 Knowledge Base. Without further ado, here’s how to upgrade PHP on CentOS 5:

Read more

How to increase the Upload Limit in phpMyAdmin?

Since phpMyAdmin is written in php, all we need to do is change the file upload limit in the php.ini file. On CentOS and RHEL distributions, this file is located in /etc/php.ini Find this section: ;;;;;;;;;;;;;;;; ; File Uploads ; ;;;;;;;;;;;;;;;; ; Whether to allow HTTP file uploads. file_uploads = On ; Temporary directory for … Read more

How to change “View with Piclens” message in NextGen Gallery

Alex Rabe’s NextGen Gallery plugin is certainly the best there is, even though I find it a tad too complex at times. I love it though, and I use it on all my sites whenever I want to upload a batch of pictures and insert them into my posts with little hassle and great convenience.

One thing that bugs me though is the message that reads

[View with Piclens] above my thumbnails, which gives the viewer a chance to see my gallery as a slideshow. It’s a great feature.

Trouble is, nobody actually knows what PicLens is or what it does – including myself, let alone my readers.

Lucky for us, it’s fairly easy to fix – let me show you how:

Read more

How to create Rotating Ads on your site

I was looking for a solution that displays more than just one advert or banner in one spot. Say I have some space in my sidebar and I wanted to display some adverts there – but I don’t want them to be the same one all the time.

I’d like a solution that upon a page refresh gives me a random banner out of a selection that I can define.

Enter Datafeeder’s Random Ads V2 Plugin!

As if these people had read my mind, this amazing plugin does exactly what I had imagined in my dreams:

You can define several groups of banner codes (say one for vertical sidebar banners, one for pre-post horizontal banners, etc). You can add as many groups as you like, and add as many “code-snippets” as you like to each group.

Read more

How to fix the “Press This” 404 Error

If you’re not already using Press This, maybe now’s a good time to start. Press This is a for you if you’d like to share excertps from other websites on your own site. It’s a simple Javascript bookmarklet that opens a new window with a link to the site you’re on. It then lets you add pictures, text and post it to your site – just as if you’re writing a new post. It’s genious! Find it under “Tools” and drag the link to your browser bar – no installation needed, it’ll only be a simple bookmark.

However, on some sites the new window brings up a 404 error, indicating that something’s amiss. Turns out that WordPress is getting confused about certain mod-rewrite rules or something… Whatever the reason: Fret not, there’s an easy solution to fix this (thanks to Blogmum and the WordPress Forum for these instructions).

Read more