Post for getting ratings plugin for discourse.
I’m sorry, but I don’t get what you’re asking for. Are you looking for this plugin?
As Felix pointed out, this exists already. If the plugin is not what you’re looking for, please explain in much more detail in a new topic, or post a feature request to the plugin topic.