-
Trackback Inside Blogger
- body
-
It is reccomended that you use the new del.icio.us, pinging, AND trackback script. This one may still work, but I no longer actively support it.
Blogger has no native trackback capabilities. While trackback is a wonderful tool, it can sometimes just be too much of a pain for Blogger users. After all, you just went to the work of writing a wonderful post, who wants to bother making a hop over to Haloscan afterwards to send trackbacks to others? With the advent of the semi-automatic Backlinks we seem to be ever less inclined to make the extra hop.
Now, the extra hop can be a thing of the past. Install the Blogger Trackback Userscript and get trackback functionality directly from your Blogger dashboard! Every time you publish a post, the script harvests the title, permalink, and post excerpt (as well as blog title) and then displays a form on the 'post complete' page for trackbacks. Enter the trackback URLs one at a time and hit enter. The trackbacks will be completed AJAXially.
Much thanks to Johan's Blogger del.icio.us helper script which facilitated much of the code for this script.
Possible Future Features
- Support for autodiscovery trackback RDF so that one can enter simply the post URL for a trackback and not have to use the full trackback URL
- Optionally try auto-trackbacking to all posts linked to from the post
-
Backlinks on Main Page
- body
-
This hack has been superceded by this better one.
Getting Blogger baclinks to display on your main page is no picnic – wheather for peek-a-boo or permanent display. The way the script works direct from Blogger it assumes that it is running on a post page. So, after mor than a little fussing, I have come up with a hack that works for fixing this. The following will install peek-a-boo backlinks on your Blogger blog (template hackers will be pleased to know that the backlink template-tag section is still intact for your hacking pleasure) :
- Enable backlinks on your blog — an obvious, but necessary, step
- a – Put manual metadata in your template. Feedburner users have already done this. If you already have your metadata in your template manually for this or another reason, change this line:
<script type="text/javascript" src="http://www.blogger.com/js/backlink.js"></script>
To this:
<script type="text/javascript" src="http://www.awriterz.org/etcetc/backlink.js"></script>
Otherwise go on to 2b.
b – Find this : '<$BlogMetaData$>', it should be somewhere near the top of your blog template. Replace it with this:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="generator" content="Blogger" /> <link rel="alternate" type="application/xml" title="<$BlogTitle$>" href="<$BlogSiteFeedUrl$>" /> <link rel="service.post" type="application/atom+xml" title="<$BlogTitle$>" href="https://www.blogger.com/atom/<$BlogID$>" /> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.blogger.com/rsd.g?blogID=<$BlogID$>" /> <style type="text/css"> @import url("http://www.blogger.com/css/blog_controls.css"); @import url("http://www.blogger.com/dyn-css/authorization.css?blogID=<$BlogID$>"); </style> <script type="text/javascript" src="http://www.awriterz.org/etcetc/backlink.js"></script> <script type="text/javascript" src="http://www.blogger.com/js/backlink_control.js"></script> <script type="text/javascript">var BL_backlinkURL='http://www.blogger.com/dyn-js/backlink_count.js', BL_blogId='<$BlogID$>';</script>
- Put this code directly after that which you just inserted:
<script type="text/javascript"> //<![CDATA[ function toggleitem (postid,linkid,newtxt) { var whichpost = document.getElementById(postid); if (whichpost.style.display != "none") { whichpost.style.display = "none"; } else { whichpost.style.display = "block"; } if(linkid) { var lnk = document.getElementById(linkid); lnk.href = "javascript:toggleitem('"+postid+"','"+linkid+"','"+lnk.innerHTML+"');"; lnk.innerHTML = newtxt; } } //]]> </script> - Find the section in your template that starts with '<BlogItemBacklinksEnabled>' and ends with '</BlogItemBacklinksEnabled>' and replace the entire thing (these tags included) with this code:
<ItemPage><div style="display:block;" id="backlinks<$BlogItemNumber$>"></ItemPage> <MainOrArchivePage><div style="display:none;" id="bl<$BlogItemNumber$>"></MainOrArchivePage> <BlogItemBacklinksEnabled> <a name="links"></a><h4>Backlinks:</h4> <dl id="comments-block"> <script type="text/javascript">backlink = new Array();BL_Backlinks = new Array();</script> <script type="text/javascript" src="http://www.blogger.com/dyn-js/backlink.js?blogID=<$BlogID$>&postID=<$BlogItemNumber$>" defer="true"></script> <div id="blogger-dcom-block<$BlogItemNumber<div id="blogger-dcom-block<$BlogItemNumber<div id="blogger-dcom-block<$BlogItemNumber<div id="blogger-dcom-block<$BlogItemNumber<div id="blogger-dcom-block<$BlogItemNumber<div id="blogger-dcom-block<$BlogItemNumber<div id="blogger-dcom-block<$BlogItemNumber<div id="blogger-dcom-block<$BlogItemNumber$>" style="display:none"> amp;gt;" style="display:none"> amp;gt;" style="display:none"> amp;gt;" style="display:none"> <dt class="comment-title"> <span class="comment-toggler"> </span> <a href="<$BlogBacklinkURL$>"><$BlogBacklinkTitle$></a> </dt> <dd class="comment-body"><$BlogBacklinkSnippet$> <br /> <span class="comment-poster"> <em>posted by <$BlogBacklinkAuthor$> @ <$BlogBacklinkDateTime$></em> </span> </dd> </div> <script type="text/javascript">BL_writeBacklinks('<$BlogItemNumber$>');</script> </dl> <p class="comment-timestamp"><$BlogItemBacklinkCreate$></p> </BlogItemBacklinksEnabled> </div> - Find the code for the 'links to this post' link in your post footer template code and replace it with '<a href="javascript:toggleitem('backlinks<$BlogItemNumber$>');">links to this post</a>'
- Save your template and republish your blog!





Some private data invisible.
You can trackback from you own site.
14 Comments
Ain't working for me my friend! All I get is a 'view post' link which points to 'http://blogger.com/undefined'.
I'm guessing its not meant to do that…!
No indeed! Could you send me a screenshot of the blogger post completed page after you post a post with the script running? I think it may be that I designed the script to be compatible with Johan's categorizer and may have accidentally introduced a dependancy in the process :S Also, any non-css errors you get in the javascript console on that page would help me as well.
Thanks
Yep! Up and running beautifully now! I love how the trackbacks appear instantaneously! You hit the API directly with this script?
Great Job! Thanks!
Yes, the trackback API endpoint is accessed directly by the script
Glad it's working for you now
great again. works perfectly. saw it immediately. thanks for the scripts.
when my blog is finished i will put a link to your blog
Hi there! Thanks for putting up this useful script.
I've hit a problem on my installation whereby the "View Post" hyperlink seems to be incorrect. fyi, this seems to be happening on a blog configured to post via FTP.
The "View Post" hyperlink seems to be constructed as follows:
http://{blog_url}/{ftp_path}/{blog_filename}
Shouldn't this point to the actual entry page? Or am I doing something wrong? My apologies in advance.
This causes the actual trackback output to be incorrect, resulting in a broken link to the actual post.
Having no FTP blogs to test on, I'm not surprised… I'll try to get this fixed for you, but I'll be makeing Blogger BETA (and school, which is starting up again) a priority
I just tried to ping your trackback URL using your script and got in response an UNDEFINED error. Have you encountered this before?
Unfortunately I have… just haven't had time to debug yet… I think it happened last time Blogger changed their code.
I have uploaded a new version with some bug fixes and a better error reporting system
http://userscripts.org/scripts/show/4712
Is this script work with the new "Blogger Beta"?
No, but I'm looking to upgrade it so that it will
could you please tell me how we use it . you just give me a text file and say use it but how. i don't know
@Dev you need Greasemonkey: https://addons.mozilla.org/en-US/firefox/addon/748
1 Trackbacks
A Trackback Widget for New Blogger – Ok Its a Mash…
Look, New Blogger! It's a trackback widget! It's a trackback mashup! It's a trackback hack! No, it's Super New Blogger Trackback Widget Mashup Hack!…
Reply / Comment