게시물 조회수 카운터

약 1년 전에 클라이언트를 위해 이 테마를 만들었고, 커뮤니티와 공유하고 싶었습니다. 이 테마는 게시물의 조회수를 표시하는 기능만 제공합니다.

스크린샷:

레포지토리:

누군가에게 유용하길 바랍니다 :smiley:

참고: tests-passed 브랜치에서만 테스트했습니다

20개의 좋아요

Hi! The administrators of the site where I am registered have installed you theme component, but the counter always stays at 0

Is there any way to fix it? :thinking:

The site is:

2개의 좋아요

Sorry for the issue. Let me know if this fixes it:
https://github.com/muhlisbc/discourse-post-views-counter-theme/commit/84c5631dfa9197e3f7a218d22e440ac9f6e9cb9e

3개의 좋아요

It worked perfect! Thank you!

2개의 좋아요

Can you provide the option to hide the number of views in the replies?

I think is broken since last discourse upgrade

1개의 좋아요

If anybody is still using this component and encounter problems after upgrading Discourse to 2.9.0.beta3, have a try with my fix: GitHub - freemdict/discourse-post-views-counter-theme · GitHub. :slight_smile: Remember to disable or remove the previous version of component.

I basically changed only one line of code: Fix bug brought by Discourse 2.9.0.beta3 · freemdict/discourse-post-views-counter-theme@3f337c0 · GitHub.

4개의 좋아요

Thanks so much your version worked @mdict_free (oct 2022)

1개의 좋아요

Awesome component! It is very useful. However just noticed recently it has stopped displaying on my 2 servers. I have one running Stable snd thr other is test passed.(Jan 2023)

https://community.openmr.com/

Are you having an issue with this recently not working?

I have, it doesn’t show anything and I can’t find any errors. It worked at some point, but I can’t pinpoint when and when the situation changed — mostly because there was a bit layout problems earlier but mostly because I didn’t feel I would get any useful pros.

Now I gave a new try, and it just doesn’t work. And not work means tablets and phones so it can work on real desktops; but everything must work on mobiles because those are the most dominent group of devices in use nowadays. If something doesn’t work on mobiles it is for minority and all it gives for community and admin is just another part that can break places.

And I’ve changed time format to long date because Discourse’s way is really… american and difficult to understand, at this part of Europe anyway. But that’s why we have tools to customize everything. There is still open question if that gives hard times to the plugin.

But for me this is a broken plugin.

1개의 좋아요

Maybe one of the team members can take a look as maybe a core change requires this to have in part a rework?

Would really hate to loose this as it is quite handy.

Try his revised itbis working.

I think this component is abandonded and isn’t working anymore. It should tag as broken one.

2개의 좋아요

The post above yours is a working fork. Maybe @mdict_free might be willing to take over as a maintainer.

1개의 좋아요

Just want to mention here that I have updated the code so that it can work with Discourse new plugin API (details here). I think this component has been broken for a while :laughing: but now it works as of Feb 2026. The i18n is not working btw.

https://github.com/freemdict/discourse-post-views-counter-theme

4개의 좋아요

이 주제가 broken 상태이기 때문에 #customization:theme-component에 표시되지 않습니다. 컴포넌트를 유지보수할 의사가 있으시다면, 해당 컴포넌트를 별도의 주제로 분리하시거나 제가 대신 처리해 드릴 수 있습니다.

1개의 좋아요

@mbcahyono 이 컴포넌트를 현대화하기 위해 PR을 제출했습니다 — 시간이 나시면 확인해 주세요! 더 이상 이 프로젝트의 유지보수에 관심이 없으시다면 알려주시면 감사하겠습니다.

2개의 좋아요

병합 완료! 크리스, 고마워!

프로젝트를 자유롭게 이어가 줘. 좋은 손에 맡겨졌을 거라고 확신해 :slight_smile:

3개의 좋아요