Recently blogger have added star ratings feature to posts , to enable this go to Layout section and click on edit link on Blog post, than check the check box against Show Star Ratings, for this u might need to login in blogger draft <span class='star-ratings'
><b:if cond='data:top.showStars'><div
expr:g:background-color='data:backgroundColor'
expr:g:text-color='data:textColor'
expr:g:url='data:post.absoluteUrl'
g:height='42' g:type='RatingPanel'
g:width='180'/></b:if></span>
<b:include name='feedLinks'/>
<b:if cond='data:top.showStars'>
<script src='http://www.google.com/jsapi'
type='text/javascript'/>
<script type='text/javascript'>
google.load("annotations",
"1");
function initialize()
{google.annotations.setApplicationId
(<data:top.blogspotReviews/>);
google.annotations.createAll();
google.annotations.fetch();
}
google.setOnLoadCallback(initialize);
</script> </b:if>
Now u'll be able to star ratings in ur posts Njoy
For more info read this blog
Thursday, January 15, 2009
Browse > Home /
Blogger Hacks /
Blogger tips
/ Adding star ratings to blogspot custom templates in new blogger beta
Adding star ratings to blogspot custom templates in new blogger beta
If u r using template provided with blogger , than doing this will work , but if u r using any custom or third party template than u need to add some code for this to work
Go to edit HTML and check the expend widget template
Search for this line of code:
Subscribe to:
Post Comments (Atom)
Comments
3 comments to "Adding star ratings to blogspot custom templates in new blogger beta"
4:46 PM
good trick
10:33 PM
hey I posted this coad, and it works... however not every time. It's my only widget that is on again and off again. Is there any way to make sure it has a higher priority in loading, or is there possibly any statements I can remove to fix this problem? you can see the blog at http://www.mightybuying.com
12:48 AM
Try http://www.addrating.com. They have a great FREE rating widget, I have tried it for http://innovatwwithgadgets.com
Post a Comment