本帖最后由 babyfacer 于 2015-6-3 15:12 编辑
这个很烦人呀,干掉他
【教程】DZX3 X2.5去掉图片附件 图片名称(非alt描述)和下载次数
https://discuz.dismall.com/thread-3466261-1-1.html
【版主勿删,其他版块不方便发教程】
演示地址:http://www.chinagirlol.cc/forum-66-1.html
20150603更新(真的X3和X3.1):
\template\***\forum\discuzcode.htm
删除以下代码:
之前的方法都是针对X2.0的 有一个弊端,完全删除了附件的所有提示,这样,会导致无法正常使用 设为封面 功能。2012 0529 在cr180大佬的帮助下,有了针对X2.5的修改方法,当然,如果你觉得那个 设为封面 功能 可要可不要的话,也可以用下面的第二种方法
花了一晚上才弄出来的,别只看帖不回帖呀。多多支持一下呗
同时帮cr180大佬宣传一下,超级站长,非常棒的工具,建站必备
Discuz超级管家 V2.0激进版 云采集/云专题/云排版/超级伪静态/超级重定向
https://discuz.dismall.com/thread-2763167-1-1.html
修改方法【下面提供了懒人包,针对X2.5的(到目前为止的X2.5的各个版本都可以)】:- \template\default\forum\discuzcode.htm
复制代码 第一种:
第一处:
查找:- <div class="tip tip_4 aimg_tip" id="aimg_$attach[aid]_menu" style="position: absolute; display: none">
复制代码 20121101版本的话查找:- <div class="tip tip_4 aimg_tip" id="aimg_$attach[aid]_menu" style="position: absolute; display: none" disautofocus="true">
复制代码 修改为:- <div {if $firstpost && $_G['fid'] && $_G['forum']['picstyle'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $attach['uid'])}class="tip tip_4 aimg_tip" id="aimg_$attach[aid]_menu" {/if}style="position: absolute; display: none">
复制代码 第二处:
查找:- <div class="tip_c xs0">
- <div class="y">$attach[dateline] {lang upload}</div>
- <a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode¬humb=yes" title="$attach[filename] {lang downloads}:$attach[downloads]" target="_blank"><strong>{lang download}</strong> <span class="xs0">($attach[attachsize])</span></a>
- <!--{if $attach[description]}-->
- $attach[description]<!--{/if}-->
- <!--{if $firstpost && $_G['fid'] && $_G['forum']['picstyle'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $attach['uid'])}-->
复制代码 修改为(去掉了中间几行):- <div class="tip_c xs0">
- <!--{if $firstpost && $_G['fid'] && $_G['forum']['picstyle'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $attach['uid'])}-->
复制代码 第三处:
查找:
- <a href="forum.php?mod=ajax&action=setthreadcover&aid=$attach[aid]&fid=$_G[fid]" onclick="showWindow('setcover{$attach[aid]}', this.href)">{lang set_cover}</a>
复制代码 修改为(去掉前面的<br />):- <a href="forum.php?mod=ajax&action=setthreadcover&aid=$attach[aid]&fid=$_G[fid]" onclick="showWindow('setcover{$attach[aid]}', this.href)">{lang set_cover}</a>
复制代码 第二种:
X2-X2.5修改方法: 删除:一共2个位置- onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"
复制代码 查找:- <img{if $attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']} class="attprice"{/if} style="cursor:pointer" id="aimg_$attach[aid]" src="{STATICURL}image/common/none.gif" onclick="zoom(this, this.getAttribute('zoomfile'))" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes¬humb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode{else}{$attach[url]}$attachthumb{/if}" inpost="1" alt="$attach[imgalt]" title="$attach[imgalt]" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" />
- <!--{else}-->
复制代码 改成:- <img{if $attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']} class="attprice"{/if} style="cursor:pointer" id="aimg_$attach[aid]" src="{STATICURL}image/common/none.gif" onclick="zoom(this, this.getAttribute('zoomfile'))" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes¬humb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode{else}{$attach[url]}$attachthumb{/if}" inpost="1" alt="$attach[imgalt]" title="$attach[imgalt]" />
- <!--{else}-->
复制代码 查找:- <img{if $attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']} class="attprice"{/if} id="aimg_$attach[aid]" src="{STATICURL}image/common/none.gif" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes¬humb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" $widthcode id="aimg_$attach[aid]" inpost="1" alt="$attach[imgalt]" title="$attach[imgalt]" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" />
复制代码 改成:- <img{if $attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']} class="attprice"{/if} id="aimg_$attach[aid]" src="{STATICURL}image/common/none.gif" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes¬humb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" $widthcode id="aimg_$attach[aid]" inpost="1" alt="$attach[imgalt]" title="$attach[imgalt]" />
复制代码 之所以收费,完全是为了挣钱升级,我是守财奴,娃哈哈。其实建议你自己改,真的很EASY的
其他教程:
真正正确的官方主帖下方的“更多”分享按钮 修改方法 支持DZX2 X2.5
https://discuz.dismall.com/thread-2481632-1-1.html
linux,IIS,WIN主机,虚拟主机,Nginx主机DZX2.5 X2伪静态规则文件下载 教程
https://discuz.dismall.com/thread-2489176-1-1.html
【ChinaGirl】仿19楼 帖内游客注册提醒/QQ/新浪微博账号登陆 For 7.2/X2/X2.5
https://discuz.dismall.com/thread-2617671-1-1.html
DZX2.0~DZX2.5友情链接横排显示,图片带描述文字友情链接横排显示
https://discuz.dismall.com/thread-2668687-1-1.html
【DZ教程之备份数据】利用帝国备份王备份数据库,搬家教程
https://discuz.dismall.com/thread-2743633-1-1.html
|