本帖最后由 ★...馒头 于 2011-8-28 23:51 编辑
因为7.2插件版的“分享到”一直有问题,放在那里又不能用,去掉是最好啦!
下面就分享下去掉“分享到”的方法:
1.打开根目录plugins/qqconnect/templates下的module.htm
2.找到一下代码:
<div id="connect_share_btn">
<link rel="stylesheet" type="text/css" href="plugins/qqconnect/templates/extend_module.css" />
<strong>{lang qqconnect:connect_viewthread_share_title}:</strong>
<a href="javascript:void(0);" id="k_qqshare" onclick="postToQzone();" title="{lang qqconnect:connect_viewthread_share_to_qzone}"><i><img src="{IMGDIR}/qzone.gif" alt="{lang qqconnect:connect_viewthread_share_to_qzone}" />{lang qqconnect:connect_viewthread_share_to_qzone}</i></a>
<a href="javascript:void(0);" onclick="postToWb();" id="k_weiboshare" title="{lang qqconnect:connect_viewthread_share_to_weibo}"><i><img src="{IMGDIR}/weibo.png" alt="{lang qqconnect:connect_viewthread_share_to_weibo}" />{lang qqconnect:connect_viewthread_share_to_weibo}</i></a>
<a href="javascript:void(0);" onclick="postToPengyou();" id="k_pengyoushare" title="{lang qqconnect:connect_viewthread_share_to_pengyou}"><i><img src="{IMGDIR}/pengyou.png" alt="{lang qqconnect:connect_viewthread_share_to_pengyou}" />{lang qqconnect:connect_viewthread_share_to_pengyou}</i></a>
<script type="text/javascript">
function postToWb(){
var _t = encodeURI(document.title);
var _url = encodeURIComponent(document.location);
var _appkey = encodeURI("{$connect_setting['weibo_appkey']}");
var _pic = "{$connect_post['share_images']}";
var _site = encodeURIComponent("{$bbname}");
var _from = 'discuz';
var _u = 'http://v.t.qq.com/share/share.php?url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic+'&title='+_t+'&from='+_from;
window.open( _u,'', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
}
function postToQzone(){
var _url = encodeURIComponent(document.location.href);
var _site = encodeURIComponent("{$bbname}");
var _title = encodeURIComponent("{$GLOBALS['thread']['subject']}");
var _pics = "{$connect_post['share_images']}";
var _u = '{$connect_setting[qzone_public_share_url]}?url='+_url+'&site='+_site+'&title='+_title+'&pics='+_pics+'&from='+_from;
var _from = 'discuz';
window.open(_u);
}
function postToPengyou(){
var _url = encodeURIComponent(document.location.href);
var _site = encodeURIComponent("{$bbname}");
var _title = encodeURIComponent("{$GLOBALS['thread']['subject']}");
var _pics = "{$connect_post['share_images']}";
var _from = 'discuz';
var _u = '{$connect_setting[qzone_public_share_url]}?to=pengyou&url='+_url+'&site='+_site+'&title='+_title+'&pics='+_pics+'&from='+_from;
window.open(_u);
}
</script>
</div>
3.删除这段代码,并更新缓存!
OK!大功告成 |