Loading...
16 June 2012

blog එකේ post වලට පහලින් google + facebook share, twitter share, facebook like box ටිකක් එකතු කරමු

Add share වලින් මේවා එකතු කලාම කට්ටිය පාවිච්චි කරනවා අඩුයි. අනික ඒකේ facebook like box එකක් නෑනේ. මේ ලිපියෙන් කියන්නේ ඉහත මා කියපු ඒවා ඔයාලගේ බ්ලොග් එකේ පොස්ට් වලට ඉහලින් හරි පහලින් හරි දා ගන්න විදිය. ඒක පේන්නේ පහල තියන පින්තූරය විදියට


මෙච්චරයි කරන්න තියෙන්නේ. ඔයාලගේ බ්ලොග් එකේ design වල edit Html ගිහින්  

<data:post.body/>


මේක අහුවෙන මුලම තැන නෙවෙයි දෙවනි තැන හොයා ගන්න. ඔයාලට ඉහල BUTTON දාන්න ඔන උඩින් නම් පහත දෙන CODE

<data:post.body/> වලට උඩිනුත් යටින් නම් යටින්නුත් දාන්න

FACEBOOK LIKE BUTTON


<!-- facebook like this -->
<div style='float:right; padding: 5px;'>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<iframe allowTransparency='true' expr:src='&quot;http://www.facebook.com/plugins/like.php?href=&quot; + data:post.url + &quot;&amp;layout=box_count&amp;show_faces=false&amp;width=100&amp; action=like&amp; font=arial&amp;colorscheme=light&quot;' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:80px; height:100px;'/>
</b:if>
</div>
<!-- /facebook like this -->

GOOGLE + BUTTON

<!-- Google +1 button Start -->
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<p/>
<div style='float:left;padding: 5px;'>
<g:plusone annotation='bubble' expr:href='data:post.url' size='tall'/>
</div>
</b:if>
<!-- Google +1 button End -->


FACEBOOK SHARE BUTTON

<!-- Facebook Button -->
<div style='float: left; padding: 5px; '>
<a expr:share_url='data:post.url' name='fb_share' rel='nofollow' type='box_count'/>
<script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'/>
</div>
<!-- Facebook Button -->


TWITTER SHARE BUTTON

<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<div style='text-align:left;padding:5px;'>
<a class='twitter-share-button' data-count='vertical' data-related='' data-via='manoj717' expr:data-text='data:post.title' expr:data-url='data:post.url' href='http://twitter.com/share'>Tweet</a>
<script src='http://platform.twitter.com/widgets.js' type='text/javascript'/>
</div>
</b:if>

මේවයි FLOAT හරි ALLIGN හරි තියන තැන් වල තියන LEFT / RIGHT වෙනස් කරලා ඔයාලය ඕන විදියට තැන මාරු කර ගන්න පුලුවන්. මෙතන manoj717 කියන තැනට ඔයාගෙ TWITTER ACCOUNT එකේ නම දෙන්න අමතක කරන්න එපා.

9 comments. :

Your comment is the most important item for me...

අපිත් එක්ක එකතු වෙමු

 
TOP