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 } ?>