打开template/模板/forum/viewthread_node.htm文件,找到
- <!--{subtemplate forum/viewthread_node_body}-->
- </div>
复制代码
然后替换为以下代码:
- <!--{subtemplate forum/viewthread_node_body}-->
- </div>
- <!--{if !IS_ROBOT && $post['first'] }-->
- <script type="text/javascript">
- function postToWb(){
- var _t = encodeURI(document.title);
- var _url = encodeURI(document.location);
- var _appkey = encodeURI("appkey");//你从腾讯获得的appkey
- var _pic = encodeURI('');//(列如:var _pic='图片url1|图片url2|图片url3....)
- var _site = '';//你的网站地址
- var _u = 'http://v.t.qq.com/share/share.php?title='+_t+'&url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic;
- window.open( _u,'转播到腾讯微博', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
- }
- </script>
- <table height="35" align="center"><tr><td>
- <a href="javascript:void(0)" onclick="postToWb();" style="height:24px;font-size:14px;line-height:24px;"><img src="{IMGDIR}/share3.gif" align="absmiddle"/></a>
- <a href="javascript:void((function(s,d,e,r,l,p,t,z,c){var%20f='http://v.t.sina.com.cn/share/share.php?appkey=1178731575',u=z||d.location,p=['&url=',e(u),'&title=',e(t||d.title),'&source=',e(r),'&sourceUrl=',e(l),'&content=',c||'gb2312','&pic=',e(p||'')].join('');function%20a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=440,height=430,left=',(s.width-440)/2,',top=',(s.height-430)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent,'','','','','',''));"><img alt="分享至新浪微博" src="{IMGDIR}/share1.gif" align="absMiddle" border="0"></a> <a href="{$_G[siteurl]}forum.php?mod=viewthread&tid=$_G[tid]$fromuid" onclick="return copyThreadUrl(this)" style="height:24px;font-size:14px;line-height:24px;"><img src="{IMGDIR}/share2.gif" align="absmiddle"/></a>
- </td>
- </tr></table>
- <!--{/if}-->
复制代码
将图片放到static/image/common即可!
|