TUTORIAL LETAK FACEBOOK KOMEN DAN BLOG KOMEN

Tadi Viva La Me bertanya macam mana nak buat komen facebook dan Blog sekali gus..:)



1st of all, Buka Dashboard > Design > Edit HTML > Tick Expend widget templates > Download full templates (sebagai langkah keselamatan).

2. Cari (Ctrl+F) Kod  <div class='comments' id='comments'> , kemudian paste kan code dibawah ni selepas code<div class='comments' id='comments'> 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'>

Langkah ke-3. Cari kod </head>
Pastekan code dibawah 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='FACEBOOK ID' property='fb:admins'/> <script type='text/javascript'>function commentToggle(selectTab) {   $(".comments-tab").addClass("inactive-select-tab");   $(selectTab).removeClass("inactive-select-tab");   $(".comments-page").hide();   $(selectTab + "-page").show(); }</script>
Nota : Pastikan FACEBOOK ID ditukar dengan ID Facebook korang. 

Untuk dapatkan ID Facbook :  Sign In ke Facebook korang dan tengok URL di bahgian profile. contohnya : http://www.facebook.com/21114210. ID anda adalah 21114210.

.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;}


Last sekali,  Copy dan paste code diatas sebelum perkataan ]]></b:skin>

NANG FOR ME HERE!!!!!




No comments:

Post a Comment

‎(◕‿◕) (◕‿-) (✖‿ ✖) (≧◡≦) (¬‿¬) (>.<)