Post Views Counter

I created this theme about a year ago for client and I thought I’d like to share this to the community. This theme will show the views (reads) count for posts, that’s it!

Screenshot:

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

I hope someone found this useful :smiley:

Note: only tested on tests-passed branch

18 Likes

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 Likes

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

3 Likes

It worked perfect! Thank you!

2 Likes

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

I think is broken since last discourse upgrade

1 Like

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. :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.

3 Likes

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