This nice trick will automatically create post summaries with thumbnails. You don't need to add any extra code in every blogger post that you make.
Tutorial Updated : Jan 1, 2013
1.Go to "Template" --> "Edit HTML" of your blog.
2.Click on "Expand Widget Templates"
3.Scroll down to where you see </head> tag.
4.Now add below code just before </head> tag.
<script type='text/javascript'>
summary_noimg = 250;
summary_img = 200;
img_thumb_height = 150;
img_thumb_width = 150;
</script>
<script type='text/javascript'>
//<![CDATA[
function removeHtmlTag(strx,chop){
if(strx.indexOf("<")!=-1)
{
var s = strx.split("<");
for(var i=0;i<s.length;i++){
if(s[i].indexOf(">")!=-1){
s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length);
}
}
strx = s.join("");
}
chop = (chop < strx.length-1) ? chop : strx.length-2;
while(strx.charAt(chop-1)!=' ' && strx.indexOf(' ',chop)!=-1) chop++;
strx = strx.substring(0,chop-1);
return strx+'...';
}
function createSummaryAndThumb(pID){
var div = document.getElementById(pID);
var imgtag = "";
var img = div.getElementsByTagName("img");
var summ = summary_noimg;
if(img.length>=1) {
imgtag = '<span style="float:left; padding:0px 10px 5px 0px;"><img src="'+img[0].src+'" width="'+img_thumb_width+'px" height="'+img_thumb_height+'px"/></span>';
summ = summary_img;
}
var summary = imgtag + '<div>' + removeHtmlTag(div.innerHTML,summ) + '</div>';
div.innerHTML = summary;
}
//]]>
</script>
Note : You can change below values as your choice.
summary_noimg : number of character to display when there is no image.
summary_img : number of character to display when there is an image.
img_thumb_height : hight of the post thumbnails.
img_thumb_width : width of the post thumbnails.
summary_img : number of character to display when there is an image.
img_thumb_height : hight of the post thumbnails.
img_thumb_width : width of the post thumbnails.
5.Now Scroll down to where you see this:
<data:post.body/>
6.Replace above code with below code.
<b:if cond='data:blog.pageType != "static_page"'>
<b:if cond='data:blog.pageType != "item"'>
<div expr:id='"summary" + data:post.id'><data:post.body/></div>
<script type='text/javascript'>createSummaryAndThumb("summary<data:post.id/>");</script>
</b:if>
</b:if>
<b:if cond='data:blog.pageType == "item"'><data:post.body/></b:if>
<b:if cond='data:blog.pageType == "static_page"'><data:post.body/></b:if>
<b:if cond='data:blog.pageType != "static_page"'>
<b:if cond='data:blog.pageType != "item"'>
<div style='float:right;margin-right:10px;margin-top:5px;'>
<a expr:href='data:post.url'>Read More</a>
</div>
</b:if>
</b:if>
7.Now save your template and you are done.
Good response in return of this question with firm arguments and describing all about that.
ReplyDeleteLook at my web page; como engrossar o penis
I like it when people get together and share ideas. Great blog,
ReplyDeletecontinue the good work!
my blog: http://comoaumentarpeniano.com/xtrasize.htm
You really make it seem so easy together with your presentation however
ReplyDeleteI in finding this topic to be actually something which I
believe I would by no means understand. It kind of feels too complicated
and very extensive for me. I am taking a look forward on your next post, I
will attempt to get the dangle of it!
Look at my weblog ... como fazer o penis crescer
May I simply say what a comfort to discover someone that really knows what they are discussing on the web.
ReplyDeleteYou certainly understand how to bring an issue to light and make it important.
More people have to look at this and understand this side of the story.
I was surprised that you aren't more popular since you certainly possess the gift.
Also visit my web blog - http://aumente-seu-penis.com/
Hello! Do you use Twitter? I'd like to follow you if that would be ok. I'm absolutely enjoying your blog and look forward to new updates.
ReplyDeleteHere is my website: http://comoaumentarpeniano.com/
Hello, i think that i saw you visited my weblog so i came to “return the favor”.
ReplyDeleteI am attempting to find things to enhance my site!I suppose its ok to use some
of your ideas!!
my homepage ... sex kamerki
Great goods from you, man. I have understand your stuff previous to and you're just too excellent. I really like what you've acquired here, certainly like what
ReplyDeleteyou're stating and the way in which you say it. You make it entertaining and you still care for to keep it smart. I can not wait to read much more from you. This is actually a wonderful website.
my blog ... Homepage
Today, I went to the beach with my children. I found a sea shell
ReplyDeleteand gave it to my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She placed
the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear.
She never wants to go back! LoL I know this is totally off topic but I had
to tell someone!
Take a look at my webpage :: tamanho penis
You could definitely see your enthusiasm within the
ReplyDeletearticle you write. The arena hopes for more passionate writers
like you who are not afraid to say how they believe. All the
time follow your heart.
Also visit my site Recommended Webpage ()
Croupier utbildning specifikt för kasinot miljö
ReplyDeleteAlso visit my blog post: casino
Very good article! We are linking to this particularly great article on our website.
ReplyDeleteKeep up the great writing.
my web-site; Forfatters eksterne webside
You can certainly see your skills within the work you write.
ReplyDeleteThe world hopes for more passionate writers like you who are not afraid to say how they
believe. At all times go after your heart.
My web site; alargamiento de pene
Hello there I am so delighted I found your weblog, I really found you by mistake,
ReplyDeletewhile I was researching on Askjeeve for something else, Nonetheless I am here now and would just
like to say thank you for a marvelous post and a all round exciting blog (I also love the theme/design), I don't have
time to read through it all at the minute but I have book-marked it and also added your
RSS feeds, so when I have time I will be back to read
a great deal more, Please do keep up the superb work.
My blog ... xtrasize funciona
Hello there! Do you know if they make any plugins to protect against hackers?
ReplyDeleteI'm kinda paranoid about losing everything I've worked hard on.
Any tips?
my site; alargar el pene
Greetings from California! I'm bored to death at work so I decided
ReplyDeleteto browse your site on my iphone during lunch break. I love the information you provide here
and can't wait to take a look when I get home. I'm shocked at
how quick your blog loaded on my mobile .. I'm not even using WIFI, just 3G ..
Anyways, good site!
Look at my blog post ... xtrasize
I visited many blogs except the audio quality for audio songs present at this web site is really
ReplyDeletewonderful.
Feel free to surf to my page como aumentar o penis
This piece of writing will assist the internet people for setting
ReplyDeleteup new website or even a weblog from start to end.
My web site aumento peniano
whoah this blog is great i really like reading your posts.
ReplyDeleteStay up the great work! You already know, many persons are
hunting around for this information, you could
help them greatly.
My weblog :: xtrasize
Spot on with this write-up, I absolutely think this site needs a
ReplyDeletelot more attention. I'll probably be returning to
read through more, thanks for the information!
Check out my blog: jak powiększyć penisa
Excellent way of explaining, and good article to take facts regarding my presentation subject, which
ReplyDeletei am going to convey in institution of higher education.
Check out my page; netkominki.Pl
Hitta den bästa online kasino för din trygg och säker Play Hitta den bästa online kasino för din trygg och säker
ReplyDeletePlay Hitta den bästa online kasino för din trygg och säker Play
my blog post casino
Grown up bowel incontinence is zigzag causes sufferers effect issues profit tushy intermediary embarrassment.
ReplyDeletenearly is uniformly regaining benefit confidence. Bowel Incontinence top-drawer washable incontinence staples absorbent brink pads in the final 5
litres for liquid, position pads, wheelchair pads range washable incontinence die for
payday both advantage women.
my weblog; banta (viktminskning24.se)
ReplyDeleteAlso visit my site ... greita paskola (jusikclub.com)
Couldn’t agree far more! at your success
ReplyDeleteTake a look at my website :: New York escorts