posted on Tuesday July 8, 2008 - 7:37 pm (1 month, 3 weeks ago)
tags , , ,

Earlier this week I removed the Twitter posts from the main blog feed. Even though I worked quite hard to get them to integrate in the way I wanted, the output just wasn’t working how I would have liked. Instead, I’ve subscribed to FriendFeed which achieves exactly what I wanted to achieve in the first place. The “Other Activity” section on the right-hand sidebar shows other activity from me around the web, including Twitters, Flickring and adding bookmarks. It’s not as easily accessible as the Twitter integration but I think it will work better.

Of course, you can always work the other way and look at my FriendFeed instead.

No comments, make a comment »
posted on Monday May 19, 2008 - 10:39 pm (3 months, 1 week 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 Sunday May 4, 2008 - 9:58 pm (3 months, 3 weeks ago)
tags , , ,

Since I’ve taken up Twittering with what seems to be a reasonable amount of frequency, I had added the Twitters I… twitter into the list of posts. Previously just the latest was at the top of certain pages. I’ve also moved the “seconds until retirement” counter — which is still going strong — to the right into the side menu bar.

I’ve given the Twitter posts a distinctive look; since they’re a lot shorter they don’t need as much information crowding them. There are still a few problems to resolve which mainly involve removing Twitter posts from a lot of places — they appear in the RSS feeds if you’re already subscribed (if you resubscribe using the links on the page you’ll not get the Twitters any longer), the Twitter posts count towards the “seven posts per page” which I don’t want (I want seven posts per page plus any Twitters inbetween, which isn’t as easy as it seems using Wordpress’ API) and finally the Previously/In History need to have Twitters removed also.

I am thinking about other possible integrations in the future. Examples include Facebook updates (though I also never use it), some sort of public bookmark creation (I don’t use one of these services at the moment) and maybe something else which follows me around. The idea is not just to have a list of posts on the site but sort of a “What’s Mike up to?” stream from around the place. Whether it’s easy or will even work remains to be seen.

Other work includes joining the flickr and regular comments (where relevant) into one comment stream, but this is a bit of work (involving merging two arrays into one with lots of error correction for busted Internet connections) and since it’s already working it’s way down on the list of stuff to do.

Also: ScribeFire — look it up.

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.