here is all our rating topics.
you can open this one since it is the most rated topic.
The slow load of that topic may have more to do with it having 4542 posts That’s a very long topic.
Nevertheless, I’ve made some performance improvements. The first time you load the topic you won’t notice a difference, but subsequent loads may be faster, if the ratings plugin is having any effect on the load time.
Let me know how it goes.
but as I told previously, it was ok until some days ago I updated both discourse and this plugin to the latest version.
I updated the plugin, but unfortunately it didn’t have any effect imo. What is it that takes the most process in this plugin?
If it is calculating the average rating, maybe you could cache the value for, lets say, one day perhaps?
It could be a disaster for rating topics like mine that rapidly grows in number of posts.
However again I need to say that this problem occurred very recently in my last update (discourse core + all plugin). So maybe its because of one of your new commits, or even commits to the core discourse that caused the problem?
Aside from the changes I just made, none of my commits in the last few months to this plugin would have had an effect on performance. They were style and translation changes.
So if there has been a noticeable deterioration in performance in those very large topics in the last few days, it is probably something core related.
I can take a look in more detail at what might have caused this in core Discourse later this week, but you should raise this with the Discourse team.
*edit @parisa You may want to have a read of this topic: Performance improvements on long topics?. Another host with a topic of a similar size (i.e. 4.5K posts) has the same issue:
Yes you are right. I think I found the problem. Its the new mixed text direction feature.
Quick question: To rate a topic do you need to post in it - or can you rate without making a reply to the topic?
Im asking as I would like to add a book review section to my site. Im not sure what is best: being able to add star rating with or without adding a reply/reason…
Now I have installed this great plugin.
I have a question to the styling
“No ratings yet”
I would like that if it is rated then show the stars. If not, show nothing. I dont want a list of “No ratings yet”, is that possible?
Could “7” and “17” in the blue circle is normally placed after the title. Is that possible?
Maybe instead of not showing “no ratings yet” it would be better to show a type of “be the first to rate”?
I will take at look at both issues tomorrow.
Else show the icon for no stars yet (5 empty stars).
The mix of text and grafic is not eye candy, I think
I’ve removed the ‘No ratings yet’ label from the topic list. As you allude, it’s not really necessary there. That also fixes the unread count alignment
https://github.com/angusmcleod/discourse-ratings/commit/f25c9f38be6d4184268d49d24ac9069dd7af6603
It’s still in the topic itself.
You can edit the text itself by editing the translation files in Admin > Customize > Text Content. Search for “no_ratings”.
Much better
Before
Now
But there is still a line break from title to “unread posts” - the blue circle
This is the look in a category where you havent enable ratings
But much better
Any plans to solve this?
Apologies, this got left off my list. Now fixed:
https://github.com/angusmcleod/discourse-ratings/commit/3827b080089d26ecd30d514430ae1ff857e715ba
How add rating effect all category?
This plugin has to be turned on for each category you want to use it in. I don’t think it would make sense to have a site-wide setting.
Is it possible to have an option to enable this plugin only for group, staff for instance? Regular users should not see stars anyway.
Do you mean only allow a specific group to add stars to a post?
Or only allow a specific group to see stars on posts at all? Or both?
Do non-group users still have access to the ratings topics at all in your scenario?