Pasang button "LIKE" Facebook di blog..

Sunday, June 27, 2010 0 comments
Salam semua, apa kabor? Sihat? Hari aku ade nak share tutorial skit pasal nak letak BUTTON "LIKE" dan juga cara-cara meletakkan comment facebook anda di blog. Tutorial nie aku jmp kt blog hitech-tip & arcx13, credit to both of them.

So step-step dia camnie la:
  1. Mula-mula backup dulu korangnyer blogger template. Takut tak jadi,leh  install balik tapi insyallah jadi nyer.Klik "Download Full Template".
    image
  2. Tick dekat butang "Expand Widget Templates". Pastu cari XML code:
    Tip: Kalau tak jumpa, try search data:post.body sampai jumpa ending yang cmni />
  3. Kalau dah jumpa, paste je code kt bawah ni SELEPAS line tue:
  4. <iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&layout=standard&show-faces=true&width=530&height=60&action=like&colorscheme=light"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:530px; height:60px'/>
Result:
image

Changing the Like' button to 'Recommend'
Kalo xmo like, leh tukar jadi recommend or watever yg korang nak la. Just tukar dekat action=like kepada action=(ape2 jer yg korang suka). Code kat bawah ni contoh untuk recommend.
<iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&layout=standard&show-faces=true&width=530&height=60&action=recommend&colorscheme=light"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:530px; height:60px'/>
      4. Result:
image 
     5. Lepas sudah, tekan la "SAVE".


0 comments:

 

©Copyright 2011 Ini Kisah Kami ;) | QQB

Web Analytics