By Groupe Média Théapolis on Friday, 26 July 2019
Posted in General Issues
Likes 0
Views 545
Votes 0
Hello,

In easysocial, it is possible to prevent certain types of profiles from publishing posts in the feed (img1).

However, the button "quickpost" Docker remains present. When you click on it, nothing happens (img2).

Is it possible to add a line in the php docker to reserve this button to users of a single type of profile ?

We did that, but without success :

<?php if ($this->my->getProfile()->get('Membre Premium')) { ?>

<div class="docker-popup-container has-separator has-separator--right">
<a class="btn btn-docker btn-quickpost" data-docker-quickpost title="<?php echo JText::_('COM_QUICKPOST_DOCKER_OPTION_PREMIUM');?>">
<i class="fa fa-plus-square"></i>
</a>

<div class="docker-popup-quickpost" data-docker-quickpost-wrapper>
<?php echo $this->html('html.loading'); ?>

<div data-docker-quickpost-form>
</div>
</div>
</div>

<?php } ?>


Best regards.
Hey there,

It seems that it is a bug.

By right, it should hide that button if this setting 'Post Story In Dashboard' from the ACL has been disabled.

You need to change this '$this->my->getProfile()->get('Membre Premium')' to the following PHP code:

$this->my->getAccess()->get('story.user.post')


Can you have a try and see how it goes?
·
Friday, 26 July 2019 19:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

It works, thank you very much for your assistance.

Best regards.
·
Friday, 26 July 2019 21:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Saturday, 27 July 2019 10:37
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post