找回密码
 注册
查看: 2954|回复: 1
收起左侧

[分享] DX1.5 一键推荐腾讯微博(去除无用附加标题版)

[复制链接]

5412

主题

8453

帖子

1万

积分

管理员

出售国内外虚拟空间

Rank: 10Rank: 10Rank: 10

积分
14896
帖子
8453
精华
67
体力
14896 点
蓝豆
2391 点
注册时间
2007-6-8

终身成就奖LY官方团队会员身份ID卡

发表于 2010-10-27 11:29:54 | 显示全部楼层 |阅读模式
/template/default/forum/viewthread_node.htm   查找
  1. <em class="xg2">{lang readperm_thread} $_G[forum_thread][readperm]</em><!--{/if}-->
复制代码
下面添加
  1.                                         <span class="pipe">|</span><a href="javascript:void(0)" onclick="postToWb();">
  2.                                         <font color="#6633FF">转播到腾讯微博</font></a>
  3.                                         <script type="text/javascript">
  4.                                         function postToWb(){
  5.                                         var _t = encodeURI("【论坛推送】$_G[forum_thread][subject](By:$post[author])");
  6.                                         var _url = encodeURI(document.location);
  7.                                         var _appkey = encodeURI("appkey");//你从腾讯获得的appkey
  8.                                         var _pic = encodeURI('');//(列如:var _pic='图片url1|图片url2|图片url3....)
  9.                                         var _site = 'http://www.lanyudongli.com';//你的网站地址
  10.                                         var _u = 'http://v.t.qq.com/share/share.php?title='+_t+'&url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic;
  11.                                         window.open( _u,'转播到腾讯微博', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );}
  12.                                         </script>
复制代码
  1. 其中 var _site = 'http://www.lanyudongli.com';//你的网站地址
复制代码
替换成自己的网址
出售国内或美国高性能虚拟空间,高速VPS以及服务器! 同时承接各种类型的网站制作,网站维护,支付宝交易安全放心!    联系QQ:6102031
懒得打字嘛,点击右侧快捷回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

网站公告上一条 /2 下一条

GMT+8, 2025-4-28 09:24 , Processed in 0.159291 second(s), 23 queries , Gzip On.

© 2006-2022 Powered by Discuz! X3.4

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