You are here:Home»KB»Web Design»CMS»Joomla»Extension Development»My RSFeedback Notes
Sunday, 05 March 2017 14:27

My RSFeedback Notes

Written by

Q: I can only disable comments via the options menu. There does not seem to be anyway to control it. How can I restrict comments to registered users?

A: There is no particular option for this case when using the built-in RSFeedback! commenting system. However, you can achieve this through template overrides. This procedure is explained here.

The file you need to perform template overrides is located under this path:

/components/com_rsfeedback/views/feedback/tmpl/default.php

Open the duplicate used for template overrides and search for:

<?php echo $this->comments->form;?>

Replace the above line with:

<?php $user = JFactory::getUser(); if($user->id != 0) {    ?>
<?php echo $this->comments->form;?>
<?php } ?>

 

 

Read 795 times Last modified on Sunday, 05 March 2017 14:33