pfaffman
(Jay Pfaffman)
11월 14, 2024, 2:10오후
1
Install this theme component
Display the old about statistics under the moderators and hide the new statistics on the right sidebar.
At the time I wrote this the statistics in the right sidebar are not wrapped in a single class, so I had to hide the <h3> header with last-child. I’m not sure how fragile that might be.
Thanks to @Richie and the Grey Arrows Drone Club for paying to develop this theme component and it’s continued maintenance for the first year.
16개의 좋아요
pfaffman
(Jay Pfaffman)
11월 14, 2024, 3:23오후
3
Not to those in the know, and especially, those who know more than I do! It’s rare that I get anything done without asking for help here, even if I’m the one who ends up providing it.
7개의 좋아요
Firstly, it’s great to have something from “legacy” that’s actually useful but for whatever reason gets removed so thanks for keeping this around.
Secondly, been there, done that … I often post then up to a day later solve my own problem so know where you are coming from!
9개의 좋아요
Richie
(Richie Rich)
11월 14, 2024, 4:26오후
5
4개의 좋아요
ToddZ
11월 14, 2024, 6:31오후
6
Cool – I approached this with nth-of-type rather than last-child. For anyone wanting to suppress the new stats without restoring old stats, a little CSS clip over here (currently) works:
Hiding “Site activity” section
The old About page had a “stats” class on a div that allowed “Site activity” to be easily suppressed via custom CSS:
//suppress site statistics on old About page
.stats {
display: none;
}
The new About page lacks this div class. It would be nice to have, but for anyone else not wanting site stats shown, here’s a way to suppress the separate elements as they’re currently rendered:
// suppress site statistics on NEW About page
.about__right-side H3:nth-of-ty…
pfaffman
(Jay Pfaffman)
11월 14, 2024, 11:04오후
7
Thanks, @ToddZ ! I would have used the nth- version if I knew anything about css. I’ll integrate your code tomorrow or next week.
Maybe I’ll submit a PR with the proper class so these css tricks aren’t required.
ToddZ
11월 14, 2024, 11:09오후
8
I don’t know if one hack is any better than the other, as long as they work
But yeah, a stats class around the whole thing would be handier.
2개의 좋아요
Lilly
(Lillian )
11월 15, 2024, 6:54오전
9
nice work!
I think perhaps the description should be “replace new about statistics with classic view” or something similar.
2개의 좋아요
Richie
(Richie Rich)
11월 15, 2024, 2:31오후
10
Maybe just:
Replace the about statistics with the classic statistics table
ie. Remove the word “new”, as the new about page won’t stay new for long
2개의 좋아요
putty
(putty)
3월 24, 2026, 2:14오후
11
안녕하세요 @pfaffman ,
이 컴포넌트에 이 변경 사항 으로 인해 비권장(deprecation) 경고가 표시되기 시작했습니다. 업데이트를 위한 PR 을 검토하고 승인해 주시겠습니까?
2개의 좋아요
pfaffman
(Jay Pfaffman)
3월 25, 2026, 4:40오후
13
discourse-theme-skeleton에서 최신 내용을 가져와서 린팅 오류를 수정했습니다. 동작하는지 테스트하지는 않았는데, 주로 기존 Classic Statistics가 어떤 모습이어야 하는지 잘 모르기 때문입니다.
Richie
(Richie Rich)
3월 25, 2026, 4:56오후
14
필요하시면 확인하실 수 있도록, 저는 여전히 자부심을 갖고 Discourse에서 이걸 운영하고 있습니다
2개의 좋아요
pfaffman
(Jay Pfaffman)
3월 25, 2026, 5:04오후
15
좋은 정보네요! (아, 근데 지금은 관리자가 아니라서 그냥 믿을 수밖에 없겠네요!) 방금 제가 바꾼 게 더 나아졌는지 나빠졌는지 직접 확인해 보세요.
Richie
(Richie Rich)
4월 1, 2026, 3:15오후
16
방금 업데이트를 완료했습니다. 다행히 문제가 없었고 보고할 변경 사항도 없습니다
1개의 좋아요