Difference between revisions of "Making the core rating system work on JReviews pages"
From JReviews Documentation
(Created page with '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 outsid…') |
|||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | By default | + | 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 + | + | 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 | + | Comment out this line (it exists on several different places in the file): |
<source lang="php"> | <source lang="php"> | ||
− | $ | + | $content_row->params->set('show_vote',0); |
− | + | ||
</source> | </source> | ||
+ | |||
+ | To enable core ratings for listings on listing detail pages, edit these file: | ||
+ | *<span style="color: blue">/components/com_jreviews/jreviews/cms_compat/joomla/includes/plugins/jreviews.php</span> | ||
+ | *<span style="color: blue">/components/com_jreviews/jreviews/cms_compat/joomla/includes/plugins/jreviews-joomla4</span> | ||
+ | |||
+ | Comment out this line: | ||
+ | |||
+ | <source lang="php"> | ||
+ | $params->set('show_vote',0); | ||
+ | </source> | ||
Latest revision as of 10:58, 14 September 2019
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_row->params->set('show_vote',0);
To enable core ratings for listings on listing detail pages, edit these file:
- /components/com_jreviews/jreviews/cms_compat/joomla/includes/plugins/jreviews.php
- /components/com_jreviews/jreviews/cms_compat/joomla/includes/plugins/jreviews-joomla4
Comment out this line:
$params->set('show_vote',0);