Force comments on for all feedback 5 years 10 months ago #1

  • Steve Thompson
  • Localtime: 07:08
  • Europe/Bucharest
  • Posts: 11
How can I force comments on and/or remove the option from the feedback form.

We want comments to always be enabled.
The administrator has disabled public write access.

Force comments on for all feedback 5 years 10 months ago #2

  • Alexandru
  • Alexandru's Avatar
  • Senior Developer
  • Bucharest
  • Localtime: 07:08
  • Europe/Bucharest
  • Posts: 4856
Hello!

Here is a quick tweak:
- edit [Joomla dir]/components/com_feedbackfactory/models/forms/feedback.xml and delete or comment out lines ~11:
<field name="has_comments" type="radio" class="btn-group btn-group-yesno" filter="integer" default="0">
            <option value="1">JENABLED</option>
            <option value="0">JDISABLED</option>
        </field>

- edit [Joomla dir]/administrator/components/com_feedbackfactory/tables/feedback.php and change line ~15 from:
public $has_comments;

to:
public $has_comments = 1;
thePHPfactory Customer Support
The administrator has disabled public write access.

Force comments on for all feedback 5 years 10 months ago #3

  • Steve Thompson
  • Localtime: 07:08
  • Europe/Bucharest
  • Posts: 11
Great, thanks!
The administrator has disabled public write access.

Force comments on for all feedback 5 years 8 months ago #4

  • Paolo Tateo
  • Paolo Tateo's Avatar
  • Barnsley - UK
  • Localtime: 07:08
  • Europe/Bucharest
  • Posts: 10
I suggest adding an option to manage this function on backend option (and similar about the notify status changing).
Ing. Paolo Tateo
CEO bindCommerce s.r.l.
www.bindcommerce.com
The administrator has disabled public write access.

Force comments on for all feedback 4 years 9 months ago #5

  • Muhammad Khair
  • Localtime: 07:08
  • Europe/Bucharest
  • Posts: 3
Hi
I've similar question, not totally force comments, but disable front end comment switch only

how to do so ... ???
The administrator has disabled public write access.

Force comments on for all feedback 4 years 9 months ago #6

  • Alexandru
  • Alexandru's Avatar
  • Senior Developer
  • Bucharest
  • Localtime: 07:08
  • Europe/Bucharest
  • Posts: 4856
Edit [Joomla dir]/components/com_feedbackfactory/models/forms/feedback.xml and delete or comment out lines ~11:
<field name="has_comments" type="radio" class="btn-group btn-group-yesno" filter="integer" default="0">
            <option value="1">JENABLED</option>
            <option value="0">JDISABLED</option>
        </field>
thePHPfactory Customer Support
The administrator has disabled public write access.

Force comments on for all feedback 4 years 9 months ago #7

  • Muhammad Khair
  • Localtime: 07:08
  • Europe/Bucharest
  • Posts: 3
Well , Thank you .... very much
The administrator has disabled public write access.