Discuz! X2.5 完美去掉帖子图片弹出“下载附件”等提示框

网络编辑 20/3/19 1.6k 0

Discuz! X2.5 完美去掉帖子图片弹出“下载附件”

1.在空间找到默认模版里面的discuzcode.htm文件(\template\default\forum\discuzcode.htm)
查找以下代码:
  1. <div class="tip tip_4 aimg_tip" id="aimg_$attach[aid]_menu" style="position: absolute; display: none" disautofocus="true">
复制代码
替换代码为:
  1. <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.接着查找以下代码:
  1. <div class="tip_c xs0">
  2.                                         <div class="y">$attach[dateline] {lang upload}</div>
  3.                                         <a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode&#172;humb=yes" title="$attach[filename] {lang downloads}:$attach[downloads]" target="_blank"><strong>{lang download}</strong> <span class="xs0">($attach[attachsize])</span></a>
  4.                                         <!--{if $attach[description]}-->
  5. $attach[description]<!--{/if}-->
  6.                                         <!--{if $firstpost && $_G['fid'] && $_G['forum']['picstyle'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $attach['uid'])}-->
复制代码
替换为以下:
  1. <div class="tip_c xs0">
  2.                                         <!--{if $firstpost && $_G['fid'] && $_G['forum']['picstyle'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $attach['uid'])}-->
复制代码
3.再接着查找以下代码:
  1. <span style="background-color: rgb(255, 255, 255);">
  2. </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/>
修改为以下代码:
  1. <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文件即可。
请勿发布不友善或者负能量的内容。与人为善,比聪明更重要!
您需要登录后才可以回帖 登录 | 注册
本版积分规则