Friday, January 16, 2009

Add Star Ratings to Posts

1. Go to your template editor under your dashboard. Tick the “Expand Widget Template”

2. Find this code

<data:post.body/>


3. Put the codes below right after that line above (or download it here),

<script language='JavaScript'>var OutbrainPermaLink='<data:post.url/>';var OB_demoMode = false;var OB_Script = true;</script><script src='http://widgets.outbrain.com/OutbrainRater.js' type='text/javascript'/>













4. Save your template, and done!

Thursday, December 25, 2008

Widget : [+/-] for any widget

Note Down the name of Widhet you want to [+/-] add.

In Edit HTML, Expand Widgets.

1.Search for Your Widget.

in Widget Search:
<b:includable id='main'>

Just After This Line ( In Next Line )
Add Folling Code.

<script type='text/javascript'>
//<![CDATA[
if(typeof(rnd) == 'undefined') var rnd = '';
rnd = Math.floor(Math.random()*1000);
rnd = 'id-' + rnd;
document.write('<a href="#" onclick="tmp = document.getElementById("' + rnd + '"); tmp.style.display = (tmp.style.display == "none") ? "block" : "none"; return false;" style="float:left;margin-right:5px;">');
//]]>
</script>[+/-]
<script type='text/javascript'>
//<![CDATA[
document.write('<\/a>');
//]]>
</script>

2.Now search next line
<div class='widget-content'>

Just after this code add code ( in next line)

<script type='text/javascript'>
//<![CDATA[
document.write('<div id="' + rnd + '" style="display:none;">');
//]]>
</script>


3.Search
<b:include name='quickedit'/>

Just Before this Code Add code:

<script type='text/javascript'>
//<![CDATA[
document.write('<\/div>');
//]]>
</script>