Topic Ratings Plugin

(Pari) #144

here is all our rating topics.

you can open this one since it is the most rated topic.

Recommended way to handle RTL mixed with LTR languages
(Angus McLeod) #145

The slow load of that topic may have more to do with it having 4542 posts :slight_smile: 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.

(Pari) #146

but as I told previously, it was ok until some days ago I updated both discourse and this plugin to the latest version.

(Pari) #147

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?

(Angus McLeod) #148

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:

(Pari) #149

Yes you are right. I think I found the problem. Its the new mixed text direction feature.

(Frederik) #150

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… :thinking:

(Frederik) #151

Now I have installed this great plugin.

I have a question to the styling

  1. “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?

  2. Could “7” and “17” in the blue circle is normally placed after the title. Is that possible?

(Mittineague) #152

Maybe instead of not showing “no ratings yet” it would be better to show a type of “be the first to rate”?

(Angus McLeod) #153

I will take at look at both issues tomorrow.

(Frederik) #154

Else show the icon for no stars yet (5 empty stars).

The mix of text and grafic is not eye candy, I think :smiley:

How about 'mentioning topic' feature?
(Angus McLeod) #155

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 · angusmcleod/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”.

(Frederik) #156

Much better :smiley:



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 :+1:

(Frederik) #157

Any plans to solve this?

(Angus McLeod) #158

Apologies, this got left off my list. Now fixed:

(Frederik) #159


And the rich data thing is neat!! Thanks


Based on this

Displaying Star Rating in SERPs with Discourse
(Sora &\) #160

How add rating effect all category?

(Angus McLeod) #161

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.

(Ivan Rapekas) #162

Is it possible to have an option to enable this plugin only for group, staff for instance? Regular users should not see stars anyway.

(Angus McLeod) #163

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?