|
Discuz! X2.5 完美去掉帖子图片弹出“下载附件”
1.在空间找到默认模版里面的discuzcode.htm文件(\template\default\forum\discuzcode.htm)
查找以下代码:- <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">
复制代码 2.接着查找以下代码:- <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'])}-->
复制代码 3.再接着查找以下代码:- <span style="background-color: rgb(255, 255, 255);">
- </span><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>
复制代码 至此修改完成,保存替换原来的discuzcode.htm文件即可。
|
打赏楼主
扫码打赏,你说多少就多少
|