14 How to install Haloscan trackbacks in Blogger templates

Unfortunately, Blogger chose not to include trackbacks in their new interface which can make it difficult for bloggers who want to cross reference their posts with other blogs. But luckily, there is a work-around as I mentioned in a previous post: installing Haloscan trackbacks in your blogger template.

Haloscan offer a commenting and trackback system which you can easily install in Blogger templates using their installation wizard. However, if you use this option, you also lose the ability to make and show comments made using Blogger's comment interface. For many of you, this may not be a problem, in which case go ahead and use Haloscan's installation wizard, which is the easiest method by far of installing trackbacks to your blogspot blog. You can even watch a video tutorial of this method here.

However, I prefer to keep Blogger's comment system and instead only use Haloscan's trackback function in my posts. There is some support for this in Haloscans forums and help files, but I've found it quite confusing, so I've posted my own method here which should help you get up and running quite smoothly, and include your post title (instead of those pesky numbers!) in the trackback URLs for your posts.

Here's what to do:

  1. Create your free account with Haloscan (if you haven't already done so). If you have more than one blog, you will need to create a different account for each blog.
  2. Customise the settings of how you would like your trackback links to be displayed in your Haloscan dashboard, including your blog name, timezone and such.
  3. Make a note of your Haloscan username as you'll need this to install trackbacks in your blogger template.
  4. Go to your Blogger dashboard and click on Template>Edit HTML. Before changing anything make a backup of your template by clicking "Download full template". Just in case you accidentally mess anything up!
  5. Now with the modifications: first, ensure that the "Expand widget templates" box is ticked.
  6. Just before the closing tag in your template, insert the following code, replacing "yourhaloscanusername" with your username:
    <script src="'http://www.haloscan.com/load/bloggerbuster'" type="'text/javascript'/">
  7. Now you need to add the trackback code in your post footer where you would like the trackback link to appear. You must be careful where exactly you place this code, otherwise when you try to preview your blog, you'll get a message telling you that the XML could not be parsed! Be sure to paste this outside any <b: if cond=...></b> loops:
    <a class='comment-link' expr:href='"javascript:HaloScanTB(" + "\"" + data:post.title + "\"" + ");"' target='_self'><script type='text/javascript'>postCountTB('<data:post.title/>');</script></a>
    I've included this code next to the comment link as follows:
    <span class='post-comment-link'><b:if cond='data:blog.pageType != "item"'><b:if cond='data:post.allowComments'><a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:top.commentLabel/> <b:if cond='data:post.numComments == 1'>(1) <b:else/>(<data:post.numComments/>) </b:if></a> </b:if> </b:if><a class='comment-link' expr:href='"javascript:HaloScanTB(" + "\"" + data:post.title + "\"" + ");"' target='_self'><script type='text/javascript'>postCountTB('<data:post.title/>');</script></a> </span>
  8. Preview your template to make sure everything looks okay. You should see the trackback link in the footer of your posts.
  9. If all looks okay, save your template and enjoy your new trackbacks feature!

To send trackbacks to other blogs, you'll need to log into your Haloscan dashboard and click on "Manage Trackback>Send a trackback ping. Insert your blog name, the full URL of your blog post, an excerpt from your post and the trackback URLs you want to ping (each on a different line). Once you've pressed "send" you'll be notified of the success/failure of your pings. Usually, trackbacks are only unsuccessful if you haven't used the proper trackback URL of the post you are pinging.

And there you have it: trackback functionality for Blogger blogs! Let's just hope that the guys at Blogger decide to include trackbacks by default in the future so we won't need to use complicated workarounds!

Technorati Tags:

14 Comments:

28 August 2007 13:52 Lori said...

Okay...I've done everything but I have 2 questions...Which closing tag do I place the first code?

And second, You can't see my trackback link but if you put your cursor between "2 neighs n snorts" and the little envelope to email posts you can see that is says trackback yada-yada but nothing shows up. Do you know what I could be doing wrong?

28 August 2007 14:23 Amanda said...

Hello Lori,

For the first section of code, place this just before the closing </head> tag in your template.

I'm not sure why the link isn't displaying in your blog. A few things to try: check your Haloscan dashboard to ensure there is something present for the trackback link text (eg: "trackback"). Another option is to try rearranging where the trackback link is posted: try pasting this just before your neighs and snorts link instead to see if it shows up.

If you want to send me a link to the blog you're trying to make this work on I'll take a look at the source code to see if I can fathom this out for you.

28 August 2007 14:34 Lori said...

Hi..I sent an email but my link is http://acowboyswife.blogspot.com

28 August 2007 18:28 Lori said...

I checked my dashboard and it's good. If I move the code before neighs n snorts, it will be in the b tags...
I appreciate your kindness.

28 August 2007 22:17 Amanda said...

Hello Lori,

I was just going to post a long comment about possible debugging procedures for this then it hit me what the problem is!

It seems there may be a slight error in the haloscan javascript code in the head of your template. In the source of your blog it seems you may have put too many quote marks around the url for the script which is preventing it from loading. Take a look in your template html, it should be enclosed in only one set of quote marks, like this:

<script src="http://www.haloscan.com/load/your_username' type='text/javascript"></script>

Everything else seems to be installed just fine.

Apologies for the delay in getting back to you-I hurt my hand earlier and it's really slowed me down!

Hope this helps! If there are still problems, try emailing me your template and I'll see what I can do to help.

9 September 2007 00:16 Thomas Flight said...

Thanks for this Hack!

It might be nice to let those using this know that trackbacks over 4 months old are not shown. You need a premium Haloscan account to see bring them back.

-Thomas Flight
Be a computer geek at Geek-more.com!

9 September 2007 21:33 Amanda said...

@Thomas Flight: thanks for letting us know about this! I wasn't actually aware that only the recent 4 month's worth of trackbacks would be shown. Since Haloscan seems to be the only option for installing trackbacks in Blogger blogs, I will still continue to use it, but I'm not prepared to fork out the extra services (and seriously doubt that most of it's users would either!).

In fact, from what others have said, Haloscan isn't quite as trustworthy as I'd thought. In the near future, I will make a detailed post about Haloscan's advantages and disadvantages in order to provide readers here with a better overview of the site.

14 May 2008 10:24
Anonymous said...

https://www.blogger.com/comment.g?blogID=724793682641096478&postID=8953199406113734895&page=1&isPopup=true

25 July 2008 16:28 Rachel said...

Thank you for posting. I finally got trackbacks to work.

10 September 2008 05:24 dhuwuh said...

my site sir :
1. dhuwuh
2. busanaku

thanks sir.

1 January 2009 17:53 Eva Lyford said...

I noticed your haloscan instructions for login/customization don't seem to work since haloscan was acquired by js-kit.com . Bummer. I'd love to see your update!

16 August 2009 10:07 Nick said...

How do I register on haloscan,.when i click register it leads me to js-kit....im very confused

21 May 2010 19:45
Anonymous said...

hi

Post a Comment

Browse through the Archives

All existing posts are still available to view while I'm working on the site, albeit seen in a much simpler interface. Feel free to browse through the archives to find tutorials, templates and articles to help you build a better blog:

Blog Archive

© Blogger Buster 2010 Home | About | Contact | Hire Me