By Michael Zahariev on Tuesday, 22 December 2015
Posted in Technical Issues
Replies 3
Likes 0
Views 858
Votes 0
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 } ?>
Hey Michael,

Sorry Nik must be referring to EasyDiscuss 4 as we're working on it right now It should be /components/com_easydiscuss/themes/simplistic/frontpage.index.filters.php
·
Saturday, 26 December 2015 17:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Michael,

You might want to modify this file instead: ../components/com_easydiscuss/themes/wireframe/frontpage/filters.php. Please give it a try.
·
Tuesday, 22 December 2015 19:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nik

There is no such directory. :/
·
Saturday, 26 December 2015 17:09
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post