Discuz!教程之如何隐藏版块主题列表中的最后回复时间或最后回复人
2017-08-17 10:22
741 查看
如果所示,在discuz!版块主题列表会显示最后回复人和回复时间,但是由于这个数据是单独存储的而不是直接调用最后回复楼层的信息,因此经常出现于楼层信息无法对应的情况,也有些站长由于其他原因想隐藏此处内容,本文介绍一下如果通过修改模板的方法来隐藏版块主题列表中的最后回复时间或最后回复人:
1.打开文件:
\template\default\forum\forumdisplay_list.htm(此处以默认模板为例,如果使用第三方模板请将default\缓存对应的模板目录查看和修改,如果第三方模板中没有对应文件,请修改默认模板)
2.搜索$thread[lastposter]找到如下代码:
<td class="by"> <cite><!--{if $thread['lastposter']}--><a href="{if $thread[digest] != -2}home.php?mod=space&username=$thread[lastposterenc]{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}" c="1">$thread[lastposter]</a><!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite> <em><a href="{if $thread[digest] != -2 && !$thread[ordertype]}forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost$highlight#lastpost{else}forum.php?mod=viewthread&tid=$thread[tid]{if !$thread[ordertype]}&page={echo max(1, $thread[pages]);}{/if}{/if}">$thread[lastpost]</a></em> </td>3.看到此处稍微会一点html知识的人已经就能修改了,其中$thread[lastposter]是最后回复人,$thread[lastpost]是最后回复时间!
4.修改完成之后上传文件,后台更新缓存。
相关文章推荐
- discuz论坛主题帖子列表页面的最后回复人的url改成id形式的伪静态
- Linux入门教程:如何检查Linux系统的最后重启时间
- Discuz!手机版版块页面主题列表中隔几个主题插入一个广告位的方法
- Discuz!手机版版块页面主题列表中隔几个主题插入一个广告位的方法
- Discuz!首页去掉版块的最后发表、主题数、总帖数
- Discuz!教程之如何隐藏上传附件图片鼠标经过时弹出“下载附件”等信息
- 【Discuz】discuz如何设置VIP特殊用户组免回复可看隐藏内容帖X1.5----X3.2等版本均适合
- Discuz!教程之论坛主题回复超过分页数了但是未分页的解决办法
- Discuz!教程之通过简单php文件实现修改主题发帖时间
- discuz发贴后并未在版块主题列表中显示出来的问题
- QQ空间过滤器,千军万马(97779)网盘资源下载地址提取器,Discuz 论坛隐藏内容自动回复 成功上架到 chrome 商店
- discuz取消某用户隐藏回复的sql
- 【Swing入门教程】如何隐藏JSplitPane中的分割线
- 如何把apk编译时间和最后次git commit的sha值,写入到app中
- 如何把一个文本列表添加到 TListBox 并避免重复项 - 回复 "xnlxw" 的问题
- 学习Discuz! X3.2记录:快速回复插件的最后效果动画
- 如何优雅地用TensorFlow预测时间序列:TFTS库详细教程
- 主题列表后显示作者略缩头像For Discuz!5.5
- DedeCms如何调用Discuz论坛主题等数据方法总结
- 如何控制层在某个时间显示或者隐藏