Bugger

Filed Under Diary, Running 

I’ve not posted anything for a while, the reason for that – I’ve been busy.

I just feel the need to post now because I’m a fool. I’ve spent about 3 days in total trying to work out why my menus weren’t working in a new WordPress theme that I’m writing. The problem as in most cases is user error. When trying to check if a pages parent ID matched a specific ID, I used an equals sign (=) instead of a double equals sign (==) the result meant that I was assigning each page with a parent ID of 4 resulting in every page having the menu which should have only appeared on pages with a parent ID of 4. I’m not impressed, I had to go through the code a line at a time removing each line in turn until I found the affected code.

At least with this issue sorted I can now crack on with writing all the menus so that hopefully the new site can go live soon.

Comments

9 Responses to “Bugger”

  1. Neo-Anarchist on November 30th, 2006 2:34 pm

    HA-HA, nasty buggers them symbols. n its a bugger to track down the one missing or extra symbol that’s causing your problems
    I once spent 5hours to track down a rogue ;

    for(...);
    {
    ...
    }

    just doesn’t work

  2. Andy Bell on November 30th, 2006 2:51 pm

    Well now its sorted I’m flying again. You really need to do some work on your blog. I know you’ve done the work once already but you should be able to do it even faster now.

  3. Neo-Anarchist on November 30th, 2006 4:52 pm

    yes I know, but that’s work n I do enough of that at work, might do some more at the weekend, might try to get that heading colour right this time too.

    well least its easy to make pages n stuff, none of that nasty coding yet. Theres a post in the forum about it, can post design tips n stuff to it, wanna find the no to software patents button thing to go with my hacker and get firefox ones

  4. Andy Bell on November 30th, 2006 5:04 pm

    Sadly those crappy buttons are some of the first things I’d delete!

  5. Neo-Anarchist on November 30th, 2006 5:44 pm

    well they do look a bit out of place, maybe I’ll just colour them in

  6. Andy Bell on November 30th, 2006 6:05 pm

    Before you even do anything in wordpress you need to think about the design/layout. You should create a template using plain html and css. Once the design is complete then you should convert it to wordpress. If you just start of with a rather average template and just hack away at it with no particular clear vision then it will look like a dogs dinner.

  7. Neo-Anarchist on November 30th, 2006 6:25 pm

    did you see my last home made template? any of the previous incarnations of my site?
    I’m first to admit I’m not an artist, I’m going to change a few colours here n there that keep to the theme but nothing major. basically replacing some of the greys with blues, n I think I can safely throw a red or 2 in.

  8. Andy Bell on November 30th, 2006 7:23 pm

    ok then to put it another way, if all your doing is changing colours, then couldn’t you have picked a better starting theme in the first place!

  9. Neo-Anarchist on December 1st, 2006 10:30 am

    I liked the lightning at the top, but as its so easy to change themes I might randomly change every other day or something

Leave a Reply

You must be logged in to post a comment.