久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

Discuz! 官方交流社區(qū)

標(biāo)題: 論壇首頁的今日、昨日帖數(shù)、會(huì)員數(shù),最新注冊(cè)會(huì)員,這個(gè)如何屏蔽只能管理員可見? [打印本頁]

作者: 木易    時(shí)間: 2025-2-8 20:17
標(biāo)題: 論壇首頁的今日、昨日帖數(shù)、會(huì)員數(shù),最新注冊(cè)會(huì)員,這個(gè)如何屏蔽只能管理員可見?
如題:論壇首頁的今日、昨日帖數(shù)、會(huì)員數(shù),最新注冊(cè)會(huì)員,這個(gè)如何屏蔽只能管理員可見?或者直接刪除不顯示,請(qǐng)問在哪里修改,謝謝。
作者: 天外飄仙    時(shí)間: 2025-2-8 20:22
是默認(rèn)模板嗎
作者: lzixu    時(shí)間: 2025-2-8 20:26
百度有教程的,我忘了當(dāng)時(shí)我是怎么刪的了

具體搜索一下:怎樣刪除論壇頂部的今日、昨日帖數(shù)顯示的方法
作者: 木易    時(shí)間: 2025-2-8 20:27
lzixu 發(fā)表于 2025-2-8 20:26
百度有教程的,我忘了當(dāng)時(shí)我是怎么刪的了

具體搜索一下:怎樣刪除論壇頂部的今日、昨日帖數(shù)顯示的方法 ...

搜索了,結(jié)果為0
作者: 龍二哥    時(shí)間: 2025-2-8 21:01
木易 發(fā)表于 2025-2-8 20:27
搜索了,結(jié)果為0

template/default/forum/discuz.htm

查找40行
  1. {lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: <em>$postdata[0]</em><span class="pipe">|</span>
復(fù)制代碼



替換為
  1. <!--{if in_array($_G[groupid], array(1, 2,3))}-->{lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: <em>$postdata[0]</em><span class="pipe">|</span><!--{/if}-->
復(fù)制代碼

作者: 龍二哥    時(shí)間: 2025-2-8 21:02
代碼中array(1, 2,3)是不受限的用戶組 id,如果只有管理員可見,只填1即可。
作者: lzixu    時(shí)間: 2025-2-8 21:23
龍二哥 發(fā)表于 2025-2-8 21:02
代碼中array(1, 2,3)是不受限的用戶組 id,如果只有管理員可見,只填1即可。

還能這樣,我去試試,謝謝
作者: 木易    時(shí)間: 2025-2-11 14:11
龍二哥 發(fā)表于 2025-2-8 21:01
template/default/forum/discuz.htm

查找40行

3.5的版本代碼如下:
                        <p class="chart z">{if in_array($_G[groupid], array(1, 2,3))} {lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: <em>$postdata[0]</em><span class="pipe">|</span>{/if}{lang index_posts}: <em>$posts</em><span class="pipe">|</span>{lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em><!--{if $_G['cache']['userstats']['newsetuser']}--><span class="pipe">|</span>{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['cache']['userstats']['newsetuser'])}" target="_blank" class="xi2">$_G['cache']['userstats']['newsetuser']</a></em><!--{/if}--></p>
作者: 木易    時(shí)間: 2025-2-11 14:12
lzixu 發(fā)表于 2025-2-8 21:23
還能這樣,我去試試,謝謝

按你的方法修改后不起作用:
  1.                         <p class="chart z">{if in_array($_G[groupid], array(1, 2,3))} {lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: <em>$postdata[0]</em><span class="pipe">|</span>{/if}{lang index_posts}: <em>$posts</em><span class="pipe">|</span>{lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em><!--{if $_G['cache']['userstats']['newsetuser']}--><span class="pipe">|</span>{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['cache']['userstats']['newsetuser'])}" target="_blank" class="xi2">$_G['cache']['userstats']['newsetuser']</a></em><!--{/if}--></p>
復(fù)制代碼

作者: 木易    時(shí)間: 2025-2-11 14:28
可以了

作者: lzhsxk    時(shí)間: 2025-4-5 16:04
學(xué)習(xí)學(xué)習(xí),修改一下3
作者: lzhsxk    時(shí)間: 2025-4-5 16:23
木易 發(fā)表于 2025-2-11 14:12
按你的方法修改后不起作用:

我修改后,怎么不起作用,是哪個(gè)地方代碼我寫錯(cuò)了?




歡迎光臨 Discuz! 官方交流社區(qū) (http://www.9999xn.com/) Powered by Discuz! W1.0