Discuz! X2.5 完美去掉帖子图片弹出“下载附件”等提示框
Discuz! X2.5 完美去掉帖子图片弹出“下载附件”1.在空间找到默认模版里面的discuzcode.htm文件(\template\default\forum\discuzcode.htm)
查找以下代码:<div class="tip tip_4 aimg_tip" id="aimg_$attach_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_menu" {/if}style="position: absolute; display: none">2.接着查找以下代码:<div class="tip_c xs0">
<div class="y">$attach {lang upload}</div>
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode¬humb=yes" title="$attach {lang downloads}:$attach" target="_blank"><strong>{lang download}</strong> <span class="xs0">($attach)</span></a>
<!--{if $attach}-->
$attach<!--{/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&fid=$_G" onclick="showWindow('setcover{$attach}', this.href)">{lang set_cover}</a>去掉前面的<br/>
修改为以下代码:<a href="forum.php?mod=ajax&action=setthreadcover&aid=$attach&fid=$_G" onclick="showWindow('setcover{$attach}', this.href)">{lang set_cover}</a>至此修改完成,保存替换原来的discuzcode.htm文件即可。
页:
[1]