找到template\default\forum\discuzcode.htm
搜索到代码
<img{if $attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']} class="attprice"{/if} style="cursor:pointer" id="aimg_$attach[aid]" aid="$attach[aid]" src="{STATICURL}image/common/none.gif" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes¬humb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode{else}{$attach[url]}$attachthumb{/if}" inpost="1"{if $_GET['from'] != 'preview'}{/if} />
复制代码
只需要删除其中的代码
onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"
复制代码
下一步再搜索代码
<img{if $attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']} class="attprice"{/if} id="aimg_$attach[aid]" aid="$attach[aid]" src="{STATICURL}image/common/none.gif" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes?humb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" $widthcode id="aimg_$attach[aid]" inpost="1"{if $_GET['from'] != 'preview'}{/if} />
复制代码
删除其中的代码
onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"
复制代码
到这一步就完成了,覆盖之前的代码即可。


常见问题
相关文章
猜你喜欢
- Discuz-内容页-发帖按钮 2021-08-20
- DiscuzX3.2开发手机登录流程 禁止转载 2021-08-20
- 详细分析 Discuz 中的showmessage()函数 及 用法 2021-08-20
- $article[‘related’]Discuz 门户文章内容页的相关文章 2021-08-20
- discuz getuserprofile($field) 获取当前用户扩展字段 2021-08-20
- discuz实现手机版播放优酷.swf视频教程 2021-08-20
- 阿里云提示 Didcuz memcache+ssrf GETSHELL漏洞 修复方法 2021-08-20
- discuz帖子内容页 上一篇 下一篇 代码 2021-08-20
- discuz模板开发无缓存开启方法 2021-08-20
- discuz帖子截取简介str_replace函数和messagecutstr函数组合使用 2021-08-20