By Perret on Monday, 02 October 2017
Posted in General Issues
Replies 4
Likes 0
Views 530
Votes 0
Hi, please,

When posting a message, how can i force the checked of anonymous (private) and force the password protection ?
please see in attachment..

Thanks a lot
Regards
About "password protection" i mean : this option must be mandatory before post a message ...

Thanks
·
Monday, 02 October 2017 19:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Perret,

Kindly find my response for your inquiries below:
When posting a message, how can i force the checked of anonymous (private)

-> You can customize it in the file:
.../components/com_easydiscuss/themes/wireframe/ask/default.php line 97
<input id="anonymous" type="checkbox" name="anonymous" value="1"<?php echo $post->anonymous ? ' checked="checked"' : '';?> />

change to:
<input id="anonymous" type="checkbox" checked name="anonymous" value="1"<?php echo $post->anonymous ? ' checked="checked"' : '';?> />


force the password protection ?

-> Unfortunately, it is not possible currently.
·
Monday, 02 October 2017 19:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi
thanks for your reply...

a last question= after modified .../components/com_easydiscuss/themes/wireframe/ask/default.php line 97

when i will update your extension, will it stay modified as i want or i must change after each updates ?

Thanks !
·
Monday, 02 October 2017 19:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Perret,

Ideally you should create a template override for this to avoid the changes to be reverted when you upgrade. The best way is to follow the guide at https://stackideas.com/docs/easydiscuss/administrators/templating/template-overrides

In your case, you should copy that file into /templates/JOOMLA_TEMPLATE/html/com_easydiscuss/ask/default.php
·
Tuesday, 03 October 2017 01:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post