By Tamir Bar-Netzer on Thursday, 22 May 2014
Posted in General Issues
Likes 0
Views 1.1K
Votes 0
Hi there,

How do I remove the buttons from the category page:

COM_EASYDISCUSS_FILTER_ALL_POSTS

COM_EASYDISCUSS_SORT_POPULAR

COM_EASYDISCUSS_SORT_LATEST

I removed all other buttons, but could not find a way of removing those 3 buttons.

Can you please advise?

I am using the latest version Version: 3.2.9422.

Thanks
Hello Tamir,

You can remove in this file -> JoomlaFolder\components\com_easydiscuss\themes\simplistic\frontpage.category.filters.php
·
Thursday, 22 May 2014 17:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Do you mean I have to hack ?
·
Thursday, 22 May 2014 17:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tamir,

Yes, because there was no this option with this in current system
You can remove the code from that file

//LINE 26-30
<li class="filterItem<?php echo !$category->activeFilter || $category->activeFilter == 'allposts' || $category->activeFilter == 'all' ? ' active' : '';?>" data-filter-tab data-filter-type="allpost">
<a class="btn-small allPostsFilter" href="javascript:void(0);">
<?php echo JText::_('COM_EASYDISCUSS_FILTER_ALL_POSTS'); ?>
</a>
</li>


//LINE 61 - 72
<ul class="nav nav-tabs nav-tabs-alt">
<!-- @php -->
<li class="filterItem<?php echo $category->activeSort == 'latest' || $category->activeSort == '' ? ' active' : '';?> secondary-nav" data-sort-tab data-sort-type="latest">
<a class="btn-small sortLatest" href="javascript:void(0);"><?php echo JText::_( 'COM_EASYDISCUSS_SORT_LATEST' );?></a>
</li>

<!-- @php -->
<li class="filterItem<?php echo $category->activeSort == 'popular' ? ' active' : '';?> secondary-nav" data-sort-tab data-sort-type="popular">
<a class="sortPopular" href="javascript:void(0);" <?php echo ($category->activeFilter == 'unread') ? 'style="display:none;"' : ''; ?> ><?php echo JText::_( 'COM_EASYDISCUSS_SORT_POPULAR' );?></a>
</li>

</ul>
·
Thursday, 22 May 2014 18:09
·
0 Likes
·
0 Votes
·
0 Comments
·
ok. tnx
·
Thursday, 22 May 2014 18:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tamir,

You're welcome
·
Thursday, 22 May 2014 18:23
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post