Tutorial : Letak Kotak Komen FACEBOOK tanpa buang kotak komen BLOGGER

November 03, 2012

komen biasa dari blogger


komen guna facebook


1. Mula-mula sekali pergi ke bahagian design > Edit HTML > Tick Expend widget templates > Download full templates (sebagai langkah keselamatan).

2.  Cari (Ctrl+F) code <div class='comments' id='comments'> kemudian paste kan code dibawah ni selepas code yang korang cari tadi.

<div class='comments-tab' id='fb-comments' onclick='javascript:commentToggle(&quot;#fb-comments&quot;);' title='Comments made with Facebook'><img class='comments-tab-icon' src='http://static.ak.fbcdn.net/rsrc.php/v1/yH/r/eIpbnVKI9lR.png'/><fb:comments-count expr:href='data:post.url'/> Comments</div><div class='comments-tab inactive-select-tab' id='blogger-comments' onclick='javascript:commentToggle(&quot;#blogger-comments&quot;);' title='Comments from Blogger'><img class='comments-tab-icon' src='http://www.blogger.com/img/icon_logo32.gif'/> <data:post.numComments/> Comments</div><div class='clear'/></div><div class='comments-page' id='fb-comments-page'>  <b:if cond='data:blog.pageType == &quot;item&quot;'>   <div id='fb-root'/>   <fb:comments expr:href='data:post.url' num_posts='2' width='400'/>  </b:if> </div><div class='comments comments-page' id='blogger-comments-page'>

3. Kemudian cari code </head> dan pastekan code di bawah ini sebelum </head>

<script src='http://connect.facebook.net/en_US/all.js#xfbml=1'/>
<script src='http://code.jquery.com/jquery-latest.js'/>
<meta content='YOUR ID' property='fb:admins'/>
<script type='text/javascript'>
function commentToggle(selectTab) {
  $(&quot;.comments-tab&quot;).addClass(&quot;inactive-select-tab&quot;);
  $(selectTab).removeClass(&quot;inactive-select-tab&quot;);
  $(&quot;.comments-page&quot;).hide();
  $(selectTab + &quot;-page&quot;).show();
}
</script>


4. Tukar YOUR ID korang sendiri. Kalau korang dah tak jumpa user id facebook korang, korang pegi kat sini 

*  tukarkan username dengan username facebook korang. pastu korang copy id yang korang dapat kat situ.

5. Cari perkataan  /* Comments  (bahagian css code) dan letakkan code dibawah atau Klik Design > Template Design > Advance > Add css dan copy code di bawah

.comments-page {  background-color: #f2f2f2;}
#blogger-comments-page {  padding: 0px 5px;  display: none;}.comments-tab { float: left; padding: 5px; margin-right: 3px; cursor: pointer; background-color: #f2f2f2;}.comments-tab-icon { height: 14px;  width: auto;  margin-right: 3px;}.comments-tab:hover { background-color: #eeeeee;}.inactive-select-tab { background-color: #d1d1d1;}

6.  siap dah pon? hehe.. kalau ada yang tak jadi sila tinggalkan komen ye.. nanti cik emma bantu korang  ^__^


You Might Also Like

3 comments

Popular Posts

Like us on Facebook

Flickr Images