Displaying a related posts is a smart way for keeping your site visitors around. and you may have seen other Related Posts Widgets out there.. but this one will be Easier and Smarter.
* Check Out New Edition
of this widget that is loaded with pretty new features like posts thumbnails and transition effects..
of this widget that is loaded with pretty new features like posts thumbnails and transition effects..
Check features list:
- Easier : since All of the work is(has to be) done on the client side, You will not need to modify your template at all. widget will read post tags that blogger already display with each post.
- Smarter : Cause This widget will list the top related 5(or more) posts sorted by relevancy!Top relevant posts are the posts that have more tags in common with the current post.
- More Optimized: Will only use summary feeds instead of querying default feeds that return full contents!
- This widget also can work as a recent posts widget when there is no tags to aggregate.
- Can be also used to get related posts from another blogspot blog. And in that case you don't have to run it on a blogspot!
- A fixed list of tags can be used to aggregate.
- It can display loading text or icon until widget is loaded.
- Related posts list can be styled based on relevancy!
- You can specify either to load widget on document ready or on window load.
- Widget will be attached to container specified or it will be placed where you made the JavaScript call.
If you want to understand code behind this widget, check [Code behind : A Smarter Related Posts widget for Blogger].
Typical Usage #1
To display related links at the end of every post. copy this code into a new HTML/Javascript widget and place at the bottom of the post or at the footer in the page elements section.
Widget uses jQuery v1.3.2, If you already included jQuery into your blog. no need to do it again.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script src="http://blogger-related-posts.googlecode.com/files/related-posts-widget-1.0.js" type="text/javascript"></script>
<script type="text/javascript">
relatedPostsWidget({
'containerSelector':'div.post-body'
,'loadingText':'loading...'
});</script>
[containerSelector : 'div.post-body'] is the default container selector of your post body as output by blogger. which means find 'div' tag with class="post-body" if you unlikely modified it; find your new selector.
* Note that:
-
- You may also try Fileden as it is only file hosting I know that would give you a direct-link (A Mustfor javascript to work)
But keep the jQuery URL as is, since Google hosts jQuery(and others) very very well.
Typical Usage #2
To show related links at the side column. copy this code into a new HTML/Javascript widget and place at the side in the page elements section.
Again, If you already included jQuery into your blog. no need to do it again.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script src="http://blogger-related-posts.googlecode.com/files/related-posts-widget-1.0.js" type="text/javascript"></script>
<script type="text/javascript">
relatedPostsWidget({
'loadingText':'loading...'
});</script>
Style Widget with CSS
You wouldn't need any CSS unless you need extra customization.
<style type="text/css">
/* Widget Div */
#related-posts{
/* Add your styles */
}
/* Widget H2 heading */
#related-posts h2{
/* Add your styles */
}
/* Widget UL list */
#related-posts ul{
/* Add your styles */
}
/* Widget loading text */
#related-posts-loadingtext{
color:green;
}
/* Widget loading class set on UL until it is loaded */
/* you will need set the option: 'loadingClass':'related-posts-loading' */
.related-posts-loading {
/* Ajax Icon as background */
background:transparent url(Load.gif) no-repeat right top;
}
/* Style links based on relevacny */
/* you will need set the option: 'postScoreClass':'related-post' */
.related-post1{ font-size:90%}
.related-post2{ font-size:90%}
.related-post3{ font-size:100%}
.related-post4{ font-size:110%}
.related-post5{ font-size:120%}
</style>
Secondary outcomes: proportion healed Coach Outlet by 6 months; time to healing; global Coach Handbags Clearance assessment; inflammation; Ray Ban Glasses pain; quality of life; Coach Outlet Store treatment failure and recurrence.Results: Sixty six patients (22 to 85 years) were enrolled. Clobetasol propionate 0.05% was the most commonly prescribed therapy. Overall, 28/66 (43.8%) of Ray Ban Outlet ulcers healed by Yeezy Discount 6 months.
ReplyDeleteAnd BTW, Jeffrey Dahmer started out killiing animals as a child. Look what he turned into. People like this don get better. We report vibrationally resolved spectra of the S1 S0 transition of bromobenzene using resonance enhanced multiphoton ionization (REMPI) spectroscopy. We study bromobenzene h5 as well as its perdeuterated isotopologue, bromobenzene d5. The form of the vibrational modes between the isotopologues and also between the S0 and S1 electronic states are discussed for each species, allowing assignment of the bands New Jordan Shoes 2020 to be achieved and the activity between Yeezy Boost 350 states and isotopologues to be established.