allthebest 發表於 2019-7-13 00:53:02

discuz论坛今日昨日发帖数0,正确处理方法分享!

<br /><br /><img title="01.jpg" id="aimg_1246" aid="1246" src1="static/image/common/none.gif" zoom="https://www.dismall.com/data/attachment/forum/201907/13/003502rbwybf3l26cl7959.jpg" src="https://www.dismall.com/data/attachment/forum/201907/13/003502rbwybf3l26cl7959.jpg" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /><br /><br />Discuz.net 时,最多人问如何删除红框内容?<br /><br />0帖不好看?<br /><br />但是,今日昨日发帖2数字,长期0帖对站长而言,有站点要不要改革或关闭作用;理应保留让站长看才好呢!<br /><br />解决办法:<br /><br />打开<br /><br />template/default/forum/discuz.htm<br /><br />查找40行<br /><br /><ol><li>{lang index_today}: &lt;em&gt;$todayposts&lt;/em&gt;&lt;span class=&quot;pipe&quot;&gt;|&lt;/span&gt;{lang index_yesterday}: &lt;em&gt;$postdata&lt;/em&gt;&lt;span class=&quot;pipe&quot;&gt;|&lt;/span&gt;</ol><br /><br />替换为:<br /><br /><ol><li>&lt;!--{if in_array($_G, array(1, 2,3))}--&gt;{lang index_today}: &lt;em&gt;$todayposts&lt;/em&gt;&lt;span class=&quot;pipe&quot;&gt;|&lt;/span&gt;{lang index_yesterday}: &lt;em&gt;$postdata&lt;/em&gt;&lt;span class=&quot;pipe&quot;&gt;|&lt;/span&gt;&lt;!--{/if}--&gt;</ol><br /><br />array(1,2,3) 是管理员、超级版主、版主不受限的用户组 id都看得到;如果只有管理员可见,只填1即可。<br /><br />修改好后,更新缓存。<br />今日<em>, </em>昨日<em>, </em>发帖<em>, </em>站长<em>, </em>discuz

Sonicboy 發表於 2019-7-21 02:56:56

楼主分享的都是干货,这个也可以用上

台前CC网 發表於 2019-7-21 18:08:20

<img title="360截图20190721180927394.jpg" id="aimg_1654" aid="1654" src1="static/image/common/none.gif" zoom="https://www.dismall.com/data/attachment/forum/201907/21/180703bwvpvsfvwsvgwszr.jpg" src="https://www.dismall.com/data/attachment/forum/201907/21/180703bwvpvsfvwsvgwszr.jpg" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /><br /><br />你好,请问这个怎么解决,每天都是显示很多 实际只有几个帖子<br />

allthebest 發表於 2019-7-21 18:37:16

<br /><br />更新帖子统计<br /><br />还有问题<br /><br />安装问题求助 版块 开新帖问

pmxsd 發表於 2019-7-21 21:11:10

挺好的 现在论坛就是还在热情坚持 有些数据不看也罢
頁: [1]
查看完整版本: discuz论坛今日昨日发帖数0,正确处理方法分享!