I have before posted on Recent Posts and recent comments widget also,you can check them too if you want them.
Now let see how to install this hack and thanx to marianne to make this hack look very simple and show it in many ways to adjust the blogger template.
Now how to install it.
Just not waste time,first download these file from here which contains scripts to make your widget work.
Goto Blogger Layout > Page Elements > Add A gadget > Html/Javascript
And add the below codes:-
<script language="JavaScript">
imgr = new Array();
imgr[0] = "http://YOURIMAGEURL.jpg";
imgr[1] = "http://YOURIMAGEURL1.jpg";
imgr[2] = "http://YOURIMAGEURL2.jpg";
imgr[3] = "http://YOURIMAGEURL3.jpg";
imgr[4] = "http://YOURIMAGEURL4.jpg";
showRandomImg = true;
tablewidth = 248;
cellspacing = 8;
borderColor = "#ffffff";
bgTD = "#ffffff";
imgwidth = 118;
imgheight = 100;
fntsize = 12;
acolor = "#666";
aBold = true;
icon = " ";
text = "comments";
showPostDate = false;
summaryPost = 50;
summaryFontsize = 11;
summaryColor = "#666";
icon2 = " ";
numposts = 5;
home_page = "http://YOUR_BLOG_NAME.blogspot.com/";
</script>
<script src="http://YOUR_UPLOADED_SCRIPT_URL/recentposts_thumb.js" type="text/javascript"></script>
You have to change the bold links above in codes to make it work.
Now i will explain all the parameters in the script what it does.
- Lines
imgr [0] = "http://YOURIMAGEURL.jpg";
contains link to the default image, you can replace this link with your photos, you can also add many others by creating additional lines imgr [5 ]=..., imgr [6] = ..... Try to select the image size small to have such severe widget.If you will not use image here the widget will automatically extract first image from your post and show up the thumbnail and if it doesn't contain any image it will not show up any image so you can define your image url in this line.
- The showRandomImg = true; that is enabled does the random image default image if you want existing order, please change true to false.
- 4 lines
tablewidth = 248;
cellspacing = 8;
borderColor = "#ffffff";
bgTD = "#ffffff";
in turn is the width of the widget (pixels) between cells, border color of widget and widget's background color.
- 2 lines
imgwidth = 118;
imgheight = 100;
is the width and height of the image thumbnail.
- 4 lines
fntsize = 12;
acolor = "#666";
aBold = true;
icon = " ";
turn is: Font Size of title, title color, turn the bowl bold title (if you want the shortcut to the true false), the icon before the title (if you do not want the icon for the empty value).
- Line
text = "comments";
text of the report you want to comment now (for example: text = "reviews"). If you do not want the number of comments for each post, set text value = "no".
- Line
showPostDate = false;
say that the current date was off. Please replace false with true if you want the date.
- 4 lines
summaryPost = 50;
summaryFontsize = 11;
summaryColor = "#666";
icon2 = " ";
in turn is the number of characters like the description for each post (if you want to disable, set the value is 0), Size of the Font described, description and color icon of the previous description.
- Line
numposts = 5;
ask you to report the number of items will appear on the widget, for example above is 5.
- Line
home_page = "http://www.anshuldudeja.com/";
ask you to report address blog currently use.Do not forget it is important to seal against your url with (/) at the end of the url.
Now this was all customization part if you not happy with looks of it and can do it yourself.
Now the thing just important is the script to use in codes as i have made that place red color bold in codes so as to tell where to add the script.
As i have told you at the beggining to download the scripts,if you haven't downloaded,download it from here.
After downloading you will get zip file,extract it and you will be given nine .js files or 9 scripts.
All nine script does different work.What type of work they will do i am writing below and how to know which script you have to use for which purpose,you just need to read the name of the file,you will come to know for which purpose it is after reading the below functions of nine scripts.
1)Recent posts in horizontal Position showing only Thumbnails.
2)Recent posts in Vertical Position showing only Thumbnails.
3)Recent posts in Vertical Position showing Thumbnails With Tilte And Description With Comments.
4)Recent posts in Horizontal Position showing Thumbnails With Tilte And Description With Comments.
5)Recent posts in Vertical Position showing Thumbnails With Tilte And Description without Comments.
6)Recent posts in Horizontal Position showing Thumbnails With Tilte And Description without comments.
7)Recent posts in Vertical Position showing Thumbnails With Tilte And Description from any Particular Label.
8)Recent posts in Horizontal Position showing Thumbnails With Tilte And Description from any Particular Label.
9)Recent posts in Horizontal Position showing Thumbnails With Tilte And Description in between Thumbnails instead of below thumbnail.
These are the only nine ways you can use this script.Just download the scripts and with the name of file you will come to know about its function and can use that script.
Just upload the script you want to use to your server and replace the url in bold red in above codes with your url and dont forget to change your blog name also which is also on bold back in above codes.If you dont know where to upload this script just read on the list from here.
As above i have told you about the label script also,i.e script to extract thumbnails from your any particular category you want.If you using widget for any category of yours.Just use the below codes in place of above i provided.
<script language="JavaScript">
imgr = new Array();
imgr[0] = "http://YOURIMAGEURL.jpg";
imgr[1] = "http://YOURIMAGEURL1.jpg";
imgr[2] = "http://YOURIMAGEURL2.jpg";
imgr[3] = "http://YOURIMAGEURL3.jpg";
imgr[4] = "http://YOURIMAGEURL4.jpg";
showRandomImg = true;
tablewidth = 248;
cellspacing = 8;
borderColor = "#ffffff";
bgTD = "#ffffff";
imgwidth = 118;
imgheight = 100;
fntsize = 12;
acolor = "#666";
aBold = true;
icon = " ";
text = "comments";
showPostDate = false;
summaryPost = 50;
summaryFontsize = 11;
summaryColor = "#666";
icon2 = " ";
numposts = 5;
home_page = "http://YOUR_BLOG_NAME.blogspot.com/";
label = "tagname";
</script>
<script src="http://YOUR_UPLOADED_SCRIPT_URL/recentposts_thumb.js" type="text/javascript"></script>
The difference in both code is just of red code as i have added that is label line,just change the tagname with your category name,then it will work for your category and please don't forget to change the blog url and script url in these codes.You can't use only thumbnails for your category as post tile and description will also be shown.
I hope you will love this widget.Have A nice Day !



21 comments:
I have tried to use this widget. But I'm having some problems regarding the thumb nails. Even tho my posts has pictures on them. it still shows the Random pictures that were listed on the code. And I have tried a similar widget like this one. But its saying that No Image.
here is my site http://hubtvonline.blogspot.com
@dennis if you will use image urls in script then only they will show up.If you have images in your posts i suggest not to define the images url in script.
I think I got it working :) my feed details is not in full so the picture is not showing. By the way is there any way to show it in 2 or 3 lines? so i can show more posts?
very great, master!!
nice to meet u
easyblogtrick.
Hi Anshul
I was used this on my site and put the number of posts to 10 i.e. the number of posts that i have.
numposts = 10;
But only first 7 come in the block and the 8th one breaks the page and goes out and shows half out of the boundaries of page.
Is there a way to wrap it and put a button for scrolling like u used in the carousels
@ matt might be yu not having image for that one.
it works for me thanks
http://marianriverainfo.blogspot.com/
i have images in all posts. i made a normal scrollbar for it.
i was thinking is there a way only to show the buttons and not the scrollbar as there r 2 buttons in carousels to scroll left and right
I have find a quick and easy to install and customize Recent Post Widget with thumbnails. You can install it in minute with hassle-free complicated manual code installation.
You may look at this link for more information : http://www.engadgeteer.com/2009/07/recent-posts-widget-with-thumbnails.html
Anshul.. thanks a bunch for the codes..
It does look great on my blog... check it out.. http://lenn0n.blogspot.com/
i tried to make a recednt post from certain category on my blog. the label name is SpotLight, but its not working? I tried using the 'vertical_with_any_label' amd the 'horizontal_with_any_label'. But none is working. Can you figure out ehy?
theyouthcorner-bali.blogspot.com
I have find a quick and easy to install and customize Recent Post Widget with thumbnails. You can install it in minute with hassle-free complicated manual code installation.
You may look at this link for more information : http://www.techgeeze.com/2009/07/recent-posts-widget-with-thumbnails.html
I like the way you help other bloggers. Your writing tutorials with no HIDDEN agenda. Other widgets have "widgets by JLJL" or "grab this JJLJLK". Those are clutters. Thanks man. I got it working.
Hi, is there a way to add a "No Image" thumbnail to posts that don't contain any images?
Thanks!
thanks sooo much soo good!! you rock!!
The best post about this topic i´ve seen in the web.
the explanation is really helpful
CONGRATS.
All the files are in js script. Is there any css script for "Recent posts in Horizontal Position showing Thumbnails With Tilte And Description without comments" that I can use on blogspot
@planet no.
good day anshul, how can i add hover title on it? i know i need to add it inside the js file but the problem is i dont know where it should be placed.
Thanks for the widget mate, it's great. I just have a problem with the posts with no images, as it doesn't display the one's I have defined in my array. I have checked the paths I have defined, and they work OK. It's just that for some reason this widget does not pick it up? Please advice. My blog is http://comicbookandmoviereviews.blogspot.com
more than 10 images in my blog...and there is no line break...all images going out of the border ;(((
Post a Comment