论坛帖子内容下面 新浪微博分享代码,
本人论坛已做好,可以去看看
演示网站 陕工职院论坛 :http://shenghuo581.com
修改template/default/forum/viewthread_node.htm
打开文件找到下面代码- <!--{if $post['invisible'] == 0}-->
- <div id="p_btn" class="mtw mbm cl">
- <!--{if !empty($_G['setting']['pluginhooks']['viewthread_share_method'])}-->
- <div class="tshare cl">
- <strong>{lang viewthread_share_to}:</strong>
复制代码 这在段代码下面加入一下代码- <a style="cursor:pointer;" href="javascript:void((function(s,d,e){try{}catch(e){}var
- f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e
- (d.title),'&appkey=2888485506'].join('');function a(){if(!window.open([f,p].join(''),'mb',
- ['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))
- u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})
- (screen,document,encodeURIComponent));"> <img src="static/image/common/sina.png" alt="新浪微博">新浪微博</a>
复制代码 更改里面的&appkey=2888485506值为自己的appkey值就可以了、
以上代码是本人自己研究的,在修改之前请保存原件,以免版本不同或者操作错误造成的乱码。
不会操作的可以下载附件 找到里面的&appkey=2888485506值为自己的appkey值就可以了、
|
|