UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Hide the my posts filter

Michael Zahariev · ·
4:34 PM Tuesday, 22 December 2015
High
I am trying to remove the my posts filter for all users except administrators as only admins can post so i dont want all users to be able to see this filter as it is useless for them.

I have adjusted the following code in the frontpage.category.filters.php file but it doesnt seem to be having the desired effect. Could you point me in the direction of my error.

I have also tried commenting out the code in full and this doesnt seem to do anything either. I have included the page and frontend log in details below.

<?php if($system->my->id == 22 || $system->my->id == 23 ) { ?>
<li class="filterItem<?php echo $activeFilter == 'mine' ? ' active' : '';?>" data-filter-tab data-filter-type="mine">
<a class="mineFilter" href="javascript:void(0);">
<?php echo JText::_('COM_EASYDISCUSS_MY_POSTS' );?>
</a>
</li>
<?php } ?>
The replies under this section are restricted to logged in users or users with an active subscription with us