Code first. Shoot Later.

I needed a way of letting users in a Wordpress blog be able to login to a different website on the same web host. Googled the idea and found nothing, so worked it out for myself. I’m using 2.6 in this example. It’s all quite straight forward.

First, your site needs to include the wp-config.php file.

include_once($_SERVER['document_root'].”/blog/wp-config.php”);

Then, edit your config file to contain the following extra lines (note, users will have to log in again after doing this): Read the rest of this entry »

I hate how true this is

I hate how true this is

Every time I decide to do some web development, there’s a small voice in the back of my head that is whispering a prayer that maybe… just maybe… whatever I try and make, after checking it complies with W3C standards and testing the code exhaustively… maybe maybe… it might work in Internet Explorer… but no…

I’ve seen this image a lot of times over the last few years… I always go in search of it each time I finish a project to make me feel better and that I’m not the only person Internet Explorer hates. Read the rest of this entry »

I’ve got this situation:

I own 4 domains, they all point to the same hosting space. So, each domain would load exactly the same pages. I.e, example1.com/home/ is exactly the same as example2.com/home/

I’ve searched forever to find a .htaccess script to do this, and I finally have it. Read the rest of this entry »

CubeShack.co.uk is having a major redesign and different direction.

Stay tuned ;)