Difference between revisions of "Making the core rating system work on JReviews pages"
From JReviews Documentation
Line 1: | Line 1: | ||
By default JReviews disables core ratings in the categories where it is used to avoid duplicate ratings (core + JReviews) if you have enabled core ratings in Joomla to use outside of JReviews. | By default JReviews disables core ratings in the categories where it is used to avoid duplicate ratings (core + JReviews) if you have enabled core ratings in Joomla to use outside of JReviews. | ||
− | If you want to use both core ratings + JReviews on the same pages, then you need to edit | + | If you want to use both core ratings + JReviews on the same pages, then you need to edit two JReviews files. |
+ | To enable core ratings for listings on Joomla category pages, edit this file: | ||
*<span style="color: blue">/components/com_jreviews/jreviews/controllers/com_content_controller.php</span> | *<span style="color: blue">/components/com_jreviews/jreviews/controllers/com_content_controller.php</span> | ||
− | |||
Comment out this line (it exists on several different places in the file): | Comment out this line (it exists on several different places in the file): | ||
Line 12: | Line 12: | ||
</source> | </source> | ||
+ | |||
+ | To enable core ratings for listings on listing detail pages, edit this file: | ||
+ | *<span style="color: blue">/components/com_jreviews/jreviews/includes/plugins/jreviews.php</span> | ||
+ | |||
+ | and comment out the same line as above. | ||
Revision as of 10:43, 6 April 2013
By default JReviews disables core ratings in the categories where it is used to avoid duplicate ratings (core + JReviews) if you have enabled core ratings in Joomla to use outside of JReviews.
If you want to use both core ratings + JReviews on the same pages, then you need to edit two JReviews files.
To enable core ratings for listings on Joomla category pages, edit this file:
- /components/com_jreviews/jreviews/controllers/com_content_controller.php
Comment out this line (it exists on several different places in the file):
$content_params->set('show_vote',0);
To enable core ratings for listings on listing detail pages, edit this file:
- /components/com_jreviews/jreviews/includes/plugins/jreviews.php
and comment out the same line as above.