O'Reilly logo

MediaWiki Administrators' Tutorial Guide by Mizanur Rahman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Article Rating: A Cool Hack

In our haunted site, we have a lot of stories published, and more coming every day, but how do we know how people are reacting to these stories, articles, etc.? We don't have any way to measure the user reaction for each post. To deal with this, we can implement a rating system for articles and stories to show the site's users how the articles have been rated, and provide them with the ability to rate the articles themselves. So let us make a quick requirement note of the features we will be adding:

  • A rating message such as "average rating of this article is xx (out of xx) after xx ratings" will be shown for the ratings earned so far by that article.
  • A rating form where visitors can rank stories from a level of 1 (low) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required