Discuz教程网

[代码修改] Discuz X2.5帖子中添加@好友按鈕

[复制链接]
authicon dly 发表于 2012-11-6 21:27:20 | 显示全部楼层 |阅读模式
为x2.5版本帖子下选擇中加回@好友按鈕及更改门户首页板块调动的链接样式(静态)
加回@好友按鈕
\template\default\forum\viewthread_node.htm
搜索
  1. <!--{if $_G['group']['raterange'] && $post['authorid']}-->
  2. <a href="javascript:;" id="ak_rate" onclick="showWindow('rate', 'https://www.discuz.1314study.com/forum.php?mod=misc&action=rate&tid=$_G[tid]&pid=$post[pid]', 'get', -1);return false;" title="{echo count($postlist[$post[pid]][totalrate]);} {lang people_score}"><i><img src="{IMGDIR}/agree.gif" alt="{lang rate}" />{lang rate}</i></a>
  3. <!--{/if}-->
复制代码
在下增加
  1. <a href="misc.php?mod=invite&action=thread&id=$_G[tid]" onclick="showWindow('invite', this.href, 'get', 0);"><i><img src="{IMGDIR}/activitysmall.gif" alt="{lang invite}" />{lang at_friend}</i></a>
复制代码
沒有演示图啦,有用过x2的朋友都知道是什么样子的了



上一篇:Discuz X2.5 希望这个360的模板能支持宽屏方式
下一篇:Discuz X2.5门户首页板块调动的链接静态化修改
authicon 2y2r 发表于 2012-11-8 18:32:36 | 显示全部楼层
真是难得给力的帖子啊。我只说两句……
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2024-5-16 23:45

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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