大马资讯论坛 - 马来西亚中文资讯平台
标题:
Discuz 7.X facebook like button 插件在每个帖子里 (教学)
[打印本页]
作者:
资讯王
时间:
2010-9-16 07:09
标题:
Discuz 7.X facebook like button 插件在每个帖子里 (教学)
新增一个facebook 赞(like button)到文章里
打开 template/default/viewthread_node.htm
寻找
{$pluginhooks[viewthread_useraction]}
</div>
复制代码
改成以下内容
{$pluginhooks[viewthread_useraction]}
</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>
复制代码
欢迎光临 大马资讯论坛 - 马来西亚中文资讯平台 (http://freeinfo.com.my/)
Powered by Discuz! X3.3