Create auto Expandable Posts in Blogger with no image thumbnails
Wednesday, September 2, 2009
Leave a Comment
The hack become very useful and famous to many bloggers.Many bloggers want the same hack with no image thumbnails therefore we have brought this hack of creating auto expandable posts in blogger with no images thumbnails.
This hack is also like the other hacks you have performed before.You just have to replace some block of codes with our provided block of codes and see the hack working.But remember to backup your blogger template before you perform any blogger hack.The hack begins below.
Start with signing into your blogger account.Then goto Layout Tab then Edit Html Sub tab.On the Edit Html Page check Expand Widget Templates.
Now search for <data:post.body/> and replace it with the following block of codes.
<b:if cond='data:blog.pageType != "item"'><div expr:id='"summary" + data:post.id'/>
<script type='text/javascript'>
var blogID = "YOURBLOG ID";
function retriveSummaryPost<data:post.id/>(json){document.getElementById("summary<data:post.id/>").innerHTML
= json.entry.summary.$t + "..."}
function createSummaryPost<data:post.id/>(POSTID){ var script =
document.createElement("script");
script.src = "http://www.blogger.com/feeds/"+blogID+"/posts/summary/"+POSTID+"?alt=json-in-script&callback=retriveSummaryPost<data:post.id/>";
script.type = "text/javascript"; document.getElementsByTagName('head')[0].appendChild(script);
}
</script>
<script type='text/javascript'>
createSummaryPost<data:post.id/>("<data:post.id/>");
</script>
<span class='rmlink' style='float:right'><a expr:href='data:post.url'>-->Read more...</a></span>
</b:if>
<b:if cond='data:blog.pageType == "item"'>
<div id='post_body'><data:post.body/></div>
</b:if>
After you replace the code save your Template.
In the above code you will find YOURBLOG ID.You have to replace this with your blog ID.Its really easy.

0 comments »
Leave your response!