# 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:** 18

<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: [October 18, 2020, 12:15pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/349 "2020-10-18T12:15:04Z")

</div>

I’m aware of the fail. The problem here is, when you have multiple `rating types` I’m trying to figure out the structure of the schema markup.

I’m experimenting with this tool

> **[Rich Results Test - Google Search Console](https://search.google.com/test/rich-results)**

---

<div class="post-metadata">

### Author: ![Gustavo\_Papasergio1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gustavo_papasergio1/32/179524_2.png) [@Gustavo\_Papasergio1](https://meta.discourse.org/u/Gustavo_Papasergio1)
#### Post date: [October 20, 2020, 12:36am UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/350 "2020-10-20T00:36:21Z")

</div>

@fzngaganI can imagine the complexity of the rich text results because also google changes the specifications quite often. As for the non-connected users to be able to evaluate the contents, perhaps choosing only one to be public and the rest only for the logged-in ones. Not necessarily all have to be public.  
Thank you very much for the reply.

---

<div class="post-metadata">

### Author: ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)
#### Post date: [November 8, 2020, 2:20pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/351 "2020-11-08T14:20:36Z")

</div>

I searched through this topic but didn’t find any mention of this; is there any possibility of making the rating required when replying to a 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: [November 8, 2020, 4:34pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/352 "2020-11-08T16:34:44Z")

</div>

Not currently. You can request the feature on the Pavilion instance.

---

<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: [November 28, 2020, 5:20pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/353 "2020-11-28T17:20:14Z")

</div>

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

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

![image](https://global.discourse-cdn.com/meta/optimized/3X/1/4/144f947ae64e1a9dc4030495333ad8a5849bb509_2_690x61.png)

API event bug:

If you create a new post with ratings or edit a post with different ratings, the `post_edited` or `post_created` events doesn’t use the new values but the old ones.

E.g.:  
On new post with valid ratings, the event will have an empty `ratings` value.  
On post edition, if you change from rating 5 to rating 2, the event will contain a `ratings` value with 5

It happens either using Discourse directly or using the API.

Here a small video on edition:

---

<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: [December 1, 2020, 7:54am UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/354 "2020-12-01T07:54:59Z")

</div>

Ok, taking a look whether I can repro it.

p.s.  
It looks like this is the older version of the plugin as I can’t see any `rating criterion` next to the stars.

---

<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: [December 1, 2020, 1:56pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/355 "2020-12-01T13:56:59Z")

</div>

> [@fzngagan](#):
>
> It looks like this is the older version of the plugin as I can’t see any `rating criterion` next to the stars.

When I posted my previous message, it was up to date, you can see it in my previous screenshot. `e3ee07f`

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/c/fc4c5f83dd2d370b6169375f570a51aa8306709c.png)

I’ve checked again throuhg the UI, and +2 commits have added since then, some hours ago.

 ![](https://global.discourse-cdn.com/meta/original/3X/8/8/886a202222bf09ca58e7b235ee364c1f109e8fe3.png)

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

But this doesn’t seem to include any relevant code changes to the issue (only spec related).

* * *

As far I can see, it’s up to date. I can try later to rebuild the app if for some reasons the plugin did not get properly updated (?).

If you need more info, feel free to ask.

---

<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: [December 1, 2020, 1:58pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/356 "2020-12-01T13:58:58Z")

</div>

Can you send a screenshot of this page of your site `/admin/plugins/ratings`?

---

<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: [December 1, 2020, 2:07pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/357 "2020-12-01T14:07:16Z")

</div>

I thought I mixed the production Discourse and my testing (= not local, on another vps) DIscourse, but both have the same version.

My test above has been made on my testing Discourse, so settings are like:

 ![image](https://global.discourse-cdn.com/meta/original/3X/a/1/a1f781a857277aae7ec833b28d459d9abe8ed8ed.png)

* * *

Actually, I did not test if it happens on the production Discourse (will check in a moment, EDIT: it happens too, event doesn’t contain updated ratings)

Settings for production Discourse:

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/5/95628772f793df8b4773a087807621f2d5179d5e.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/a/9a0f4ce30cdf2d893e5f6d79c11cf2371aca4c9f.png)

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

EDIT: rebuilding didn not help.

---

<div class="post-metadata">

### Author: ![GCB](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gcb/32/203892_2.png) [@GCB](https://meta.discourse.org/u/GCB)
#### Post date: [December 22, 2020, 5:19pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/358 "2020-12-22T17:19:01Z")

</div>

Wondered where I could check the example.  
Should I see ratings here? I’m logged in on the forum.  
[https://try.thepavilion.io/t/this-is-a-new-post-with-ratings/547](https://try.thepavilion.io/t/this-is-a-new-post-with-ratings/547)

---

<div class="post-metadata">

### Author: ![hosna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hosna/32/99969_2.png) [@hosna](https://meta.discourse.org/u/hosna)
#### Post date: [January 19, 2021, 8:24am UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/359 "2021-01-19T08:24:29Z")

</div>

Is this plugin no longer working? @fzngagan@angus

---

<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: [January 19, 2021, 11:50am UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/360 "2021-01-19T11:50:03Z")

</div>

I’ll take a look in some time.

---

<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: [January 20, 2021, 9:40am UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/361 "2021-01-20T09:40:45Z")

</div>

Looks good to me. Can you tell us the specific issue?

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [January 21, 2021, 10:23am UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/362 "2021-01-21T10:23:44Z")

</div>

Hello @fzngagan 🙂 There is an error with Topic Rating and the new reply filtering system. If try to use **posts in topic** function on user card it won’t show results. Thank you 🙂

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/7/878ef8931f05bfa4db02ecd3d2ad9c49835ee54b.jpeg)

---

<div class="post-metadata">

### Author: ![hosna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hosna/32/99969_2.png) [@hosna](https://meta.discourse.org/u/hosna)
#### Post date: [January 23, 2021, 8:25am UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/363 "2021-01-23T08:25:44Z")

</div>

the rating isnt shown even in example you provided in here:

[https://try.thepavilion.io/t/this-is-a-new-post-with-ratings/547](https://try.thepavilion.io/t/this-is-a-new-post-with-ratings/547)

and I cant find the option to enable rating for a category.

---

<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: [January 23, 2021, 7:03pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/364 "2021-01-23T19:03:23Z")

</div>

Any news about the issue posted one month ago: [Topic Ratings Plugin - #353 by Arkshine](https://meta.discourse.org/t/topic-ratings-plugin/39578/353) ?  
I’ve upgraded everything and it still happening.

---

<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: [January 23, 2021, 8:35pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/365 "2021-01-23T20:35:03Z")

</div>

Looks like a conflict coz I cant repro the issue since you reported it.

---

<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: [January 23, 2021, 10:02pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/366 "2021-01-23T22:02:02Z")

</div>

I’ve rebuilt with only this plugin and no components enabled.

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

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

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

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/b/7b786b3aca886e20e145d7f2d2edcfcf96eacdb5.png)

* * *

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/4/c43c56dde32db1d5fe0086e468be1ec35a8c08b5.png)

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

* * *

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

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

* * *

post creation with ratings → `ratings` empty.  
post edition without ratings → `ratings` shows the previous value

I don’t think I’m hallucinating. I did test on a client (production) Discourse as well, and it happens too.

What am I supposed to do now, any ideas?

---

<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: [January 23, 2021, 11:01pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/367 "2021-01-23T23:01:52Z")

</div>

@fzngagan

Launched a small VPS with a fresh and classic Discourse installation.  
Everything is default except the adding of ratings plugin. I can’t do more basic than that.

[https://rating.arkshine.dev/](https://rating.arkshine.dev/)

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/7/8731d49d75480d34fd7f34c974b7be82cd240db7.png)  
 ![image](https://global.discourse-cdn.com/meta/original/3X/5/4/54b0119152d92aa43f1a43442bc5b9b514d4beb4.png)

I’m puzzled how you can not reproduce this! Did I miss something or did horribly wrong?

You can check/test yourself: `Admin` / `b4HuH8u6CyKbDdJ`  
VPS will be destroyed in few days.

---

<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: [January 25, 2021, 6:47am UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/368 "2021-01-25T06:47:53Z")

</div>

I’m taking a look at this one now.

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

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