Monday, January 11, 2010

Recent posts with thumbnail for each labels

1/ Activate Full Feed in Blogger. Go to Settings > Site Feed > Allow Blog Feeds > choose Full in dropdown menu. Select Full will syndicate the full content of your post. Reader can read all your post in feed without visit your site. If you don't do this step, Recent Post can not display right thumbnail of your post, and display random thumbnail.

2/ Go to Layout > Page Elements and Add a widget, then paste this code:

<script type="text/javascript">

imgr = new Array();

imgr[0] = "";

imgr[1] = "";

imgr[2] = "";

imgr[3] = "";

imgr[4] = "";

showRandomImg = true;

tablewidth = 248;

cellspacing = 1;

borderColor = "#30a1db";

bgTD = "#fff";

imgwidth = 70;

imgheight = 70;

fntsize = 12;

acolor = "#000";

aBold = true;

icon = " • ";

text = "cm";

showPostDate = false;

summaryPost = 50;

summaryFontsize = 12;

summaryColor = "#000";

icon2 = " → ";

numposts = 10;

rc_feedLink = "";


<script type="text/javascript" src=""></script>

imgr[0] = random images url.

showRandomImg = true if you want use random images, false if no.

tablewidth = width of the widget.

cellspacing = Space between cells (default one is good)

borderColor = order color (add the background color of your template to perfectly blend it in the template)

bgTD = background color of widget.

imgwidth and imgheight = width and height of thumbnail.

fntsize = font size.

acolor = color of the title.

aBold = do you want to bold title? (true or false)

icon = change icon before title. Can leave blank.

text = text stand for comment (may be cm, comments, comment(s) etc.)

showPostDate = do you want to show post date (true of false).

summaryPost = amount of characters of summary.

summaryFontsize = font size

summaryColor = font color.

icon2 = icon before summary, can leave blank

numposts = amount of post display in widget.

rc_feedLink = Your blog feed url. Default is If you want only show recent post from specific label, you need change url to: Ex: Use to show recent posts from label Video.

<script type="text/javascript" src=""></script>: this javascript is stored in this site. 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.



Post a Comment

Subscribe to Post Comments [Atom]

<< Home