找回密码
 注册帐号
查看: 977|回复: 0

Discuz去掉帖子内的图片提示和下载的提示框

[复制链接]

141

主题

6

回帖

1279

积分

筑基

发表于 2018-6-20 21:07:24 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

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

×
本帖最后由 冷面流氓 于 2018-6-20 21:10 编辑

图片就不截了,这浏览器有点问题
打开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">         <div class="xs0">           <p><strong>$attach[filename]</strong> <em class="xg1">($attach[attachsize], {lang downloads}: $attach[downloads])</em></p>           <p>             <a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode&not;humb=yes" target="_blank">{lang download}</a>             <!--{if helper_access::check_module('album')}-->                <a href="javascript:;" onclick="showWindow(this.id, this.getAttribute('url'), 'get', 0);" id="savephoto_$attach[aid]" url="home.php?mod=spacecp&ac=album&op=saveforumphoto&aid=$attach[aid]&handlekey=savephoto_$attach[aid]">{lang save_to_album}</a>             <!--{/if}-->             <!--{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>             <!--{/if}-->           </p>           <!--{if $attach[description]}--><p>$attach[description]</p><!--{/if}-->           <p class="xg1 y">$attach[dateline] {lang upload}</p>
复制代码


直接删除即可
如果想让设为封面显示(只有在开启了封面的版块才显示)就将上面代码替换为下面的代码
  1.             <!--{if $firstpost && $_G['fid'] && $_G['forum']['picstyle'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $attach['uid'])}-->       <div class="tip tip_4 aimg_tip" id="aimg_$attach[aid]_menu" style="position: absolute; display: none" disautofocus="true">         <div class="xs0">           <p>               <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><a class="xg1 y">$attach[dateline] {lang upload}</a> </p>             <!--{/if}-->                      <!--{if $attach[description]}--><p>$attach[description]</p><!--{/if}-->
复制代码


今天有点郁闷(╥﹏╥)
您需要登录后才可以回帖 登录 | 注册帐号

本版积分规则

Archiver|sitemap|小黑屋|手机版原版|安全之家

GMT+8, 2025-4-11 05:38 , Processed in 0.032986 second(s), 8 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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