Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

x1.5.1非默认模版无法调用qq分享-bug

[复制链接]
lining3721 发表于 2011-7-1 10:59:28 | 显示全部楼层 |阅读模式
默认模版下正常:
<strong>分享到:</strong><a href="javascript:void(0);" ref="http://bbs.xxx.cn/home.php?mod=spacecp&amp;ac=plugin&amp;id=qqconnect:spacecp&amp;pluginop=share&amp;sh_type=1&amp;thread_id=55" id="k_qqshare" title="QQ空间" style="background-image: url(&quot;static/image/common/qzone.gif&quot;);">QQ空间</a><a href="javascript:void(0);" ref="http://bbs.xxx.cn/home.php?mod=spacecp&amp;ac=plugin&amp;id=qqconnect:spacecp&amp;pluginop=share&amp;sh_type=2&amp;thread_id=55" id="k_weiboshare" title="腾讯微博" style="background-image: url(&quot;static/image/common/weibo.png&quot;);">腾讯微博</a><a href="javascript:void(0);" ref="http://bbs.xxx.cn/home.php?mod=spacecp&amp;ac=plugin&amp;id=qqconnect:spacecp&amp;pluginop=share&amp;sh_type=3&amp;thread_id=55" id="k_pengyoushare" title="腾讯朋友" style="background-image: url(&quot;static/image/common/pengyou.png&quot;);">腾讯朋友</a><script type="text/javascript">var _is_oauth_user = true;var _is_feed_auth = true;_is_feed_auth = true;var _share_buttons = ['k_qqshare', 'k_weiboshare', 'k_pengyoushare'];function connect_share_init() {for (var i = 0; i < _share_buttons.length; i++) {$(_share_buttons).onclick = function () {connect_share_form(this);return false;}}}function connect_share_form(obj) {if (_is_oauth_user && _is_feed_auth) {var _url = obj.getAttribute('ref');showWindow(obj.id, _url, 'get', 1);} else {if (!_is_oauth_user) {var _text = '很抱歉,由于分享功能升级,您需要使用QQ帐号重新登录本站,即可马上体验全新的分享到QQ空间、腾讯微博和腾讯朋友功能。<br /><span style="font-size: 12px;">提示:点击<a href="http://80era.cn/member-logging-action-logout-formhash-c5215ad4.html" class="xi2">这里退出</a>后,重新使用QQ账号登录。</span>';var _button = '我知道了';showDialog(_text, 'notice', null, 'connect_goto_setting()', 0, null, null, _button);} else if (!_is_feed_auth) {var _title = '授权提示';var _text = '独乐乐不如众乐乐,马上完善授权,您将可以把本站精彩内容分享到QQ空间、腾讯微博和腾讯朋友,跟大家分享每个精彩瞬间。';var _button = '修改授权';showDialog(_text, 'notice', _title, 'connect_goto_setting()', 0, null, null, _button);}}}function connect_goto_setting() {if (_is_oauth_user) {var _url = "http://bbs.xxx.cn/home.php?mod=spacecp&ac=plugin&id=qqconnect:spacecp";hideMenu('fwin_dialog', 'dialog');var _newWindow = window.open(_url, 'newWindow');_newWindow.focus();} else {hideMenu('fwin_dialog', 'dialog');}}_attachEvent(window, 'load', function(){connect_share_init();});</script>
均正常。
非默认模版:
<div class="uo nrate"><a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http%3A%2F%2Fbbs.80era.cn%2Fthread-39-1-1.html&amp;type=1" id="k_qqshare" onclick="return connect_share(connect_share_api, connect_uin, connect_sid)" target="_blank" title="!connect_viewthread_share_to_qzone!">!connect_viewthread_share_to_qzone!</a><a href="http://connect.discuz.qq.com/mblog/redirect?oauth_consumer_key=10037273&amp;title=%BE%F8%B7%C7%CB%D1%CB%F7%D2%FD%C7%E6%BF%C9%D2%D4%D5%D2%B5%BD%C9%F1%BB%FA%C3%EE%CB%E3%B3%A4%B7%E7%B5%DA1%B0%E6-3%B0%E6&amp;url=http%3A%2F%2Fbbs.80era.cn%2Fthread-39-1-1.html&amp;sig=19d063c5ad8f987c1a02ddc3fe4eb016" id="k_qqt" onclick="return connect_share(connect_t_api, connect_uin, connect_sid)" target="_blank" title="!connect_viewthread_share_to_t!">!connect_viewthread_share_to_t!</a><a title="3 人分享" href="home.php?mod=spacecp&amp;ac=share&amp;type=thread&amp;id=39" id="k_share" onclick="showWindow(this.id, this.href, 'get', 0);" onmouseover="this朋友分享不显示,无图标,而且分享出错。连接不上

请官方给个解决思路啊。谢谢


 楼主| lining3721 发表于 2011-7-1 12:43:04 | 显示全部楼层
以解决问题。对照默认viewthread_node.htm的修改即可。:victory::victory::victory:
回复

使用道具 举报

qzzq2002 发表于 2011-8-13 22:05:01 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-10-5 11:26 , Processed in 0.101271 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表