2005-12-19

Template upgrades

In pathing up my blog template to not crash down so badly when Del.icio.us is offline, I also found the bug that made my backlinks disappear; somehow I had dropped a bit of initialization code that made my overly complex Blogger backlink injection work in the first place. I ought to rewrite that from scratch using document.write like Jasper does; it would take out the need for my more bloated approach. Either way, backlinks here now work again, in Firefox. Not in IE nor Opera, though, further suggesting I'd be better off with Jasper's more robust approach.

While at it, I added a feature to tell my own back links apart from back links from other people, though. Maybe I ought to separate them into sections too, I'm not sure yet. I also ought to write an article on how to do such things, eventually, but in the meantime I warmly recommend Jasper's article above. It is easily extended by those of you familiar with programming in general, or ecmascript/javascript in particular.

Good to see my ClustrMaps hack working neatly in the latest versions of IE, Firefox and Opera alike; I had not tested that myself until today. I think I will set myself up with a more formal test bed of browsers (also including Firefox 1.0.7 and 1.0.6, either of which was reported not to get it quite right) if (or should I perhaps say when) I start doing freelance / consultancy work on web related development. Until then, quality control will remain loosely at today's level of laxity, user feedback driven.

My post navigation calendar approach of using the Blogger tags and daily archival to enumerate all post dates, and my Del.icio.us tags for providing them with titles on mouseover seems to be worth keeping and pursuing, as it degrades nicely when the latter is not available. Had I done as I initially planned on, and relied solely on Del.icio.us for it (less and cleaner code), that navigation option would have been effectively severed now.

I'll probably end up writing next post in my article series on setting up Blogger blogs with calendar navigation using this two tier approach, too, the latter feature being an optional add-on to those who take the time and trouble to tag all their posts at Del.icio.us, for that feature, for the possible topic navigation system that opens up for or just for driving relevant traffic to your blog.

4 comments:

  1. I don't understand the complication in the backlinks inclusion... Although I don't use it on my blog, I set it up for another once and it was identical to the peek-a-boo comments I use... just modified which section of code it affected ;) Pardon my ignorance of your (admittadly hairy) template -- but why bother with javascript in this case at all?

    ReplyDelete
  2. The reason for javascript to handle backlinks is that this is how Blogger adds the backlinks to blogs; it's not template tags rendered server side but actually template tags that get parsed client side, inject one script tag per post having backlinks and then iterate each backlink provided with the script tag, replacing the template elements with the comment data.

    And the reason I don't use the Blogger provided code to handle them is that the Blogger code is not made to handle adding backlinks to any pages except the item pages, where you will only ever get one backlinks section. My hairy (yet working) code handles the links on all archive and index pages as well.

    ReplyDelete
  3. I may be out of my coding depth here, but I'm searching for a way to reconcile peek-a-boo comments with backlinks, i.e., make backlinks appear when the comments do. Currently, when my comments come up on the main page, the existing backlinks are invisible, tied to the archive page.

    Any suggestions? Thanks in advance for any advice you have.

    ReplyDelete
  4. While I haven't dug up your code to look at it in its own environment, I believe it might be a bit difficult to help get that working the way you want it to, if Jasper's link in the post above and appropriate application of <ItemPage> (and the other few tags to limit availability by page type) has not got it up and working. Eventually I hope to write a tutorial on some way of doing approximately that, but that is probably still quite far away in time.

    ReplyDelete

Limited HTML (such as <b>, <i>, <a>) is supported. (All comments are moderated by me amd rel=nofollow gets added to links -- to deter and weed out monetized spam.)

I would prefer not to have to do this as much as you do. Comments straying too far off the post topic often lost due to attention dilution.

Note: Only a member of this blog may post a comment.