Discuz! X2.5 完美去掉帖子图片弹出“下载附件”等提示框
Discuz! X2.5 完美去掉帖子图片弹出“下载附件”
1.在空间找到默认模版里面的discuzcode.htm文件(\template\default\forum\discuzcode.htm)
查找以下代码:复制代码替换代码为:复制代码2.接着查找以下代码:复制代码替换为以下:复制代码3.再接着查找以下代码:复制代码去掉前面的<br/>
修改为以下代码:复制代码至此修改完成,保存替换原来的discuzcode.htm文件即可。
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">
- <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'])}-->
- <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>
修改为以下代码:
- <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>