-
New Backlinks Hack
- body
-
My previous backlinks hack was a quick fix to allow backlinks on the main page, since I wanted to do that. It was, however, kind of ugly, complicated, and like the 'normal' backlinks code broke XML well-formedness. I have, therefore, come up with a new hack that does the exact same thing, but is faster, easier, and XHTML valid. The new steps are below :
- Enable backlinks on your blog — an obvious, but necessary, step
- Put this code in the <head> section of your blog template:
<script type="text/javascript">
//<![CDATA[function toggleitem(postid,linkid,newtxt,displaytype) {
if(!displaytype) {displaytype = 'block';}
var whichpost = document.getElementById(postid);
if (whichpost.style.display != "none") {
whichpost.style.display = "none";
} else {
whichpost.style.display = displaytype;
}
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:
<BlogItemBacklinksEnabled>
<ItemPage><div style="display:block;" id="backlinks"></ItemPage>
<MainOrArchivePage><div style="display:none;" id="backlinks<$BlogItemNumber$>"></MainOrArchivePage>
<h4>Backlinks:</h4>
<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$>"></script>
<script type="text/javascript">
//<![CDATA[
for(var i = 0; i < BL_Backlinks.length; i++) {
document.write('<dt class="comment-title">');
document.write('<span class="comment-toggler"> </span>');
document.write('<a href="'+BL_Backlinks[i]["BlogBacklinkURL"]+'">'+BL_Backlinks[i]["BlogBacklinkTitle"]+'</a>');
document.write('</dt>');
document.write('<dd class="comment-body">'+BL_Backlinks[i]["BlogBacklinkSnippet"]);
document.write('<br />');
document.write('<span class="comment-poster">');
document.write('<em>posted by '+BL_Backlinks[i]["BlogBacklinkAuthor"]+' @ '+BL_Backlinks[i]["BlogBacklinkDateTime"]+'</em>');
document.write('</span>');
document.write('</dd>');
}//end for
//]]>
</script>
<p class="comment-timestamp"><a class="comment-link" href="javascript:BlogThis();">Create a Link</a></p>
</div>
</BlogItemBacklinksEnabled> - Find the code for the 'links to this post' link in your post footer template code and replace it with '<a href="<$BlogItemPermalinkUrl$>#backlinks”; onclick="toggleitem('backlinks<MainOrArchivePage><$BlogItemNumber$></MainOrArchivePage>');return false;">links to this post</a>'
- Save your template and republish your blog!


You can trackback from you own site.
55 Comments
this doesn't work in firefox. at least on my computer it doesn't unless i'm doing something wrong. please help! if u can, look at my site: http://www.thelastnerve.com. it works great in ie but not firefox.
i think i fixed it. i excluded the ' mark around the url which replaces the "links to this post".
those marks, ' before and ' after make a bid dif in firefox but not in ie. maybe others are confused of this also. thanks for the hack.
Oh… I thought it would be obvious that the quotation marks are meant to deliniate where the code begins and ends — they are not part of the code!
i was confused because you used no marks to deliniate the other parts of the code.
i know this is a "technical" blog but i'm not a web designer, coder, etc. just a normal blogger who tried this as an alternative to blogger's backlinks, and i truly thank you for the hack…
for some reason the code is still working on a "sometimey" basis in firefox. sometimes I see the backlinks, sometimes not, but i see them all the time in IE. have any idea why this could be happening?
great hacks! i am looking to have the "0trackbacks / 0 backlinks" on each post. is this the correct hack to do that? if so, then when i installed it, there are no changes to my blog.
thanks for the help
" REL="nofollow">best home make money online opportunity work " REL="nofollow">kit mesotherapy " REL="nofollow">anime download free mp3 song " REL="nofollow">nexium reaction " REL="nofollow">norco state prison
" REL="nofollow">40mg cap nexium " REL="nofollow">norco withdrawal " REL="nofollow">lap band obesity surgery " REL="nofollow">affiliate online broker " REL="nofollow">online learning college degree program
" REL="nofollow">cipro ciprofloxacin drug information " REL="nofollow">almighty cleanse cleanse colon " REL="nofollow">college student credit card " REL="nofollow">absolutely free credit report no trial " REL="nofollow">what is cyclobenzaprine
" REL="nofollow">home loan refinance calculator " REL="nofollow">gambling guide horse racing " REL="nofollow">compound hydrocodone mor syrup " REL="nofollow">injury settlement work " REL="nofollow">free medical insurance quote
" REL="nofollow">fast cash loan rhode island " REL="nofollow">body building flexeril " REL="nofollow">free online forex trading course " REL="nofollow">free generic viagra samples " REL="nofollow">verseo epen permanent hair removal system
" REL="nofollow">man parfum " REL="nofollow">payday loans ontario " REL="nofollow">guaranteed instant reply personal loan " REL="nofollow">results of herbal phentermine " REL="nofollow">pregnancy propecia
" REL="nofollow">nashville eyelid surgery " REL="nofollow">fast cash georgia loan " REL="nofollow">fact flexeril " REL="nofollow">charting forex forex forex theinterbank.com trading trading " REL="nofollow">generic viagra pay cod
" REL="nofollow">adware removal remover spyware " REL="nofollow">stomach exercise for weight loss " REL="nofollow">generic online tenuate " REL="nofollow">hypoechoic nodule thyroid " REL="nofollow">day next tramadol
" REL="nofollow">generic tenuate " REL="nofollow">treatment for thyroid problem " REL="nofollow">i linkdomain tramadol ultram.com " REL="nofollow">benadryl neurontin zocor ultracet thyroid " REL="nofollow">purchase valium
" REL="nofollow">male pubic hair removal " REL="nofollow">cost employed health insurance low self " REL="nofollow">business can from home start " REL="nofollow">equity existing home loan refinance " REL="nofollow">free virtual horse racing
" REL="nofollow">20 advice caribbean travel " REL="nofollow">chicago used car finance " REL="nofollow">car car europe hire rental " REL="nofollow">article on celebrex " REL="nofollow">cheap city flight new york
" REL="nofollow">skelaxin " REL="nofollow">soma " REL="nofollow">sports betting " REL="nofollow">spyware removal " REL="nofollow">stomach
" REL="nofollow">adipex shipped cod " REL="nofollow">home air purifier " REL="nofollow">ambien sleeping " REL="nofollow">refinance my new car " REL="nofollow">bad consolidation credit debt equity home loan
" REL="nofollow">las vegas car finance " REL="nofollow">cheap rental car in portugal " REL="nofollow">celebrex cancer trial " REL="nofollow">cheap flight from london to australia " REL="nofollow">cheap airline ticket and hotel
" REL="nofollow">addiction drug soma " REL="nofollow">sports betting casino sports betting " REL="nofollow">totally free spyware removal " REL="nofollow">nausea stomach upset " REL="nofollow">line tenuate
" REL="nofollow">augmentation breast city kansas " REL="nofollow">boston breast reconstruction " REL="nofollow">texas brow lift " REL="nofollow">high from snorting buspar " REL="nofollow">span class highlighted caribbean span travel travel
" REL="nofollow">consolidation debt free nonprofit " REL="nofollow">dermabrasion georgia " REL="nofollow">day supply didrex cheap " REL="nofollow">beach discount hotel va virginia " REL="nofollow">distance learning project management
" REL="nofollow">drug skelaxin " REL="nofollow">diego in san soma " REL="nofollow">basketball sports betting " REL="nofollow">free removal remover software spyware " REL="nofollow">banding stomach surgery toronto
" REL="nofollow">broker estate online real school " REL="nofollow">distance learning online college " REL="nofollow">online gambling uk " REL="nofollow">online pharmacy sale viagra " REL="nofollow">free roulette tip winning
" REL="nofollow">mesotherapy texas " REL="nofollow">free download indonesian mp3 song " REL="nofollow">nexium cheapest " REL="nofollow">corona norco teacher association " REL="nofollow">group obesity support surgery toronto
" REL="nofollow">does in long lortab stay system " REL="nofollow">make money being online " REL="nofollow">mesotherapy side effects " REL="nofollow">top mp3 download site " REL="nofollow">cheap online nexium
" REL="nofollow">obesity surgery chicago " REL="nofollow">online business broker " REL="nofollow">video game design degree college online " REL="nofollow">gambling casino online " REL="nofollow">online pharmacy medication
" REL="nofollow">adderall online pharmacy " REL="nofollow">roulette tente vendre " REL="nofollow">online pokemon card trading " REL="nofollow">parfum perfume " REL="nofollow">same day payday loan
" REL="nofollow">direct car finance uk " REL="nofollow">car cheap discount free free free rental " REL="nofollow">new jersey vioxx celebrex " REL="nofollow">cheap flight to france uk " REL="nofollow">air cheap europe in ticket
" REL="nofollow">credit hint repair report " REL="nofollow">what is cyclobenzaprine used to treat " REL="nofollow">card consolidation credit debt loan relief " REL="nofollow">micro dermabrasion ontario " REL="nofollow">didrex and dose
" REL="nofollow">bad credit home purchase loan " REL="nofollow">credit fast fix report " REL="nofollow">cyclobenzaprine snort " REL="nofollow">consolidation debt equity home without " REL="nofollow">loreal dermabrasion kit
" REL="nofollow">ban diet ephedra following pill " REL="nofollow">eyelid surgery california " REL="nofollow">cash fast scam scams " REL="nofollow">contraindications flexeril " REL="nofollow">forex trading free training
" REL="nofollow">remedy bloated stomach " REL="nofollow">tenuate vaniga " REL="nofollow">thyroid disease and hair loss " REL="nofollow">no overnight prescription tramadol " REL="nofollow">what is ultracet pill
" REL="nofollow">tenuate " REL="nofollow">thyroid " REL="nofollow">tramadol " REL="nofollow">ultracet " REL="nofollow">valium
" REL="nofollow">free shipping tenuate " REL="nofollow">cause low thyroid " REL="nofollow">120 cod tramadol " REL="nofollow">is ultracet addictive " REL="nofollow">2005 by january posted valium
" REL="nofollow">zyrtec " REL="nofollow">acne microdermabrasion picture scar " REL="nofollow">buy adipex p " REL="nofollow">kenmore air purifier " REL="nofollow">ambien overnight
" REL="nofollow">cipro std " REL="nofollow">internal colon cleansing " REL="nofollow">credit equity line " REL="nofollow">trans union experian and equifax credit report " REL="nofollow">what is cyclobenzaprine used to treat
" REL="nofollow">legal ephedra " REL="nofollow">eyelid surgery lafayette " REL="nofollow">ways to make fast cash " REL="nofollow">contraindications flexeril " REL="nofollow">forex news trading
" REL="nofollow">information product zocor " REL="nofollow">cheap zovirax " REL="nofollow">reactine zyrtec " REL="nofollow">acne mederma scar treatment " REL="nofollow">adipex pill
" REL="nofollow">drug and alcohol class " REL="nofollow">trim spa ephedra free " REL="nofollow">kansas city eyelid plastic surgery " REL="nofollow">fast cash loan nevada " REL="nofollow">5 flexeril mg
" REL="nofollow">information ultracet " REL="nofollow">use valium " REL="nofollow">herbal viagra retailers " REL="nofollow">alimentos con k vitamin " REL="nofollow">wellbutrin info
" REL="nofollow">avis car ireland rental " REL="nofollow">drug side effects celebrex " REL="nofollow">cheap flight uk amsterdam " REL="nofollow">airline cheap plane ticket " REL="nofollow">canada chin in surgery
" REL="nofollow">laser photo resurfacing " REL="nofollow">information levitra " REL="nofollow">lipitor pain treatment " REL="nofollow">loan maryland mortgage " REL="nofollow">generic lortab picture
" REL="nofollow">canada shop vitamin " REL="nofollow">information about wellbutrin xl " REL="nofollow">drug interaction xanax " REL="nofollow">zenegra drug " REL="nofollow">coenzyme q10 zocor
" REL="nofollow">cheap city flight new york " REL="nofollow">cheap air plane ticket to mexico " REL="nofollow">double chin reduction surgery " REL="nofollow">cipro and pregnancy " REL="nofollow">tony colon
" REL="nofollow">sports book betting " REL="nofollow">free lavasoft removal software spyware " REL="nofollow">exercise stomach tighten " REL="nofollow">buy tenuate " REL="nofollow">thyroid removal surgery
" REL="nofollow">atlanta dermabrasion " REL="nofollow">didrex prescription overnight shipping " REL="nofollow">discount hotel room " REL="nofollow">master degree distance learning online education " REL="nofollow">sample drug test result
" REL="nofollow">d12hour zyrtec " REL="nofollow">acne laser portland scar treatment " REL="nofollow">buy adipex line " REL="nofollow">air humidifier ionic lamp purifier " REL="nofollow">ambien.com free
" REL="nofollow">buspar and weight gain " REL="nofollow">transportation caribbean commuting travel " REL="nofollow">business car finance " REL="nofollow">enterprise car rental rate " REL="nofollow">celebrex cap
" REL="nofollow">affiliate internet make money online program " REL="nofollow">mesotherapy result " REL="nofollow">download free latin mp3 music " REL="nofollow">nexium price " REL="nofollow">norco animal hospital
" REL="nofollow">gland symptom thyroid underactive " REL="nofollow">buy now tramadol " REL="nofollow">ultracet and sle " REL="nofollow">buy online valium " REL="nofollow">viagra race photos june
" REL="nofollow">credit card debt consolidation services " REL="nofollow">neutrogena dermabrasion " REL="nofollow">best didrex price " REL="nofollow">atlantic city discount hotel " REL="nofollow">college degree distance learning
" REL="nofollow">investing money retirement serious straight talk " REL="nofollow">delivery ionamin overnite " REL="nofollow">penny keno " REL="nofollow">lasik laser eye surgery boston " REL="nofollow">laser picture resurfacing skin