# Topic Ratings Plugin

**URL:** https://meta.discourse.org/t/topic-ratings-plugin/39578
**Category:** Plugin
**Tags:** pavilion
**Created:** [February 14, 2016, 9:06pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578 "2016-02-14T21:06:53Z")
**Posts on this page:** 20
**Page:** 13

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [June 22, 2020, 2:25pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/248 "2020-06-22T14:25:21Z")

</div>

Hmm, I get it. I assumed an option would be showed in the category settings but all happens now in Ratings tab.

That’s said, there is still a bug with `Uncategorized` category, it seems a first load, it seems the model behind is not selecting the category:

![image](https://global.discourse-cdn.com/meta/original/3X/2/e/2e8022caa9bcbcaac00355eebfb18f04772ce1e9.png)

Once you select another category and select again `Uncategorized`, it works:

![image](https://global.discourse-cdn.com/meta/original/3X/d/6/d6fe77e3340add4b265a56d97fd1939546519785.png)

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [June 22, 2020, 2:36pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/249 "2020-06-22T14:36:00Z")

</div>

It doesn’t seem to work well.

Now I’ve enabled again the `None` with `Uncateogrized`, my existing ratings in this category doesn’t show.

* * *

I tried `None` in `Site Feedback`:  
 ![image](https://global.discourse-cdn.com/meta/original/3X/8/0/8054e0f4bccddd9322bdc4a71a7dbd680a87223a.png)

Once I create a new topic and save:

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/8/0850171bd4f0b75ad95947a2eb6afdba197d9a56.png)

The rating is not saved:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/3/b30bcc436991a9b8a37a56419783831a91533445.png)  
 ![image](https://global.discourse-cdn.com/meta/original/3X/5/3/532e265df0552b794d6f9a719c6d854a7ac0b243.png)

Not sure if I’m missing something?

* * *

Another issue. When you associate a new category with rating types, you need to reload the page (F5) before creating a new topic. Because otherwise the ratings box doesn’t appear in composer.

* * *

Btw, I did not say it yet, but it’s really an awesome feature! Thanks!

---

<div class="post-metadata">

### Author: ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)
#### Post date: [June 22, 2020, 3:25pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/250 "2020-06-22T15:25:46Z")

</div>

I’ll try to repro the issues tomorrow and get back. Thanks for the feedback.

---

<div class="post-metadata">

### Author: ![Touri](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Touri](https://meta.discourse.org/u/Touri)
#### Post date: [June 23, 2020, 6:11pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/251 "2020-06-23T18:11:27Z")

</div>

I updated today. Since the update I got a strange representation bug. With the user agent set to Safarie - iOS 13.3.1 - iPhone or iPodTouch (yes, it is still a thing) the ratings in the overview are shown twice. With all other user agents I tried it look normal.

 ![Screenshot 2020-06-23 at 19.53.36](https://global.discourse-cdn.com/meta/original/3X/9/0/90ec5038858f17dbb572bb48ad65e16a72a3d123.png)

Looking at the html there are two different divs created:

```html
<div class="main-link">    
	<div class="rating-list">...</div>
	<a href="/t/mai-tai/395" class="title raw-link raw-topic-link" data-topic-id="395">Mai Tai</a>  
	<div class="rating-list">...</div>
</div>

```

We are on v2.5.0.beta7 +171.

If you want to take a look:

> **[Drinks](https://cocktailnerds.de/c/rezepte-guides/drinks/12)**
>
> Rezepte, Rezepte und Rezepte …

---

<div class="post-metadata">

### Author: ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)
#### Post date: [June 24, 2020, 2:21pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/252 "2020-06-24T14:21:25Z")

</div>

Just to be extra sure as you’re on a dev setup, did you run the db:migrate thing after installing the plugin?

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [June 24, 2020, 7:05pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/253 "2020-06-24T19:05:06Z")

</div>

It’s not a dev setup. it’s a normal installation hosted somewhere in a VPS. Originally, I installed the plugin with ProCourse Installer.

But because I thought the new version was not installed (same version), I removed ProCourse Installer and reinstalled it through app.yml.

The plugin did properly upgraded since I could see the ratings at first.  
I can give you an admin user account to my test Discourse if you want to see the issue by yourself, let me know.

---

<div class="post-metadata">

### Author: ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)
#### Post date: [June 26, 2020, 12:57pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/254 "2020-06-26T12:57:34Z")

</div>

> [@Arkshine](#):
>
> I can give you an admin user account to my test Discourse if you want to see the issue by yourself, let me know.

That would be very helpful for reference.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [July 4, 2020, 12:22am UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/255 "2020-07-04T00:22:38Z")

</div>

Hey, any news/status on the bug reports about the new version or/and any ETA of next updates?

---

<div class="post-metadata">

### Author: ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)
#### Post date: [July 4, 2020, 3:10am UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/256 "2020-07-04T03:10:53Z")

</div>

I’m already working on a few fixes and the support period is also on..so you should see the fixes today/monday.

---

<div class="post-metadata">

### Author: ![AntiMetaman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/antimetaman/32/186978_2.png) [@AntiMetaman](https://meta.discourse.org/u/AntiMetaman)
#### Post date: [July 22, 2020, 6:30pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/257 "2020-07-22T18:30:58Z")

</div>

Can I specify which categories I want this to be enabled? I don’t want ratings for every topic only one.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [July 22, 2020, 6:37pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/258 "2020-07-22T18:37:02Z")

</div>

> [@AntiMetaman](#):
>
> Can I specify which categories I want this to be enabled?

Looks like yes, from the OP:

> [@angus](#):
>
> Topics can be designated as ‘for rating’, by being:
> 
> 1. posted in a category with ratings setting on (see below); or

---

<div class="post-metadata">

### Author: ![AntiMetaman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/antimetaman/32/186978_2.png) [@AntiMetaman](https://meta.discourse.org/u/AntiMetaman)
#### Post date: [July 24, 2020, 4:28am UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/260 "2020-07-24T04:28:33Z")

</div>

I just want ratings to be displayed at the top of the topic thread, not in each user’s post.

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/2/d20d37425554e8fd29186d7bad563f6d4bf7ac5c.png)

Otherwise, it looks like a double post. There only needs to be an average of all user’s ratings. This way ratings also stay anonymous.

Is there a way I can hide ratings on each post but show the average for the topic?

---

<div class="post-metadata">

### Author: ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)
#### Post date: [July 24, 2020, 4:45am UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/261 "2020-07-24T04:45:31Z")

</div>

Interesting. So do you sugges user should only be able to see their own rating and the topics average at the top?

Actually, there might be a confusion. In this specific case of yours, no one has rated the topic except for the actual poster of the topic that’s why you see both of them to be similar.

---

<div class="post-metadata">

### Author: ![AntiMetaman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/antimetaman/32/186978_2.png) [@AntiMetaman](https://meta.discourse.org/u/AntiMetaman)
#### Post date: [July 24, 2020, 5:06am UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/262 "2020-07-24T05:06:54Z")

</div>

I do. If someone is going through the thread and they see a lot of stars, it can look too cluttered and bad. I think at least for me, it is much cleaner to have the average star ratings at the top. The user should be able to see their own rating and that’s enough.

If someone were to give a bad rating and that is visible, then they would be exposed. In order to encourage the community to give honest ratings, they should be anonymous and only the user should be able to see their ratings only.

In the screenshot above, you see the original topic poster, so there’s only 1 post. It can be solved if an option is added that can be toggled called, “Hide ratings in other user’s posts”.

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/6/66ab6c3f70a864aefbbe164d756b36571ee6db73.png)

---

<div class="post-metadata">

### Author: ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)
#### Post date: [July 24, 2020, 5:21am UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/263 "2020-07-24T05:21:27Z")

</div>

Thanks for the suggestion. I’m creating a feature request for this on our Pavilion instance. Let’s track this feature there.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [July 25, 2020, 11:28pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/264 "2020-07-25T23:28:21Z")

</div>

It seems fixed for you. Did you do something?

EDIT: Nevermind, the bug bug appears only on mobile view actually (for him and me).

---

<div class="post-metadata">

### Author: ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)
#### Post date: [July 27, 2020, 4:56am UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/265 "2020-07-27T04:56:34Z")

</div>

The mobile bug is fixed.

---

<div class="post-metadata">

### Author: ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)
#### Post date: [August 2, 2020, 8:19am UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/266 "2020-08-02T08:19:05Z")

</div>

Guys, the support period is on. If you’ve updated your instance and found anything unusual, please report it on `https://thepavilion.io/w/bug-report/` in the next 3 days. If you have a staging server, please do update and notify us if you see issues.

---

<div class="post-metadata">

### Author: ![AntiMetaman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/antimetaman/32/186978_2.png) [@AntiMetaman](https://meta.discourse.org/u/AntiMetaman)
#### Post date: [August 2, 2020, 12:45pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/267 "2020-08-02T12:45:18Z")

</div>

Will the ability to hide user ratings on every post except your own be implemented in the near future?

---

<div class="post-metadata">

### Author: ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)
#### Post date: [August 2, 2020, 1:22pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/268 "2020-08-02T13:22:12Z")

</div>

Yes, that’s on top on our list. I’ve created a feature request on our instance `https://thepavilion.io/t/show-only-users-own-rating-on-posts/3209`

Currently, we’re working on unit tests and we’ll implement this in the near future for sure.  
p.s.  
I have completed this one. If you can help to test, we can get it merged in this week. Follow the updates on the above link.

[Previous page](https://meta.discourse.org/t/topic-ratings-plugin/39578.md?page=12)

[Next page](https://meta.discourse.org/t/topic-ratings-plugin/39578.md?page=14)
