Forums | Mahara Community

Support /
Make comments private by default?


Richard Samson's profile picture
Posts: 9

08 November 2022, 0:28

When you add a comment to a Mahara page, the setting "Make public" is switched on by default. You have to switch this to ‘No’ if you don’t want everyone who has access to this page to see your comment.

Is it possible to change this default configuration setting to 'No'? How?

(On Mahara 22.10)  Thanks in advance. 

Richard Samson's profile picture
Posts: 9

14 November 2022, 22:38

No reply to this question?

Please share the knowledge!

 

Kristina Hoeppner's profile picture
Posts: 4744

21 November 2022, 21:24

Hi Richard,

I'm posting the answer here so we can close the loop. We've found the spot in our meeting today:

In /htdocs/artefact/comment/lib.php around line 1061, in the code block:

$form['elements']['ispublic'] = array(
  'type'  => 'switchbox',
  'title' => get_string('makecommentpublic', 'artefact.comment'),
  'defaultvalue' => !$defaultprivate,

The last line needs to read

  'defaultvalue' => $defaultprivate,

for comments to be private by default.

Thank you

Kristina

3 results