By Abhishek Agrawal on Friday, 11 March 2016
Posted in General
Replies 3
Likes 0
Views 338
Votes 0
Hello,

I am trying to make a discussion public by unchecking

"Make this post private. Only moderators would be able to view and reply to your discussion. "

from: index.php?option=com_easydiscuss&view=post&task=edit&id=22

when I unchecked it, and tried to save, it is not saving. other than that checkbox rest all is saving perfectly.

Help
Try download my attached file and replace into JoomlaFolder\administrator\components\com_easydiscuss\controllers\posts.php and see how it goes?
·
Friday, 11 March 2016 19:59
·
0 Likes
·
0 Votes
·
0 Comments
·
yes it works, thanks

Another question is: I want to auto approve post but want to make them private initially how to do that?
·
Friday, 11 March 2016 20:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

You're welcome, thanks for getting bck to us that was work.

You can disable this option from backend > settings> general > Moderate all new posts - NO

But unfortunately current code do not possible to show default checked from the private section when you create a new discussion post.

You have to modify on this file : JoomlaFolder\components\com_easydiscuss\themes\simplistic\form.new.php


// LINE 62
<input id="private" type="checkbox" name="private" value="1"<?php echo $post->private ? ' checked="checked"' : '';?> /> <?php echo JText::_('COM_EASYDISCUSS_MAKE_THIS_POST_PRIVATE');?>

// Replace with
<?php $isNew = !$post->id ? true : false; ?>
<?php if ($isNew) { ?>
<input id="private" type="checkbox" name="private" value="1" checked="checked" /> <?php echo JText::_('COM_EASYDISCUSS_MAKE_THIS_POST_PRIVATE');?>
<?php }else{ ?>
<input id="private" type="checkbox" name="private" value="1"<?php echo $post->private ? ' checked="checked"' : '';?> /> <?php echo JText::_('COM_EASYDISCUSS_MAKE_THIS_POST_PRIVATE');?>
<?php } ?>


Hope this will help.
·
Saturday, 12 March 2016 11:50
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post