Note: You are currently viewing documentation for Moodle 3.3. Up-to-date documentation for the latest stable version of Moodle is probably available here: Course rate block.

Course rate block: Difference between revisions

From MoodleDocs
(New page: ==Couse Rating Block== The block contains a link to a separate form page to give a rating, and displays the current aggregate of all user ratings including the number of people who have m...)
 
No edit summary
Line 8: Line 8:


===Installation===
===Installation===
Most users will want to download the "for Moodle 1.9" version, since the latest version (in CVS HEAD) is compatible with Moodle 2.0 which has not yet been released.


*Copy the files into the \blocks folder.  
*Copy the files into the \blocks folder.  

Revision as of 08:58, 18 February 2009

Couse Rating Block

The block contains a link to a separate form page to give a rating, and displays the current aggregate of all user ratings including the number of people who have made ratings.

Rateimg.jpg

Each user can rate a course only once. If they visit the ratings form again, a message is displayed to indicate that they've already rated the course, and the (disabled) form displays the rating they gave.

Installation

Most users will want to download the "for Moodle 1.9" version, since the latest version (in CVS HEAD) is compatible with Moodle 2.0 which has not yet been released.

  • Copy the files into the \blocks folder.
  • Go to the \admin page and allow the block to be installed
  • Add the block to your course pages to display course ratings

Roles and Permissions

The default installation will allow all roles except for Guest and Authenticated User to rate a course. All users, regardless of role, can see ratings.

Languages

English only.

Advanced Options

You can get the rating graphic displayed anywhere you want by adding this code at the right point:

 $block = block_instance('rate_course');
 $block->display_rating($course->id);

We've added this to our course listings so you can see the rating for each course as you browse through the categories.

To Do

It would be great if users could enter their rating by clicking directly on the star graphic in the block, using AJAX, rather than have to go to a separate page, submit a form and return to the course home page. This would need to be an option, so that sites (or users) which do not have AJAX enabled could continue to use the form page.

Contributor/Maintainer

The Course Ratings Block was contributed and is maintained by Jenny Gray.