This post explains how to add Recent Posts widget in Blogger with image thumbnails:
Yesterday, when I was working on my new Magazine style wordpress to Blogger template conversion (I'll release the template tomorrow
)
..this idea popped up in my mind. This feature is also requested so many times here.. so, here we go..
After many trial n errors, I finally did it!![]()
Features:
Thumbails to Recent Posts
Comment Count
So, let's see how to install this cool widget in your blog..
1. Sign into Blogger dashboard
2. Go to Layout » Add a gadget » html/javascript
3. Just copy and paste this code..
<script language="JavaScript">
imgr = new Array();
imgr[0] = "http://i43.tinypic.com/orpg0m.jpg";
imgr[1] = "http://i43.tinypic.com/orpg0m.jpg";
imgr[2] = "http://i43.tinypic.com/orpg0m.jpg";
imgr[3] = "http://i43.tinypic.com/orpg0m.jpg";
imgr[4] = "http://i43.tinypic.com/orpg0m.jpg";
showRandomImg = true;
boxwidth = 298;
cellspacing = 8;
borderColor = "#ffffff";
bgTD = "#000000";
thumbwidth = 40;
thumbheight = 40;
fntsize = 12;
acolor = "#666";
aBold = true;
icon = " ";
text = "comments";
showPostDate = false;
summaryPost = 40;
summaryFontsize = 10;
summaryColor = "#666";
icon2 = " ";
numposts = 5;
home_page = "http://schemar-mag.blogspot.com/";
</script>
<script src="http://myblogtalk.com/bloggertemplates/js/recentposts_thumbnail.js" type="text/javascript"></script>Explanation:
(Edit the values to fit your blog)
boxwidth - Width of the widget
cellspacing - Space between cells (default one is good)
borderColor - Border color (add the background color of your template to perfectly blend it in the template)
thumbwidth & thumbheight - Width and Height of the thumbnail (default are good)
fntsize - Font size of the title
acolor - Color of the title
aBold - you want bold titles? (true or false)
numposts - How many posts you want to show?
home_page : http://schemar-mag.blogspot.com/ (change this to your blog url)
This script is currently hosted in my server ( http://myblogtalk.com/bloggertemplates/js/recentposts_thumbnail.js ).
But, it is STRONGLY Recommended to download the script and upload to your own hosting (google for free javascripts hosts) and replace that url with yours.
4. Last but not the least.. Save the Changes.
That's it guys!
Note : Make sure you selected YES in Settings » Site Feed » Full » Allow Blog Feeds
© BloggerTricks.com








129 comments:
Great trick. This will be surely useful. I am eagerly waiting for ur template.
awesome!!! Great !!! Mind Blow!!!!
Thanks Kranthi
really this is one of the hacks that i was digging the web for it
i am happy to be the first one who but this hack on action you can see it here
www.tips-box.blogspot.comGreat work indeed
Thanks Kranthi for an excellent widget!
I am using your turn out mag template in my website http://www.writeyup.com... Will appreciate it if you could have a look at the site and suggest any changes or addons...
Thankyou once again for the template as well as the widget.
& TIPS BOX,
Sorry tips box.. rejected your another comment.. That ripway is a spam site.. I attacked by some virus from that site many times..
and you changed the blog url in the code..?
no problem man
yes i did, but in my template i don't use thumbnails hack
i am using read more hack
(span class="fullpost" - /span)
@ TIPS,
I'll post about Automatic Post summarize... check out!
Looks like the the widget on my blog. :)
http://soswitcher.blogspot.com/2009/05/blogger-host-javascript-file-for-free.html
thanks kanthi
but what about people who don't like to use automatic thumbnails like me :D and like to have this widget
@ Switcher,
Yes.. both are based on Json feeds of Blogger...
it is works fine on switcher blog
do you mean that i should change blog url in the script to my feed url ?
or it can't work on my blog.. so i just give up
@ TIPS BOX,
Can you post what you did in the forum..?
So, it's better to explain..
thank you.
A thread has been strted in the forums
http://forum.bloggertricks.com/post265.html
hey, I am not able to get the alignment of this widget correct. The widget is moving out of the box. How can I work with the placement of this widget...
It is really nice. Thank you.
However, current displayed page content it is immediately readable. So it will be very helful to modify this script in order to show previous page content...
as soon as I upload it to my server it is not working anymore. and yes, I changed the URL to my server
Excellent widget!
@ Rohit Agarwal,
Change the boxwidth value to fit your sidebar.
Very great trick thanks a lot ! I will Copy this article to my blog with or without your permission !
I added it on my Blog [in the footer]
but it's not working.
http://www.widgetblogger.co.cc
thank you, i used this on www.picchipuku.blogspot.com &
www.andhra-mirchi.blogspot.com
this is working good &
how can i host java script with google? tell me please!
Hi,
Thank you very much. Its working great.
I have a sigmirror account. But could you tell me how to download the file "http://myblogtalk.com/bloggertemplates/js/recentposts_thumbnail.js" so that i can upload it ???
Thanks in advance for your help.
Thanks, it looks good! I changed the url to my blogspot address and that works fine...
But like Chris stated above, when I saved the code down to my own .js file and uploaded that to my own DreaamHost private server at http://paulanealmooney.com/recent-posts.js and changed the script location to that -- it didn't work.So I left it with the location of your javascript server, but I want to do as you suggested and host it on my own server, but why doesn't that work?
Great job on all these themes, they really look excellent.
Thank for sharing this kranthi.. I learn much from your site.. I hope your page rank would be 9 soon... you deserve that
still waiting for the brand new magazine template you promised.
how to make it work when uploading the .js to my own server???
Is it possible to use this widget just for one certain label?
Hi guys...i have a problem regarding my blogger template...what actually i need to do if the template doesn't have an OLDER POST view at the end of the page?
thks for sharing that beautiful widget with everyone. Well To convert host javascript files into your googlesites plz read this post by switcher This guy is just great. I cam to know of him while reading bloggertricks comments. You can view his comment at the top.
I know you can't host javascript in google sites but believe this guy made it possible with a little trick
Very Gud !
But keeping Feeds is as same as dis :-)
could you pls create logo for my site
my site is LazyTechie
Can you make it so the "Widget by Blogger Tricks" is under the widget, instead of floating way out to the side? Looks a bit rough sitting there like that. Also, the comments part doesn't seem to pick up on Disqus comments, not that I really expected it would.
Hi any one knows, i use blogger, how to upload it on blogger server to use it.
Great widget. Thanks for posting! I've put it on all my sites.
krati, help me. afterdownlaoding js file and i have uploaded to ripway and also have changed url too. but it is not working. please say details. i am waiting for your reply.
Great release indeed! Anyway, the 'comments' should be below the title rather than be in the same row.
So, how do we linebreak the comment?
Oh one more thing, can it show only for specific label? This we can make this even more useful to show as Feature Posts, too!
very nice widget i applied it on my blog http://pakistan24.blogspot.com can we set it set it to show random posts instead of recent ones!
Great stuff, very useful.
But I have a question: How can I customize it?
For example, I don't want to display on the widget how many comments I have for the post.
And can I make the widget not to display last 10 posts? Meaning - to make the widget start the display from 11th post and so on.
very appreciable work ... Thanks alot
http://loan-experts.blogspot.com
Those widgets are great, ideally, I would recommend it to all.
wowwwww superb
Its Broken (NOT WORKING!) Now Until New hosting for the Javascript is found due to reaching googles page limit.
How can I remove the "comments" portion? I have my comments with Disqus and the widget is not picking it up.
Thanks for such a Superb Widget!! Beut can you provide me the same widget as random posts.....
Does this wider widget adjusted in a small widget area...of a blogger..
Thanks:P
My Blog: www.Prashsoft23.blogspot.com
it nice its my first time to visiting you,so keep writing and sharing
thanks, i used it on blog... http://kutsirong.blogspot.com/
This script is currently hosted in my server ( http://myblogtalk.com/bloggertemplates/js/recentposts_thumbnail.js ).
But, it is STRONGLY Recommended to download the script and upload to your own hosting (google for free javascripts hosts) and replace that url with yours.
I am completely confused about this! Please help!
Thanks i am searching for such a trick for long time.
Good job.
How can I put a background-image in borderColor?
Thanks.
Thank very much.
Very good articles...... keep going would help people like me
http://data4experts.blogspot.com
Like it sooooooo much..
nice............free and full
Thank you.
thanks ya... :D
I need some help, your widget was working fine for a few days and now it only shows "Widget by Blogger Tricks." How can I fix this? http://onPause.org
how to change the background color? what is the code for transparent?
wow.. great.. thx lots.. it's awesome widget... i've been using it...
Thank's
nice post, thx buddy :). link xchange 'n don't forget to visit my blog. o.k
wow admin this great info thank's my friend
I have tried this widget but the problem is that the script cant read the images in my posts. it keeps on showing the NO IMAGE picture even though my posts has images on them. What might be causing this problem?
http://hubtvonline.blogspot.com
SUPERB WIDGET CAN YOU SAY HOW TO REMOVE THE COMMENTS FROM THIS WIDGET
Nice widget. Thanks 4 you. :)
Thanks for it...!! all blogger help me to make good blog visit me www.salsabilonline.blogspot.com
nice trick
Very Nice fren.....!
great, thanks for the widget
i was try, but it's looking not good for my blog, because my recent post to much
Hi Kranthi , I'm afraid that I will be joining in the ranks of all the other users here on your blog & say this : First of all , Thank you for this great code ( btw : I saw it copied by 30 other users and posted on their pages , with the only change being : the uploaded the .js file onto their own server ) however Kranthi , I will tell you that I have been fighting with this code practically all night . The thing is , I followed your advice & uploaded the .js file onto my own server : the outcome ? The code ( widget) didnt work :( so I searched & searched for a solution & I finally considered just using your .js file & the code as it is . Final result : The code /widget now works ! I dont know what to say , but I am keeping your code and Im not touching it now . Again , thank you for the great code , have a great summer ahead & wishing you much success within all of your life endeavors :)
nice tips.... thx... ^^
Your Tips Are really Helpful For New Blogger.
From
http://www.mydigitalsite.blogspot.com
Thanks so much!! What a great script!
Working fine in my blog but problem is "Widget by Blogger Tricks" this text displays in side of the widget not below of that....
funny scraps
A blog for all about humor and funny scraps….
thanks its informasion......
it's a great widget, however, i'm using haloscan for the comments on my blog, and the comments don't reflect on the widget. how do i remove the comments then? and another thing is, i have absolutely no idea how to upload the script on my server, so i'm using it as is for the moment. let me know if you don't approve of it.
many thanks!
Nice Trick Bro ...
a good post, I wil try it, tahnk,s
thanks, this is good widget i like
thanks
Thank you very much for dropping by and your lovely coment you are welcome any time
Check this Recent Post with thumbnails widget Recent Post with Thumbnail Widget
Do you know how to make breacking news (recent post) widget, like this one: http://www.wpnewspaper.com/ ? Please, it is very important to me! Thenks.
numpang nyimak juragan
thanks for great widget, i use one in my blog
thank you, friend. aziza (Indonesian people) :)
i like it very much!!! how can you do that?
Thank you very much
Awsome! Makasih Sob!
thaks for this your technik blogging, i will try now, okey thaks u very much
thx i use it!!!!
anyway can you help me?
i want to make [+/-]read more like this blog http://valenmusic.blogspot.com/
can u help me for javascript code???
thx b4
gue nggak ngerti b.inggris..
he,he.....
hey adding this widget wont it effect the SEO?
Just combine this feature with Carouse Slideshow from dynamicdrive.com, it's look nicer and interesting (from my point of view :) ), just look at one of my blog:
http://soccerblogvideo.blogspot.com/
I love this widget!!!
its not working..................???????????????????
Hi kranthi i just need your one help...
I saw that you have added page navigation to your site. i also try to add the same but the problem is that when i click page:2 it goes on page:5 this problem is with many peoples but your site does not have this problem...so can u tell me the solution of that or the site from where you have got this non error page navigation code.
Thanks
Regards
http://hunt4download.blogspot.com/
I love this widget!!!
I'm using this on my blog. I made a few adjustments and it's great. I will have to make sure each of my posts have an image so that the widget will look even better. Thanks so much! Your're good!
Please take a look at it: http://starpinay.blogspot.com
Great trick, i will try it!
Great tricks dear!! i personally love your blog....
wonderfull widget.....blog seem minimalist
Thanks a lot. I like this utility
i use falkners templet. i am a podcaster. i post my blog on embed code for playing song. but sontimes i see no thubnail. i want to remove it. how can do it. please help me any one. give me solution at humhainaapke@gmail.com
thank you
thanks! i use it!
I am having a problem where some of the automatic thumbnails are being made too big for their box? any ideas
Is this widget crawl-able by SE spiders ?
there is no doubt...
I'll try this.. thanks a lot..
But still problem with comment box @ pepper templte..
thanx ya...
very great tutorial, thanks to share
Free Blogger templates
i made it yeeeeeeiiiiiii
Thanks!
This type of widgets are already there with blogger. Just add the gadget from blogger- Add Gadget - More gadgets and browse for one.
wow nice, i will try it.
great, thx for share
thanks a lot for this widget.......
Gracias Saludos desde Puebla, Mexico
Nice Trick
thanks for this trick...
very nice..thanks
Thanks for posting!
nice blog
great post
Thanks a lot
When I change the webpage to my blog address it automatically moves this widget to the bottom but leaves the title up on top.
jelly-pop.blogspot.com
Thanks you for this trick
hey it good... but i need label vice updates .. this is the latest updated of blog... can u please try to develop label vice updates
wow nice trick dude !!
hi...great post...thank you for shraing
Hi,..This Nice Tips and Thanks U..
Thanks,my blog be beautifully. . . http://www.giswa.co.cc
nice sharing...
Post a Comment