By Torgrim Sandvoll on Thursday, 30 July 2015
Posted in Technical Issues
Replies 7
Likes 0
Views 722
Votes 0
When I registered user publish a new blog post on my site, there is no commenting system at the bottom of the post when reading the blog post in frontend. I would have to enable this per blog post as admin in the backend.

How can I make sure that all posts have commenting enabled?

1. I do want commenting (using Komento) for all my blog posts.
2. I do not want the Comment option to show up in EasyBlog Composer for any users. It should be On - Always. And no users (except backend admin) should be able to turn it off.
Hello,

Please replace the attached file in: ../components/com_easyblog/themes/wireframe/composer/form/comment.php and see how it goes.
·
Friday, 31 July 2015 11:13
·
0 Likes
·
0 Votes
·
0 Comments
·
The question is, did you customize the theme files to remove this option from the composer? If you did, you need to revert your changes and ensure that the code looks like below in /components/com_easyblog/themes/wireframe/composer/form/comment.php


<input type="hidden" name="allowcomment" value="1" />
·
Friday, 31 July 2015 01:20
·
0 Likes
·
0 Votes
·
0 Comments
·
I have not done any changes (yet) to the comment.php file, but I have asked about how to remove the Properties and Tags section from the Composer for registered users. Only solution was to code this/remove code from core files. I got help on finding the specific file needed to edit for this (thanks!).

Ahhh, now I remember, I have turned off commenting for Registered users in ACL:
"Change Comment Settings When Composing Blog Post" = No

I thaught that when I did this Registered would not be able to change the default (which is set to Enabled in EasyBlog > Settings > Comments. But must be an error here with the setting, since it also turns off commenting (I just dont want my users to change the default which is set to Enabled).

So I am stuck here...
Maybe if I enable the ACL setting for registered users, then input your code in the comment.php file? Where do I put it? (I hate editing core files, but when its the only solution for getting what I want...).

As said, I want commenting for all posts on my site, and I do not want my users to be able to turn thhis off.

This is how my comment.php file looks like:

defined('_JEXEC') or die('Unauthorized Access');
?>
<div class="eb-composer-field row">
<label
for="allowcomment"
class="eb-composer-field-label col-sm-5"
data-eb-provide="popover"
data-title="<?php echo JText::_('COM_EASYBLOG_COMPOSER_ALLOW_COMMENTS'); ?>"
data-content="<?php echo JText::_('COM_EASYBLOG_COMPOSER_ALLOW_COMMENTS_HELP'); ?>"
data-placement="left"
data-html="true">
<?php echo JText::_('COM_EASYBLOG_COMPOSER_ALLOW_COMMENTS'); ?>
</label>
<div class="eb-composer-field-content col-sm-7">
<?php echo $this->html('grid.boolean', 'allowcomment', $post->allowcomment); ?>
</div>
</div>
·
Friday, 31 July 2015 02:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry, that did not work either. When I post a new blog post (as regular user) the post do not have commenting.
·
Friday, 31 July 2015 16:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

You have to turn on this option in ACL: http://screencast.com/t/YgUAZtju . I've enabled it for you and the post now has a comment form. Plus, your user will not see the Allow Comment option in composer.
·
Friday, 31 July 2015 17:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for this Nik.

I hope you see that this is a bug in EasyBlog and fix this for future versions.
The ACL setting has to do with if this user level (registered users) are going to have the option of editing comment settings for his blog posts. I would like this to be a No (=> use the site/admin default = registered users should not be able to turn on/off commenting per blog post, it should be the site default = Enabled for all posts).

As it is now my comment.php file has been edited (-> hide comment field), and no user levels will be able to edit commenting.
·
Friday, 31 July 2015 17:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

You're welcome. I'll note this down in our development tracker and see how it goes.
·
Friday, 31 July 2015 18:00
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post