Discuz教程网

带“分享到、收藏、百度搜索、联系QQ”的代码

[复制链接]
authicon dly 发表于 2011-4-7 14:35:19 | 显示全部楼层 |阅读模式
插件作者: tgou16.com 无法下载,请举报
插件编码: GBK简体 UTF8简体 BIG5繁体 UTF8繁体 
适用版本: Discuz! X1.5 
支持站点: http://www.tgou16.com
作品介绍: 不错的帖子上带“分享到、收藏、百度搜索、联系QQ”的代码,本人亲测试,才分享给大家。记得加分哟。



使用方法:

打开template/default/forum/viewthread_node.htm

找到以下代码:

  1. <span class="pipe">|</span><a href="forum.php?mod=viewthread&action=printable&tid=$_G[tid]" target="_blank">{lang
  2. thread_printable}</a>
复制代码
在下边加上
  1. <!--分享到开始-->
  2. <span class="pipe">| <a href="http://www.jiathis.com/share/" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank">分享</a> <span class="jiathis_separator">|</span> </span><a href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="image/fx/renren.gif" height="16" width="16" align="absmiddle" alt="分享到校内人人网"></a> <a href="javascript:void(window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(document.location.href)));"><img src="image/fx/Qzone.gif" height="16" width="16" align="absmiddle" alt="分享到QQ空间"></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();"><img src="image/fx/kaixin001.gif" height="16" width="16" align="absmiddle" alt="转贴到开心网"></a> <a href="javascript:void(function() {var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:'',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'& sel='+e(s)+'&v=1',x=function() {if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'& amp;r=1'};if(/Firefox/.test(navigator.userAgent)) {setTimeout(x,0)}else{x()}})()"><img src="image/fx/douban.gif" height="16" width="16" align="absmiddle" alt="收藏到豆瓣"></a> <a href="javascript:window.external.AddFavorite(location.href,'★'+document.title)"><img src="image/fx/ie.gif" width="16" height="16" align="absmiddle" alt="添加到IE收藏夹" /></a> <a href="http://www.baidu.com/s?wd=$post[subject]" target="_blank"><img src="image/fx/baidu.gif" width="16" height="16" align="absmiddle" alt="百度一下" /></a><!--分享到结束--> | <a href="http://wpa.qq.com/msgrd?v=3&uin=32051860&site=qq&menu=yes"><img border="0" src=' http://wpa.qq.com/pa?p=1:32051860:4' alt="中介" /> 32051860</a>(广告)
复制代码

之前的竖杠“|”之前有多余的空格,大家可以把之前代码间的换行删除就可以解决









上一篇:Discuz 7.2短消息改装提醒插件
下一篇:Discuz X1.5开口中插件V5.0
authicon 陶衣小可 发表于 2011-5-8 15:59:47 | 显示全部楼层
强人,佩服死了。
authicon kurt226 发表于 2011-5-13 08:59:34 | 显示全部楼层
真的有意思!
authicon fhiejkl 发表于 2011-5-21 10:52:55 | 显示全部楼层
好辛苦才找到啊
authicon 风中徜徉 发表于 2011-5-28 18:59:35 | 显示全部楼层
这个不错呀
authicon №小乖 发表于 2011-6-22 04:00:06 | 显示全部楼层
万分感谢楼主
authicon 蓝色天空k 发表于 2011-6-23 00:00:10 | 显示全部楼层
支持!好东西,拿走了!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 05:37

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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