看效果图吧!
步骤:
1、打开你模板(template/default/forum/)目录下的viewthread_node_body.htm文件,查找:2、回车换行后,在后面加入百度分享按钮的代码:- <!-- Baidu Button BEGIN -->
- <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare" style="padding-left:60px;">
- <a class="bds_tsina"></a>
- <a class="bds_qzone"></a>
- <a class="bds_tqq"></a>
- <a class="bds_renren"></a>
- <a class="bds_t163"></a>
- <a class="bds_tieba"></a>
- <a class="bds_baidu"></a>
- <a class="bds_kaixin001"></a>
- <a class="bds_hi"></a>
- <a class="bds_youdao"></a>
- <a class="bds_tqf"></a>
- <a class="bds_msn"></a>
- <a class="bds_sqq"></a>
- <span class="bds_more"></span>
- <a class="shareCount"></a>
- </div>
- <script type="text/javascript" id="bdshare_js" data="type=tools&uid=746779" ></script>
- <script type="text/javascript" id="bdshell_js"></script>
- <script type="text/javascript">
- document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
- </script>
- <!-- Baidu Button END -->
复制代码 3、保存并上传覆盖文件(如果怕出错,请备份viewthread_node_body.htm),后台更新缓存。
4、OK,你需要的效果出来了,简单吧。
|
上一篇: discuzX3.0 完美的diy N格,支持各种浏览器,无错!下一篇: Discuz X3修改默认随机干扰码的方法,还是很简单方便
|