新增一個facebook 讚 (like button)到文章裡
插件名稱: 新增一個facebook 讚 (like button)到文章裡適用版本: 7.2
作 者: www.scout-bbs.idv.tw
演示: http://www.scout-bbs.idv.tw/bbs/thread-14538-1-1.html
like button參數可以參考以下網址
http://developers.facebook.com/docs/reference/plugins/like#
開啟 template/default/viewthread_node.htm
找到{$pluginhooks}
</div>改成以下內容
{$pluginhooks}
</div>
<script>document.write("<iframe src='http://www.facebook.com/plugins/like.php?href="+document.URL+"&layout=standard&show_faces=false&width=450&action=like&font=verdana&colorscheme=light&height=80' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:450px; height:35px;' allowTransparency='true'></iframe>")</script>
頁:
[1]