Difference between revisions of "Making the core rating system work on JReviews pages"

From JReviews Documentation
Jump to: navigation, search
Line 5: Line 5:
 
*<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 these lines:
+
 
 +
Comment out this line (it exist on several different places in the file):
  
 
<source lang="php">
 
<source lang="php">
 
$content_params->set('show_vote',0);
 
$content_params->set('show_vote',0);
$content_params->set('rating',0); // J1.0.x & Mambo 4.6.x
 
 
</source>
 
</source>
  

Revision as of 09:54, 5 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 one of the JReviews files.

  • /components/com_jreviews/jreviews/controllers/com_content_controller.php


Comment out this line (it exist on several different places in the file):

$content_params->set('show_vote',0);