Related Posts with Thumbnails for Blogger
Displaying the links to related posts along with a thumbnail of the corresponding post will help you increase the page views/user .Users will be tempted to go for the related posts when they are presented attractively with thumbnails.
This is another first release from me.This one also uses the media thumbnails generated by blogger for each post.
For displaying the thumbnails,this widget will use the images uploaded for the post using the blogger image uploader(from the post editor) [Update - Now supports external images also.]
Related Posts Widget with Thumbnails for Blogger
Here are the detailed steps to install the related posts widget for blogger with thumbnails
1.First of all Login to your blogger dashboard and navigate to Layout > Edit HTML and check the "Expand Widget Templates" check box
2.Now look for
</head>
and replace it with
<!--Related Posts with thumbnails Scripts and Styles Start--> <!-- remove --><b:if cond='data:blog.pageType == "item"'> <style type="text/css"> #related-posts { float:center; text-transform:none; height:100%; min-height:100%; padding-top:5px; padding-left:5px; } #related-posts h2{ font-size: 1.6em; font-weight: bold; color: black; font-family: Georgia, “Times New Roman”, Times, serif; margin-bottom: 0.75em; margin-top: 0em; padding-top: 0em; } #related-posts a{ color:black; } #related-posts a:hover{ color:black; } #related-posts a:hover { background-color:#d4eaf2; } </style> <script type='text/javascript'> var defaultnoimage="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDCogWR5n_0lBvA8na6Z_eoio8FAWScK6NmlBklLTSGzLR5-lLo5I2eE4rcf9sgeJUPhWGzIIrfnRcEH1g58x3pd4o2tABxkVbRTyhZ3KYpcimtUldqgdl-crXeem27oYPb1xRYB4K9-A/s400/noimage.png"; var maxresults=5; var splittercolor="#d4eaf2"; var relatedpoststitle="Related Posts"; </script> <script src='http://bloggergadgets.googlecode.com/files/related_posts_with_thumbnails_min.js' type='text/javascript'/> <!-- remove --></b:if> <!--Related Posts with thumbnails Scripts and Styles End--> </head>
3.Now Find
<div class='post-footer-line post-footer-line-1'>
If you cant find it then try finding this one
<p class='post-footer-line post-footer-line-1'>Now immediately after any of these lines(whichever you could find) place this code snippet
<!-- Related Posts with Thumbnails Code Start--> <!-- remove --><b:if cond='data:blog.pageType == "item"'> <div id='related-posts'> <b:loop values='data:post.labels' var='label'> <b:if cond='data:label.isLast != "true"'> </b:if> <script expr:src='"/feeds/posts/summary/-/" + data:label.name + "?alt=json-in-script&callback=related_results_labels_thumbs&max-results=6"' type='text/javascript'/></b:loop> <script type='text/javascript'> removeRelatedDuplicates_thumbs(); printRelatedLabels_thumbs("<data:post.url/>"); </script> </div><div style='clear:both'/> <!-- remove --></b:if> <b:if cond='data:blog.url == data:blog.homepageUrl'><b:if cond='data:post.isFirstPost'> <a href='http://www.bloggerplugins.org/2009/08/related-posts-thumbnails-blogger-widget.html'><img style="border: 0" alt="Related Posts Widget For Blogger with Thumbnails" src="http://image.bloggerplugins.org/blogger-widgets.png" /></a><a href='http://bloggertemplates.bloggerplugins.org/' ><img style="border: 0" alt="Blogger Templates" src="http://image.bloggerplugins.org/blogger-templates.png" /></a> </b:if></b:if> <!-- Related Posts with Thumbnails Code End-->
4.You can adjust the maximum number of related posts being displayed by editing this line in the code.
var maxresults=5;
you will also have to edit the posts per label(it should ideally be one more that maxresults)max-results=6
5.To edit the title of the widget you can change this line of code
var relatedpoststitle="Related Posts";
6.To change the default thumbnail, you can edit this line of code
var defaultnoimage="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDCogWR5n_0lBvA8na6Z_eoio8FAWScK6NmlBklLTSGzLR5-lLo5I2eE4rcf9sgeJUPhWGzIIrfnRcEH1g58x3pd4o2tABxkVbRTyhZ3KYpcimtUldqgdl-crXeem27oYPb1xRYB4K9-A/s400/noimage.png";
7.To Change the Colour of the Splitter Line , edit
var splittercolor="#d4eaf2";
To change the other colours and all you will have to modify the CSS
If you fall into troubles implementing this,don't panic.. :) .just leave me a comment here and i will help you out. If you like to give me any suggestions on how to improve this widget,then it would be really great.
How to display the related posts on every page and not only on the post pages?
Just remove the two lines starting with <!-- remove --> from both step 3 and step 2.
that is lines
<!-- remove --><b:if cond='data:blog.pageType == "item"'>
and
<!-- remove --></b:if>
Update 29/03/2012 : If the script is not working for you then please change http://blogergadgets.googlecode.com/files/related-posts-with-thumbnails-for-blogger-pro.js to http://bloggergadgets.googlecode.com/files/related_posts_with_thumbnails_min.js
Sorry for the trouble :-)
Permalink: Related Posts with Thumbnails for Blogger
very useful, thx for sharing
ReplyDeletejust not work...
ReplyDeleteits all noimage……
ReplyDeletethis is very good version of this hack..........
ReplyDeleteYou are making blogger a better place
now, we are needless to sign in at linkwithin. .
ReplyDelete@小天, this will use only images uploaded via blogger to your posts.. If you don't have any images uploaded for a particular post(through blogger),then it will show a default image saying No Image
ReplyDelete@z-vet,
ReplyDeleteyes you surely can.But if you republish a modified version of this one,please do provide a dofollow link to this post..
This is truly awesome. I am leaving linkwithin now.
ReplyDeleteIt is not working for me :(
ReplyDelete@Momto3LittleFlowers
ReplyDeletedo you label your posts?
The related posts are fetched using the label data.
And which blog did you try to install it..?
This is the blog that I tried to install it: http://www.diaperdiscussions.com/
ReplyDeleteAnd yes, the posts are labeled.. All of them...
What can I do?
Aneesh: Yes, I just tried again and it worked! :) Thanks!
ReplyDelete@Momto3LittleFlowers
ReplyDeleteyea i had checked that url.I had mentioned it in my previous comment! The related posts are well displayed on your post pages..
BTW i loved your blog design! did you do it on yourself..? just ased after seeing your blogger profile.. :)
Aneesh: Yes, I did it myself.. That is for one of my customers.. I do blogs and websites :)
ReplyDeleteBut I dont like linkwithin because sometimes it shows in the blogs of one of my customers, things from my blog, as Im an author in both.. :)
Now I know what is the deal.. The reason why I didnt notice that it worked right away it's because it will only show it if a person goes to the direct link of the post, not the main link...
ReplyDelete@Momto3LittleFlowers,
ReplyDeletecool do you have a blog where you publish your blogger templates??
yea the related posts will be displayed on post pages only.You can display it everywhere if you want.(just take off the b:if conditions)
I make them personalized for each customer... The one that is for selling is the one in my profile called: 3 Little Flowers - The blog...
ReplyDeleteAs for removing the b:if .. I did, but it doesnt show anyway... Any other idea??
you didn't take off the b:if conditions form the code in Step 3.
ReplyDeleteNo, I didnt.. LOL.. How did you notice??
ReplyDeleteAnyway, it looks like I did something wrong, cause even though it now shows in the main page, some of them shows: Undefined...
@z-vet,
ReplyDeletethanks mate.. not many will do that.. :)
I cannot find any similar match in my template
ReplyDelete'post-footer-line post-footer-line-1'.
Is there any other similar one to look for?
hi princess :),
ReplyDeleteit would be enough if you place it below
<data:post.dody/>
BTW post-footer-line post-footer-line-1 is present in your blog http://www.mysweetlittleprincess.com/
hy,, u have great posting,, i always visit ur site friend...
ReplyDeleteMost amazing widget I've seen in a long time! Keep it up ☺
ReplyDelete@Jakolien Sok ,
ReplyDeletethanks a lot for the appreciation!
I tried but still no image on the thumb. My post contain most of picture. but why still not working.
ReplyDeletemy blog: delphi-bluefish.blogspot.com
please ur attention. because i like this widget.
@delphi,
ReplyDeletethe widget will take up only those images that have been uploaded via blogger[from the post editor].If you have included some external images in the posts,they wont be included..
Yes, i understand about that. That's why i changed a few my post (for test) with upload via blog post editor. But still, no image.
ReplyDeleteSo, maybe still have another way to do that? Or maybe just need few time to make it work?
@delphi ,
ReplyDeleteshow me a post which has an image uploaded via blogger
all of them which i saw were hosted on photobucket
This widget shows related posts.If the related post has an image uploaded via the blogger post editor,then it will show a thumbnail of that related post.Else it will show a default noimage thumbnail.Hope i am clear.You can see that it works by taking a look at the demo here on this site..The only cause for it to not work is that you havent uploaded images via blogger.instead you use photobucket for hosting.. So it wont work as long as you use you dont add photos via blogger.
I see, i see, i see....
ReplyDeleteOkay. I got what ur mean. Mean we upload via Computer not by url. :) I am sorry for my stupid think. (and sorry too for my bad english). Now it's WORKS and I very very excited.
Thanks very much. I owe u. Because u not just posted something but u also gave solutions for people who want to use urs.
THANKS.
Now i am looking for other widget and hope u assist me for may future question.
May I re-post urs widget on my blog? Of course, i'll give source that's from u.
One more thing, can we resize the thumbnail?
Many many thanks.
@delphi , the images used here are the media thumbnails from the blogger feed.These thumbnails are of size 72X72 px .Currently these thumnails are displayed in their full size(72X72).It can be scaled to a bigger size using CSS.
ReplyDeleteYes you can republish any article on this site by giving a dofollow link back to the original post.All site contents are provided under the Creative Commons License.
I cannot find that code mentioned in point 3 in my blogs template.
ReplyDelete@Raj,
ReplyDeletethen place it below <data:post.body/>
Pretty cool but I think if you only have 1 label on the post then it will only show max 5 related posts.
ReplyDeleteCheck it out:
Poker Babes
Thanks alot! your site is very Impressive!
ReplyDelete@David Bergeron ,
ReplyDeleteyes by default it is so,but you can change that if needed..
in the step 3 code,there is something like max-results=6
By default only 6 posts are fetched from a label.So only 5 posts will be displayed (excluding the current post).
So if you increase this number(6),more can be displayed.. :)
@τreciä ,
ReplyDeletethanks for the nice words! i loved your blog too.. nice implementation of blogger tricks.. :)
Thank you mate ! everything works fine ;)
ReplyDeleteDear Aneesh...
ReplyDeleteI just publish ur widget on my blog. But of course i translated them.
Hope u don't mind.
Thanks.
tq dude
ReplyDeletehttp://www.mysitez.co.cc
very very useful
ReplyDeleteprobando
ReplyDeletei cannot see the word " Related posts" in my blog as the background color bar is black. i dont know where to edit in CSS code to change that bar color. Please help.
ReplyDeletehttp://mohdfarhan.blogspot.com
just after the line
ReplyDelete#related-posts h2{
add
color:white;
is not well taken pictures do not appear here look
ReplyDeletehttp://www.freewaresnbeta.com/2009/08/convert-videos-with-any-video-converter.html
no work
ReplyDeleteThank you soooooooo much.
ReplyDeleteThis is is really cool
it's not work..
ReplyDeletei can't find these code:
< div class='post-footer-line post-footer-line-1' >
or
< p class='post-footer-line post-footer-line-1' >
or
< data:post.body / >
so..how to resolve this problem?
need your help..thx
(my blog template: smash my typo)
Nice, works for me !
ReplyDeleteThanks... ;-)
GREAT Post !!!
ReplyDeletethanks!! it makes my blog look better really!! :)
Awesome! Whoo Hoo! It worked! Thank you so much.
ReplyDeletePlease help me ... why not work on first page?
ReplyDeleteHi Aneesh as allways im around here,, I got that one in there aswell, thanks to you Aneesh, !!
ReplyDeleteyours tutorials allways is the best i ever see..
cool.. thanks for the beautfull job you do for us..
have a nice weekend!!
not working on my blog, pls help.
ReplyDeletehttp://spiceupyourgear.blogspot.com/
i got the following error
ReplyDeleteTEMPLATE ERROR: No dictionary named: 'post' in: ['blog']
Great site! I'm customizing my blog quite a bit now thanks to you.
ReplyDeleteOne problem I'm having with this mod is that there is a large white space between "Related Posts" and the end of the post with the comments and all. How could I fix this issue?
hi..
ReplyDeletecan this be made also for showing posts in same format, i.e. showing last posts side by side (paralell)?
if yes, that would be very nice..
zeki / from turkey
So so good!, tnx man.
ReplyDeleteThis is so very well done. Thanks a bunch!
ReplyDeletethanks a lot for the tutorial.
ReplyDeletevery nice!! thank you very much im a big fan of your site!
ReplyDeleteHi Aneesh. This was an awesome post. It looks better than LinkWithin!
ReplyDeleteHowever, I can't get it to work.
I followed step 1 & 2, then step 3
(You should mention that bloggers have to click the "Expand Widget Templates" check box)
Then nothing happened.
I did fiddle around with my template a little bit, but I don't think it's overboard. Could you help me out?
p.s. In step 3, after the line:
[d!v class='post-footer-line... ]
I paste the code IMMEDIATELY after, right? i.e.
[.....line-1'>[paste new code here]
yes you are right! you have to place that code snippet after that one..
ReplyDeletebtw i don't see any codes on your blog right now!
Amazing widget! I love it, great work. You mentioned in one of the comments that to have the related posts on the main page, not just on the post page, that you have to remove the b if conditions. Can you please specify what exactly you have to remove from Step 3? Thanks much appreciated!
ReplyDeleteremove the lines which look like
ReplyDelete<b:if cond='data:blog.pageType == "item"'>
and
</b:if>
from both step 2 and step 3 codes..
I removed the codes by restoring my original template because it didn't work. I've put the codes up again. If you could take a look?
ReplyDeleteI'm sure I must have done something wrong but this does not work on my blog here: http://kidsaregreat2009.blogspot.com/
ReplyDeleteI posted the second snippet after this code in my HTML template:
}
p.post-footer-line-3 {
border-bottom:1px dashed #cc3300;
margin:0 auto;
padding:0;
}
I could not find any line that mentioned a post footer line 1.
If I just knew exactly where to put that second piece of code, I bet it would work perfect.
Aneesh, i've figured it out. it's because of my company's proxy thing. I can view it fine at home. Decided to revert back to original template until i find somewhere i can host the script that is NOT blocked.
ReplyDeleteThanks anyway man!
p.s. What do I have to edit if I want to remove the bottom lines of the widget:-
-------------------------
XX Comments:
Post a comment
-------------------------
@Kids Are Great! ,
ReplyDeletedon't place the code of step 3 like what you have done now..
put it just below <data:post.body/> after expanding your widget templates..
@The House of AZ,
the widget doesn't have any bottom underlinings.. :(
Thank you, Aneesh, for trying to help me but it still won't work. Maybe it's because it's not a standard Blogger template? I used a customized template for my kids blog. It still had the things you said to find and I put the code where you said but no luck. It just won't work. I'm so disappointed because I really wanted this.
ReplyDeleteThanks so much Aneesh...worked like a charm!!!
ReplyDeleteI put the codes as per your instructions, not sure if i got some of it wrong... But it only shows the related posts if I view the post itself and not just by viewing the whole blog? Please assist. Thanks alot ;).
ReplyDeleteMy Blog : In My World
@ladyviral,
ReplyDeletei have added conditional tags so that the widget appears on post pages only..If you want the widget to be displayed on all pages,then remove off the conditional tags..
There are conditional tags in both of the code snippets(steps 2 and 3)
The conditional tags look like
<b:if cond='data:blog.pageType == "item"'>
and
</b:if>
if you remove these 2 lines from the code snippets in step 2 and step 3,then you will have the widget on every page of the blog..
i don't know what i'm doing wrong but it's not showing up at all on my blog : ( might it be conflicting with other codes? i've tried everything and read through all the comments but it's still not showing up. i made 2 test posts to check it out but still nothing. could you help me please?
ReplyDelete@Angel,
ReplyDeleterelated posts are based on labels.. So if you label the posts,then there should be no reason for it not to work..
Didn't it show any signs of a widget? Or does it display itself with some problems?
hi ,
ReplyDeleteplease help me in this
i cant find any of the lines
div class='post-footer-line post-footer-line-1'
or
p class='post-footer-line post-footer-line-1'
what should i do ??
This widged is very good version.thaks..
ReplyDeletecan i make the thumbnails bigger?
ReplyDelete@ahmedhamdy_27,
ReplyDeletepaste it below <data:post.body/>
@Aws ,the size of the thumbnail is 72x72 px .So there is no point in using a bigger size than that.. :)
Aneesh, you probably missed my question on how to fix the large white space after my Related Posts. No matter, for I've played around with your code and found a fix:
ReplyDeleteheight:50%;
min-height:50%;
Both were originally 100%.
Incidentally, I also made the RP appear a little further south of the post body by making the following changes:
margin-bottom: 0em;
margin-top: 0em;
padding-top: 3em;
@eastpaw
ReplyDeletecool findings! it might be usefult for other readers also..
nice
ReplyDeleteI'm having trouble implementing it in my JOURNEYIST blog, should i go back to LinkWithin?
ReplyDeleteHallo,
ReplyDeleteI don't have the line
div class='post-footer-line post-footer-line-1'
or p class='post-footer-line post-footer-line-1'
in my HTML Code :(
Need some HELP!
Greetz, Salomé
I uploaded images via windows live writer.
ReplyDeleteIs there any way to show images by changing any code because images are not displaying on my blog.
Nice, I like and need this
ReplyDeleteThank for share
AWESOME!! I was just about to look into achieving this myself, and noticed you'd already done it (sorry I was a little late!) :)
ReplyDeleteI'll definitely be writing about this on Blogger Buster ASAP.
Would you mind if I made a few modifications (for my new blog design only) if I upload the script to my own host?
@Amanda,
ReplyDeletethanks a lot for the comment..
its really special to get a comment from someone like you.. :)
yea you can surely modify it in any way you want..
btw i have just updated the script so that it takes up the full size images in case the mediathumbnails are not available.. Also did the same for the recent posts gadget.. can you please update the links to the recent posts gadget so that they point to google code instead of my site . This is the gadget url - GADGET URL
Hi,
ReplyDeleteI can't seem to find the second bunch of links. Any advice/help would be much appreciated.
Thanks,
Nancy
@Nancy
ReplyDeletebunch of links..
didn't get ya.. please explain. :)
can i know where the thumbnail is hosted...?
ReplyDelete@manS - If you upload an image(thats what normally everyone does) via the blogger post editor, it will automatically generate a thumbnail which will be hosted on google servers. If you use an external image,then the same full size external image will be used for the thumbnail..
ReplyDeleteI installed this Related Post with Thumnails yesterday. And I knew that some images with flicker image address are also displayed with related posts. It's funny and good!! :)
ReplyDeleteThanks for providing beautiful widget.
@zizukabi,
ReplyDeleteyes i had modified it a little bit to include external images.. :)
@Aneesh - No problem about the updates. I'll get writing as soon as possible about this new feature, and will update the other post shortly.
ReplyDeleteGlad to see you're using Google Code for your scripts - it's far more reliable, and free to boot. I only wish we could host and serve Flash files from there - I have to pay for reliable hosting for this as G-code won't serve Flash in the same way :(
Thank you for the permission to modify - I'm redesigning my site and saw an awesome WP feature which I'd hoped to recreate, so your script will be very handy for this purpose. Once I've done, I'll let you see a demo and send over the script in case you'd like to use yourself.
Best wishes,
Amanda
I've tried about 3times (granted I'm a total html noob) but I can't get this to work! I looked for the
ReplyDelete(div class='post-footer-line post-footer-line-1') and alt code, didn't find it and then tried posting the second portion after the (data:post.body/) tag but still nothing.
Any other ideas?
@Amanda,
ReplyDeleteyea G-code doesn't support other files.. may be mainly because it may get misused..
btw why don't you get some hosting from godaddy or hostgator or bluehost or something like that.. Amazon is too costly rite?
looking forwart to see your new design..
Regards
Aneesh
@Stuff On My Blog,
do you label your posts?? The recent posts are fetched using the labels of the current post..
This is super. I can now say goodbye to linkwithin
ReplyDeleteHi,
ReplyDeleteI mean I can't find either links on point 3.
Thanks.
@Nancy ,
ReplyDeleteif you cant find any of those, the find
<data:post.body/>
and paste the related posts code snippet of step 3 below that.
@Nancy ,
ReplyDeletei think that you didn't expand the widget templates. Check that option from your Edit HTML page and try again..
If you still cant find any of the two lines mentioned in Step 3,the find
<data:post.body/>
and paste the related posts code snippet of step 3 below that.
Thanks, I was looking for this. You're a genius!
ReplyDeleteYou just used Linkwithin script why you don't say that in your article ???
ReplyDelete@LeBlogger ,
ReplyDeleteplease look into it before you post something like this. This is not the link within script or some copy of it.. I have coded it myself..
Linkwithing uses different algorithms.. Mine is based on the post labels, and will work with blogger only.
is it possible to get more than 5 related posts
ReplyDelete@Admin,
ReplyDeleteyea you can increase the count..
Follow Step 4 and if you want you can change max-results=6 in the code..
By default 6 posts are fetched from each label and 5 of them are displayed.
Ok! Got it! Thanks alot! <3
ReplyDeleteLove this widget :).
How it is possible that in my Google analytics it counts as Linkwithin referel.
ReplyDeleteAnd how it is possible that sometimes it shows only posts titles without images.
More over it looks, exacly the same as Linkwithin widget ?
Anyway, Thank you for this great hack. very useful i will link to it.
Can u make it show related posts ramdomly ?
Hallo Aneesh,
ReplyDeleteI still don't find the line div class='post-footer-line post-footer-line-1' in my blog :(
What can I do? please help me!
bye, salomé
Finally I got it! Thank you! :)
ReplyDeleteGreat widget!
its not working
ReplyDeletei tried this one
i followed the total intructions
no errors
but
these related posts are not showing under any post
@Soufiane LeBlogger
ReplyDeleteyou might have been using linkwithin earlier and that might be old data..
As you can clearly see from the code,it has no linkwithin references and this depends fully on blogger feeds,media thumnails and post images..But surely it was inspired by linkwithin.
Can you show me a page where the image is not displayed and just the title.. Because i haven't seen of such a situation till now and i would love to fix it if i know where it is(so that i can figure out what has gone wrong)..
I may try to make randomness rather than using the latest ones in the next update..But it may slow down the widget.Blogger can't provide a randomly ordered feed for me..So if i have to create randomness i will have to fetch more posts from the label.. i will try to include it soon if possible..
@Salomé
ReplyDeletenice to see that you figure it out by yourself..:)
@viswanath
you might not be labelling your blogger posts.
It don't works. I have done it exactly but nothing appears.
ReplyDeleteThank you for your answers and explinations, you're really nice man thanks.
ReplyDeleteThank you. Great!!
ReplyDeletethank you for information..
ReplyDeletehttp://getfilesong.blogspot.com/
does it support video thumnails,and can it be modifed to show vertical?
ReplyDeletesorry this doesn't support video thumbnails and it can't be made unless blogger automatically adds a media thumnail for the video uploaded.I don't know if blogger adds media thumbnails to videos uploaded via blogger post editor.If they do,then this widget will display the thumbnail.
ReplyDeleteThanks for this cool stuff. I love it WTF FTW ;)
ReplyDeleteTHX for this hack, Ilove it
ReplyDeleteTHX for this hack, I love it
ReplyDeleteTHX for this hack, I love it ^^
ReplyDeletedon't work here: dokupictures.blogspot.com
ReplyDeleteand i don't know why?
please help...
greets
ok, it works :)
ReplyDeletethanks for this widget
i have 3 questions:
ReplyDeletecan i remove or change the color of the lines beetwen thumbnails? (they are visible when i use firefox, but when i use chrome - they aren't visible)
can i change font of the posts title below the thumbnails (i've changed css code, but it doesn't work)?
and this wigdet does not work in every post. why?
thanks for reply
@Dominik Kulik
ReplyDeleteto edit the separator colors you will have to recode the js
now you can change font using css (just change relatedthumbs20.js to relatedthumbs21.js)
the widget grabs related posts from labels.So if the post has labels which contain other posts,then it will be displayed and otherwise not..
thanks
ReplyDeleteyes, post has labels which contain other posts, but the widget doesn't show
@Dominik Kulik,
ReplyDeletecan you show me the link?
http://dokupictures.blogspot.com/2009/09/342.html
ReplyDeletelabel to this post http://dokupictures.blogspot.com/search/label/czarno-bia%C5%82e%20/%20bw%20photos
@Dominik Kulik,
ReplyDeleteits because of the / in the label name and it needs to be escaped. will let you know if i find a fix for this..
thanks for your help & support :)
ReplyDeleteso, i had to replace the '/' mark into something else.
ReplyDeleteyou can't go to: 'yourblog.blogspot.com/feeds/posts/default/-/label' if there is '/' in label.
now the widget works great, and once again thanks for your help
I love this widget and thank you for offering it...May I ask a question however........Does it take a bit of time for it to start working???? I have my posts labeled but I'm not yet seeing any related posts showing up...Thank you for any assistance you can offer....
ReplyDeletehi! this is a great hack! QUESTION! How do I get it to show on my main blog page? It only shows up on my individual post pages. www.julujewelry.com
ReplyDelete@Penny - It wont take time.
ReplyDelete@Stephanie ,please refer my previous comment(in reply to ladyviral) about removing b:if conditions . Here is a link to the same It will let you display it everywhere..I personally didn't like the idea of displaying it everywhere..So i applied some constraints so that it wont show up on non-post pages.
I've tried 3 times and I keep getting this: Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
ReplyDeleteXML error message: The element type "html" must be terminated by the matching end-tag "".
Help!
I love that it now supports external images. ¡Thank you so much!
ReplyDeleteHi, I can't get this to display and I think it would be really good for my blog.
ReplyDeletehttp://www.trainingwithinindustry.blogspot.com
@Bryan
ReplyDeleteyou should label your posts for this to work.. (related posts are fetched from labels)
It works like a charm. Thank you!
ReplyDeleteAngie's Recipes
Very cool hack! I got everything implemented but had a question. Is there a way to change the default image to another picture? Also where can you change where it says "Related Posts" to something else?
ReplyDeleteThanks!
@Dave@The Home Garden ,
ReplyDeleteyou can change the title Related Posts to anything that you like (Read Step 5 :))
But to change the default image,you will have edit the js file and upload it on your own.
Oops! I must not have read that line! Thanks it works great. Also I added the recent post widget to the sidebar. It works great too.
ReplyDeleteThanks again!
I hate editing template, hope can use Blogger layout gadget
ReplyDeleteIs it possible to put this outside of the post widget, like say in the page footer or header? It seems to not show up elsewhere. I tried adapting it myself, but it just leads to format errors...
ReplyDeletenice widget
ReplyDeletei have no idea how to changed css to mtch format with my blog
my blog is in black format
http://gmaseven.blogspot.com/
I just implemented all of this, and nothing happened.
ReplyDeleteany suggestions?
thanks,
http://spartytunes.com
@Faizal Rahman ,
ReplyDeletesorry i cant use a gadget for this one :)
@Faizal Rahman ,
that will come up in the next version of this script.
@KAPUSO ONLINE BLOGSPOT ADMIN ,
there are 3 lines in the first part of the code
color:black; this line determies the color of the text displayed
and the background of the link(on hover) is determined by the line background-color:#d4eaf2;
you can pick up a better color using photoshop and change it to the way you want.
@Jon,
i don't see these codes on your blog..
Hello Aneesh,
ReplyDeleteThanks for this hack. I dont know how i missed this earlier. Anyways i have one question though. How can i change font size and weight of header of this widget. For me it is too big :(
@Hetal,
ReplyDeleteyou can change the size of the widget titlle by editing the part which looks like
#related-posts h2{
font-size: 1.6em;
Hi,
ReplyDeleteI can't get this to work although I think I installed correctly. Did have Link Within before and I'm not sure I managed to find all the code and clean it out, if that makes any difference.
Help appreciated please!
Thank you for developing this fantastic widget.
ReplyDeleteJust one question - what is the font-type you use in the widget on your blog? (i.e. the font below the thumbnail pic "Link to me for blogger" etc)
Thanks
Could you pls take a look onto my test blog? It does not show images (they are uploaded with Windows Livewriter). On my "real" blog I also use WLW and upload the images to my own FTP/HTTP so I guess they also would not show up?
ReplyDeleteTest
Aneesh greetings, congratulations on this widget and I hope you like my tutorial in Spanish "thumbnails Related tags":)
ReplyDelete@Francesca ,
ReplyDeletewhich blog did you try it on?
@Lindsay,
it takes up your blogs font.Sets the font size to 12px.
@Mario Ruprecht,
you have messed up the code :) thats y.. :) it should look like this.
@Gem@,
ya ya i understood every bit of it.. :P Google translator is great :)
i followed these above steps but i didnt get this widget on my blog
ReplyDeletemy blog address is
http://nanoguns9.blogspot.com/
beautiful indeed.
ReplyDelete@Aneesh
ReplyDeleteobviously I messed the code up because I, thank you very much for this hint. It looks great now.
Nevertheless one question: Some of my headlines use very long words so they qre witten over the boundaries of the link rectangle. Any ideas how to avoid this?
Another one: Could we customize somehow the "No Image" image or do I need to host the JS code on my own server then?
ReplyDeleteThis is just great. I host your script on my own server and changed it a bit to fit my needs. Thanks again for this geat piece of Blogger addon ;-)
ReplyDeleteTake a look
Really good tip for bloggers.
ReplyDeleteHi Aneesh, it is possible to exclude some label from the related post, for example i have labeled a post with A and B, and I want the related post just related to B and exclude A.
ReplyDelete@Mario Ruprecht ,
ReplyDeletei was a lil late, and you figured it out all by yourself.. :)
@Nathan ,
if its a single label then it would be possible.But if you are planning to exclude different labels on different posts,then i don't think it would be possible
@viswanath ,
try switching to full feed instead of summary feeds.
once again i would say thank you for your work. it is working in my place
ReplyDeleteBest regard
Blogger template place
www.bloggertemplateplace.com
Excellent work. I am going it Thank you very much to use in my blog and greetings
ReplyDeleteThanks
ReplyDeleteAneesh thanks for getting back to me on my previous question. I have increased var maxresults to 7, but still only 5 show, Even though I have 7 posts with the same label. Should I be changing something else aswell? thanks
ReplyDelete@Lindsay,
ReplyDeletein the code snippet of step three you can modify this value max-results=6 .This defines the number of posts fetched from each label.
It's greate tool! Thank you so match to share this.
ReplyDeletethankyou man it is working perfectly no complains from my side 5 out of 5
ReplyDeleteHey Aneesh, great work with the widget, its just like LinkWithin's but fully customisable.
ReplyDeleteOne question, how do you change the "No Image" image?
@bem69,
ReplyDeleteyou will have to modify the js file for that to happen.
Hello, I implemented this widget but I have a small problem, I would like to put the sources of the titles of related posts that were smaller and recognize case-sensitive, as you have your to your blog, and also the title of the widget out in lowercase, because I get my all caps.
ReplyDeleteSorry as I express myself but I am using a translator and not English. I speak Spanish.
Will be necessary to accommodate the script on my server? Or can we trust that this will not crash?
Thank you very much for everything and very good post!
@k_nelita ,
ReplyDeletei didn't understand the first part. But you can surely trust the script servers.They are hosted at googlecode.com on google's Servers.So they wont crash.
@k_nelita
ReplyDeleteI believe I understood your question. You can decrease the fonst size in the Javascript so you need to modify it and host it somewhere else, e.g I reduced it to "font-size: 10px;". You can also try "text-transform:capitalize;" in they style in order to get every word with a capital letter first letter instead of all in capital letters.
Regarding the widget headline: you can change the layout to your needs in the H2 section of the CSS part described by Aneesh above, so you could also use a text-transform capability.
So, the first thing you can change in the script, second one in your template.
Hope this helps! If changing font size is often required Aneesh might introduce a variable for it?!?
I have my version of this great script running and I'm totally happy. Thank again!
Thank you very much Mario Ruprecht Aneesh and I am going to try to modify the script as I advise and host it on another server, although I am not very knowledgeable on the subject, but very persistent ja ja
ReplyDeleteAgain I apologize for my bad English;) (the translator)
@Chris ,
ReplyDeleteyou figured it out rite? :)
Hello there ! Been looking on all comments and cant make it work !
ReplyDeleteI would like to make the widget come up in the front page of my blog, not only in a single post page... i have removed the:
b:if cond=
and
b:if
or at least i think so that i did it right, but cant get it to work..:-(
Can you please give me a hand ?
Please take a look at my blog: http://linuxvidalivre.blogspot.com
Im trying too to get rid of linkwhithin widget, already deleted it...
Thank you very much and ill be waiting for your comment !
Cheers !
Well, i have just tried a lot of things... i admit im no html guru, but cant get it to work even if i copy/paste the code "as is"...It doesnt show in the main page nor in any of the individual posts...
ReplyDeleteJust to add...i got it to work "as is"... but still cant get it how to work in the front page too.
ReplyDeleteCould you please post an example of how it should work showing the b:if cond removed, so that i can understand better ?
Thanks in advance.
now i am going to add this widget !!!
ReplyDeletethanks in advance!!
head
ReplyDeletecode not found!!!
http://primarykamaster.blogspot.com/
@Maquina de Café
ReplyDeleteyou have to remove only 4 lines from the code
they are
1.the bif line just below <!--Related Posts with thumbnails Scripts and Styles Start-->
2.the b:if line just above <!--Related Posts with thumbnails Scripts and Styles End-->
3.B:if line just below <!-- Related Posts with Thumbnails Code Start-->
4.The b:if line just above <!-- Related Posts with Thumbnails Code End-->
Delete just these 4 lines and you will get it on every page.
@Aneesh
ReplyDeleteThanks for your time and patience one more time.
I did it like you said, but it still doesn't work on the front page, don't know why. Its true that i have posts that have no images... but in that case it would show "no image" and thats not the case, it just doesn't show nothing at all (im talking about the posts that appear when you go to the front page).
When i click on an single post, some posts show the "related posts" widget and other posts don't show the widget at all.
Just that you might want to know about how it worked for me... don't know what else to do, maybe i just should paste the code as is :-(
Anyway thank you very much, and ill stay tuned if there is any other way to make this work.
Cheers !
Hi! This looks so cool. However, I'm having problems. I followed your instructions exactly and posted the code without changing anything and nothing is showing up.
ReplyDeleteAneesh,
ReplyDeleteThis code just worked fine in my first two posts, not in other posts.
Could you advise as what is wrong?
http://samasongs.blogspot.com/
It's very useful, better than LinkWithin widget and others. Congratulationas my friend. take a look:
ReplyDeletehttp://tutorialparatudo.blogspot.com/
Great... :) And Thank you.
ReplyDeleteI will try it to my site...
Good post, thanks i'll use it ;)
ReplyDeleteI wanted it to appears on every page but I am having problems
ReplyDeleteThe conditional tags look like
< b:if cond='data:blog.pageType == "item"' >
and
< /b:if > (had to put spaces in)
if you remove these 2 lines from the code snippets in step 2 and step 3,then you will have the widget on every page of the blog..
It appears twice in the 3 - but if you removed the < /b:if > I get an error.
Mine is not working. :(
ReplyDeletewww.zoiksonline.com
@•´.¸¸.•¨¯`♥.Trish.♥´¯¨•.¸¸.´•
ReplyDeleteyou have to remove only 4 lines from the code
they are
1.the bif line just below <!--Related Posts with thumbnails Scripts and Styles Start-->
2.the b:if line just above <!--Related Posts with thumbnails Scripts and Styles End-->
3.B:if line just below <!-- Related Posts with Thumbnails Code Start-->
4.The b:if line just above <!-- Related Posts with Thumbnails Code End-->
Delete just these 4 lines and you will get it on every page.
@Zoiks! Online,
ReplyDeletei think you don't label your posts. This widget grabs the related posts from the labels used on the post.
Nice tips. Thanks!
ReplyDeleteI label my posts. I tried removing the conditionals from the code so it would show on every page. Still not getting anything. What am I doing wrong?
ReplyDeleteIt didn't work for me. Can you please tell me what I did wrong?
ReplyDeleteNever mind, I saw one of the other posted comments and figured it out. Thanks for this great feature!
ReplyDeleteHELP...i am sitting for about 15 minutes why page is taking this much time to load with this widget.and Its not showing 7 Links its ok with 6.PLEASE have a look at Time factor.
ReplyDelete:)
cool!!! Goodbye LinkWithIn!!! TQ author....So Much
ReplyDelete