-

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

Course rate block: Difference between revisions

From MoodleDocs
m (how to display on mymoodle page)
Line 21: Line 21:
===Languages===
===Languages===


English only.
English and German only.


===Advanced Options===
===Advanced Options===

Revision as of 12:54, 11 June 2010

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 and German 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 the same, edit course/lib.php and paste the code in the print_course() function wherever you want it to appear. You can also add it to the myMoodle course information by editing the print_overview() function in course/lib.php;

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.