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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] X2.5/3.0 防phpwind贴内“喜欢”、“评分”按钮!【精致大方页面美化,免费发布】

[复制链接]
popuppp 发表于 2013-3-25 22:50:01 | 显示全部楼层 |阅读模式
插件发布
插件名称: 防phpwind贴内“喜欢”、“评分”按钮
插件来源: 二次修改他人插件
适用版本: Discuz! X2.5
语言编码: GBK简体 
最后更新时间: 2013-03-25
插件作者: popuppp
插件简介: 原来帖子下方很复杂,很多功能都是用不到的,所以防phpwind贴内“喜欢”、“评分”按钮,让页面更简洁,更直观。
本帖最后由 popuppp 于 2013-4-1 20:47 编辑

网址演示:驻马店论坛 http://bbs.zmd5.com/
图片演示:
X2.5美化前(3.0修改待正式版本发布后提供)

X2.5美化后



修改方法(说明:下方中压缩包中有修改好的懒人包,可以直接覆盖

打开 template/default/forum中的viewthread_node.htm文件(或你默认风格的此文件)

搜索:
  1. <!--{if $post['invisible'] == 0}-->
  2.                                 <div id="p_btn" class="mtw mbm cl">
  3.                                         <!--{if !empty($_G['setting']['pluginhooks']['viewthread_share_method'])}-->
  4.                                                 <div class="tshare cl">
  5.                                                         <strong>{lang viewthread_share_to}:</strong>
  6.                                                         <!--{hook/viewthread_share_method}-->
  7.                                                 </div>
  8.                                         <!--{/if}-->

  9.                                         <!--{if !$post['anonymous'] && helper_access::check_module('follow')}-->
  10.                                         <a href="home.php?mod=spacecp&ac=follow&op=relay&tid=$_G[tid]&from=forum" id="k_relay" onclick="showWindow(this.id, this.href, 'get', 0);" onmouseover="this.title = $('relaynumber').innerHTML + ' {lang activity_member_unit}{lang thread_realy}'"><i><img src="{IMGDIR}/rt.png" alt="{lang thread_realy}" />{lang thread_realy}<span id="relaynumber">{$_G['forum_thread']['relay']}</span></i></a>
  11.                                         <!--{/if}-->
  12.                                         <!--{if !$_G['forum']['disablecollect'] && helper_access::check_module('collection')}-->
  13.                                                 <a href="forum.php?mod=collection&action=edit&op=addthread&tid=$_G[tid]" id="k_collect" onclick="showWindow(this.id, this.href);return false;" onmouseover="this.title = $('collectionnumber').innerHTML + ' {lang activity_member_unit}{lang collection}'"><i><img src="{IMGDIR}/collection.png" alt="{lang thread_share}" />{lang collection}<span id="collectionnumber">{$post['releatcollectionnum']}</span></i></a>
  14.                                         <!--{/if}-->
  15.                                         <!--{if helper_access::check_module('share')}-->
  16.                                                 <a href="home.php?mod=spacecp&ac=share&type=thread&id=$_G[tid]" id="k_share" onclick="showWindow(this.id, this.href, 'get', 0);" onmouseover="this.title = $('sharenumber').innerHTML + ' {lang activity_member_unit}{lang thread_share}'"><i><img src="{IMGDIR}/oshr.png" alt="{lang thread_share}" />{lang thread_share}<span id="sharenumber">{$_G['forum_thread']['sharetimes']}</span></i></a>
  17.                                         <!--{/if}-->
  18.                                         <a href="home.php?mod=spacecp&ac=favorite&type=thread&id=$_G[tid]" id="k_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" onmouseover="this.title = $('favoritenumber').innerHTML + ' {lang activity_member_unit}{lang thread_favorite}'"><i><img src="{IMGDIR}/fav.gif" alt="{lang thread_favorite}" />{lang thread_favorite}<span id="favoritenumber">{$_G['forum_thread']['favtimes']}</span></i></a>
  19.                                         <!--{if ($_G['group']['allowrecommend'] || !$_G['uid']) && $_G['setting']['recommendthread']['status']}-->
  20.                                                 <!--{if !empty($_G['setting']['recommendthread']['addtext'])}-->
  21.                                                 <a id="recommend_add" href="forum.php?mod=misc&action=recommend&do=add&tid=$_G[tid]&hash={FORMHASH}" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate({$_G['group']['allowrecommend']})');return false;"{else} onclick="showWindow('login', this.href)"{/if} onmouseover="this.title = $('recommendv_add').innerHTML + ' {lang activity_member_unit}$_G[setting][recommendthread][addtext]'"><i><img src="{IMGDIR}/rec_add.gif" alt="$_G['setting']['recommendthread'][addtext]" />$_G['setting']['recommendthread'][addtext]<span id="recommendv_add">$_G[forum_thread][recommend_add]</span></i></a>
  22.                                                 <!--{/if}-->
  23.                                                 <!--{if !empty($_G['setting']['recommendthread']['subtracttext'])}-->
  24.                                                 <a id="recommend_subtract" href="forum.php?mod=misc&action=recommend&do=subtract&tid=$_G[tid]&hash={FORMHASH}" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate(-{$_G['group']['allowrecommend']})');return false;"{else} onclick="showWindow('login', this.href)"{/if} onmouseover="this.title = $('recommendv_subtract').innerHTML + ' {lang activity_member_unit}$_G[setting][recommendthread][subtracttext]'"><i><img src="{IMGDIR}/rec_subtract.gif" alt="$_G['setting']['recommendthread'][subtracttext]" />$_G['setting']['recommendthread'][subtracttext]<span id="recommendv_subtract">$_G[forum_thread][recommend_sub]</span></i></a>
  25.                                                 <!--{/if}-->
  26.                                         <!--{/if}-->
  27.                                         <!--{if $_G['group']['raterange'] && $post['authorid']}-->
  28.                                                 <a href="javascript:;" id="ak_rate" onclick="showWindow('rate', '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>
  29.                                         <!--{/if}-->
  30.                                         <!--{hook/viewthread_useraction}-->
  31.                                 </div>
  32.                         <!--{/if}-->

  33.                 <!--{/if}-->
复制代码
修改为:
  1. <link href="popuppp_img/css.css" type="text/css" rel="stylesheet">

  2. <div class="read_appbtn_wrap">
  3.                                                                 <a role="button" rel="nofollow" href="home.php?mod=spacecp&ac=favorite&type=thread&id=$_G[tid]"   class="icon_read_like J_like_btn J_qlogin_trigger" id="k_favorite"   onclick="showWindow(this.id, this.href, 'get', 0);" onmouseover="this.title = $('favoritenumber').innerHTML + ' {lang activity_member_unit}{lang thread_favorite}'" >
  4.                                         <span>喜欢</span><em class="J_like_count">{$_G['forum_thread']['favtimes']}</em>
  5.                                 </a>
  6.          
  7.         <!--{if $_G['group']['raterange'] && $post['authorid']}-->

  8. <a role="button" rel="nofollow"  href="javascript:;" id="ak_rate" onclick="showWindow('rate', '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}" class="icon_read_mark J_plugin_read_mark" ><span>评分</span><em>{echo count($postlist[$post[pid]][totalrate]);}</em></a>


  9.                                         <!--{/if}-->
  10.                         </div>
  11.                         <!--{if $post['invisible'] == 0}-->

  12.                                 <div id="p_btn" class="mtw mbm cl">

  13.                                         <!--{if !empty($_G['setting']['pluginhooks']['viewthread_share_method'])}-->

  14.                                                 <div class="tshare cl">

  15.                                                         <strong>{lang viewthread_share_to}:</strong>

  16.                                                         <!--{hook/viewthread_share_method}-->

  17.                                                 </div>

  18.                                         <!--{/if}-->
  19.          

  20.                                         <!--{hook/viewthread_useraction}-->

  21.                                 </div>

  22.                         <!--{/if}-->



  23.                 <!--{/if}-->
复制代码
将附件下载解压后得到文件夹 popuppp_img 上传到论坛根目录,然后更新缓存即可。
游客,如果您要查看本帖隐藏内容请回复


AD:由恒泰华生产充气蹦床公司提供文章

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
湖中沉 发表于 2013-3-25 22:54:37 | 显示全部楼层
前排支持
回复

使用道具 举报

小芸妮 发表于 2013-3-26 00:33:21 | 显示全部楼层
很不错,下载了。
回复

使用道具 举报

小芸妮 发表于 2013-3-26 01:00:55 | 显示全部楼层
懒人包里面没修改好的文件。
回复

使用道具 举报

嘎嘎给力 发表于 2013-3-26 08:48:35 | 显示全部楼层
这个能不能实现游客投票功能 否则是没有意义的
回复

使用道具 举报

ohalu 发表于 2013-3-26 08:57:31 | 显示全部楼层
很不错,下载了。
回复

使用道具 举报

wmwlkj 发表于 2013-3-26 09:37:34 | 显示全部楼层
回复

使用道具 举报

leisun321 发表于 2013-3-26 10:11:09 | 显示全部楼层
我去当小白了
http://vod.76at.com/
回复

使用道具 举报

1314学习网 发表于 2013-3-26 10:56:11 | 显示全部楼层
不错,支持下
回复

使用道具 举报

呵呵笑站长 发表于 2013-3-26 11:21:04 | 显示全部楼层
:victory:
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-29 15:16 , Processed in 0.120564 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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