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.
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.