By John Helbling on Wednesday, 03 May 2017
Posted in General Issues
Replies 9
Likes 0
Views 413
Votes 0
My client does not want the front end editing turned on. I have looked all over the place in the admin and have found no option to turn the front-end composing off. I need to do this asap.
Hello John,

The compose button is view-able by users who has access to compose blog post. If you need to remove this, you could modify the theme file /components/com_easyblog/themes/wireframe/toolbar/default.php and remove the codes below,

[gist]
<?php if ($this->acl->get('add_entry')) { ?>
<div class="o-nav__item">
<a class="o-nav__link eb-navbar__icon-link" href="<?php echo EB::_('index.php?option=com_easyblog&view=composer&tmpl=component'); ?>"
data-eb-provide="tooltip" data-placement="top" data-original-title="<?php echo JText::_('COM_EASYBLOG_TOOLBAR_NEW_POST_TIPS');?>"
>
<i class="fa fa-pencil"></i>
<span class="eb-navbar__link-text"><?php echo JText::_('COM_EASYBLOG_TOOLBAR_NEW_POST');?></span>
</a>
</div>
<?php } ?>
[/gist]
·
Wednesday, 03 May 2017 11:33
·
0 Likes
·
0 Votes
·
0 Comments
·
If i do this will it come back upon an update?
·
Wednesday, 03 May 2017 11:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Also where do i adjust the access control for just the front-end editing?
·
Wednesday, 03 May 2017 11:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello John,

Ideally you should place this in a template override in /templates/JOOMLA_TEMPLATE/html/com_easyblog/toolbar/ . This way it will not be affected when you upgrade.

You may also disable the privilege to create new posts under the ACL section at the back end of EasyBlog.
·
Wednesday, 03 May 2017 12:00
·
0 Likes
·
0 Votes
·
0 Comments
·
This - You may also disable the privilege to create new posts under the ACL section at the back end of EasyBlog.

Will this just be for the front-end? Or both back and front?
·
Wednesday, 03 May 2017 12:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Im sorry for all the questions but your url for the override folder - /templates/JOOMLA_TEMPLATE/html/com_easyblog/toolbar/

It doesnt have to go through the entire hierarchy? meaning - /templates/JOOMLA_TEMPLATE/html/com_easyblog/themes/wireframe/toolbar/ ?
·
Wednesday, 03 May 2017 12:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello John,

The ACL settings for creating new post is applicable on both the front end and back end. I believe if you are mainly only wanting to remove the icon for users with access to create a post, it would be best to create a template override and remove the icon.

Yes, that is correct. The template override path should be without the themes/wireframe portion.
·
Wednesday, 03 May 2017 12:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok final question - On the override file I simply copy the file into that directory and then remove that portion of code correct?
·
Wednesday, 03 May 2017 12:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes sir, that is correct. By the way, are you on 5.1 or 5.0? The code which I posted was for 5.1
·
Wednesday, 03 May 2017 12:47
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post