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.
https://github.com/angusmcleod/discourse-ratings/commit/55dd33988d3fd9b7b4368d7618d19481176de13f
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
Remove no_ratings label from topic list ¡ paviliondev/discourse-ratings@f25c9f3 ¡ GitHub
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?