posted on Monday May 19, 2008 - 10:39 pm (4 months, 3 weeks ago)
tags , , , ,
I’ve spent much of this evening fighting, cajoling Wordpress into doing my bidding. I wanted my Twitter posts to appear inline with my blog posts but had not been able to make this happen until tonight.

The reason I had trouble is because the way Wordpress is designed is — in places — extremely limiting. While you’re in the middle of the main “blog post” loop, you can’t use the same infrastructure created to go off on a tangent. No, instead you have two choices, write your own database API (with the possibility of breaking things later), or put data you want to retrieve later into a large and cumbersome array.

I chose the latter. Before the blog posts are loaded, I load all (yes, all)the Twitters into an array. As I pass through the blog posts I check through the Twitter array for Twitters around the same time and output them if relevant. I’ve added a few ways to jump over already-output Twitters and stop if we’re at the last post in a page, but it’s still unwieldy and annoying.  Stupidly, categories and tags seem to be stored in the database in almost the same manner.  This is good if you want them interchangeable — which I don’t; I want categories as categories (think of libraries with their books on certain shelves) and tags as keywords which relate to the content of the post.  It doesn’t seem to work like this (at least internally) and if it does I couldn’t find any good documentation on it in my meagre searching.

Even worse, Wordpress uses a bunch of really common-sounding variables ($post, $query_string) without much documentation on these reserved variables. Now, Wordpress is great if you’re not a tinkerer, which I guess makes me not the regular target user. Still, the more I delve the more frustrating it gets. I changed for interoperability and I got it, just at the expense of hyper-customisation.

On the plus side, I’ve now been able to integrate the Twitters inline with the posts just how I wanted it. I could have had a summary each day using the Twitter plugin I’m using, but I wanted the Twitters running throughout the posts. In addition, they don’t show up on pages 2 and beyond, and aren’t in the sidebar. I like to think of Twitters as non-historic bits of information.

Even though I’m glad I got it all up and running (after three separate attempts using three different approaches over two separate days) I’m not so sure this is how I want to keep it. I’ll be keeping an eye on others using the summaries and a couple of other sites using a similar approach to me and make my decision later. If I post more regularly I think the way it is will be best… but that means I have to post!

One comment, make a comment »
posted on Wednesday August 1, 2007 - 7:54 am (1 year, 2 months ago)
tags , , , , , , ,

You’ve probably noticed at this point that the website (again) looks different. Over the past few months I have been installing, customising, tinkering and fiddling with Wordpress to get it”just so”.

If you are a technically-minded user, you may also be wondering why I chose to go with Wordpress versus my own blog that I wrote a couple of years back. The answer to that is both “interoperability” and “functionality”. Since we are going overseas soon (I’m sure you’re all aware of that now), I wanted an easy way to update while away.

Wordpress has an email-to-blog function which means all I need to do is to send an email, wait a bit, and have it posted. I’m sure I could have coded it myself, but it would have taken a while and Wordpress already has it. There are a bunch of other great features I’ve introduced including Gravatars (which allows you to have a picture beside your comments), Flickr integration (whenever I post a photo from Flickr, the data is read as well as the comments on that photo — this is my attempt to integrate both my blog and photoblog) and a bunch of other stuff designed to make it easier to get in, read what you want and find more content that makes you want to stick around.

At this point, I will step back and give a quick history of bludger.org, since the old site will soon come offline and I won’t have pictures of it any more; indeed, I only have pictures of the most recent versions of the site.

  • 2000 - bludger.org is registed primarily for me to have an email address I never have to change again.
  • Early 2001 - The first blog is created, though I didn’t know it as a blog then. A gaudy bright orange and dark blue colour scheme are used (based on a Microsoft Access database running with ASP, hosted at www.brinkster.com).
  • Late 2001 - The site switches to mike.bludger.org as I’d decided to create a “global” website and a personal one. As well as a blog, it also had book, movie and restaurant reviews (still on Microsoft Access and ASP).
  • 2002 - 2003 - Not a lot of blogging goes on, but I was attempting to revamp mike.bludger.org. It never really materialised.
  • Early 2004 - My first use of software I didn’t make. I used PHPNuke after setting up a Linux server at home. The server was a paltry P133 and couldn’t really handle running Apache, mySQL and PHPNuke together.
  • Mid 2004 - After 4-6 months of using PHPNuke I decided to again build my own site. I used mySQL and PHP this time and created a simple site with a “blog of doom” and “links of peril”. A dark blue colour scheme with the first appearance of the couch.
  • Late 2004 - I decided to recode the entire blog from scratch as blogs are becoming more popular and I decide to make my blog more “blog like”.
    bludger.org version 6
  • 2005 - A few problems with the style sheet on the new site prompt me to change the look and feel again. These problems are mostly due to Internet Explorer’s poor handling of transparencies.
    bludger.org version 7
  • 2006 - A small visual refresh of the look/feel to the site.
    bludger.org version 8
  • 2007 - (Where we are now) I install Wordpress, create my own custom Flickr integration using PHPFlickr as well as creating my own custom Wordpress theme.
    bludger.org version 9

This is actually not the first time I have installed Wordpress. I installed it late in 2006 with the intention to moving across and using lots of AJAXifications, but became bored with the look and feel of the site I’d come up with.

Getting the data in posed a problem, as I had to take my data from my database and change it around to suit the database structure for Wordpress. Since I’ve done plenty of database stuff both at home and work, it wasn’t particularly taxing but was time-consuming. Speaking of time consuming, I went through every single post and painstakingly added tags to each one. Some are better tagged than others, but they’re all there.

Since I have been working mostly on this site, I decided to simply ignore my other site. I was updating both simultaneously for a while, but thought getting you to read a number of older posts might be a good way to get you to explore the site.

So there you have it! Explore, enjoy and let me know what you think.

2 comments, make a comment »
posted on Sunday April 25, 2004 - 4:28 pm (4 years, 5 months ago)
tags , ,

Over the past month or two, I’ve become a little sick of the Nuke website. There are a few reasons for this. The main reason, though, is that the site loads too slowly on the poor P133, and I wanted a fast-loading site.

Also, Chris has unleashed his blog upon the world. He’s using a funky app called “WordPress” which looks really good. I’d been considering installing “Movable Type” which is the bog-standard blogging tool but it would require a re-compilation of PHP and to be honest, twice was enough for me.

WordPress probably wouldn’t require any re-compilation but after a little thought, I just decided I’d make my own! So, here it is! The site is purely dedicated as a blog and appears to run much, much faster than the old Nuke site! I’ve also been able to choose my own design, since you can spot a Nuke website a mile away.

I really like the design of this new site, all of the design was hand-coded by me in Dreamweaver and does exactly what I what it to, not what someone else thinks I want it to do.

Couple of things, the gallery is gone but I hope to resurrect it in the near future (I always have trouble making my own galleries, not because it’s hard, but because I’m always conflicted on how to design it). Secondly, scrolling and viewing may seem to chug in Internet Explorer. That’s not a fault of the site, but the way IE deals with transparencies. If it’s too slow for you, try Mozilla Firefox, it’s much better anyway. Lastly, you can change the style sheets easily in Firefox, allowing for the red to be green or blue. I’m looking for an easy, cross-browser way to make this changeable on the fly, as well as remembering it (I’ll probably use cookies since I already know enough about them to do what I need).

That’s all for now, hope you like the new design!

No comments, make a comment »
 
bludger.org (version 9) © 2000-2008 bludger.org. All rights reserved.
Not many animals were harmed in the making of bludger.org, but a lot were eaten. And they were delicious.
I mean, really, really nice. I especially liked the squab, he didn't put up a fight.