Hi
You need to override this file /components/com_community/templates/jomsocial/layouts/filterbar.html.php
here is code used for sorting
<select class="joms-select" onchange="joms_change_filterdropdown(this.value);">
<!-- <li class="filter-label"><?php echo JText::_('COM_COMMUNITY_SORT_BY'); ?>:</li> -->
<?php
$categoryid = $jinput->get->get('categoryid','');
$catId = $jinput->get->get('catid','');
$groupid = $jinput->get->get('groupid','');
$eventid = $jinput->get->get('eventid','');
foreach( $sortItems as $key => $option )
{
$categoryLink = ($categoryid) ? '&categoryid='.$categoryid : '';
$catLink = ($catId) ? '&catid='.$catId : '';
$groupLink = ($groupid) ? '&groupid='.$groupid : '';
$eventLink = ($eventid) ? '&eventid='.$eventid : '';
$queries['sort'] = $key;
if (isset($queries['filter'])) $queries['filter'] = $queries['filter'];
if (isset($queries['radius'])) $queries['radius'] = $queries['radius'];
if (isset($queries['profiletype'])) $queries['profiletype'] = $queries['profiletype'];
$link = 'index.php?'. $uri->buildQuery($queries).$categoryLink.$catLink.$groupLink.$eventLink;
$link = CRoute::_($link);
?>
<option <?php if($key==CStringHelper::trim($selectedSort)) { ?>selected<?php }?> value="<?php echo $link; ?>"><?php echo $option; ?></option>
<?php
}
?>
</select>
Hi
You can remove the code I shared to remove the filter.
take backup of the original file before apply changes.
Regards
Hi,
I don't want to remove all of them. I want to change them and delete one of them. Also, how can I change the gray color?
Thanks,
Hi
The color depends on the theme you are using, if you can share the URL of page I can inspect element and suggest you the style classes.
For the options, You need to make an override for this file /components/com_community/views/search/view.html.php
in your template folder.
Find
'online' => JText::_('COM_COMMUNITY_SORT_ONLINE'),
'latest' => JText::_('COM_COMMUNITY_SORT_LATEST'),
'alphabetical' => JText::_('COM_COMMUNITY_SORT_ALPHABETICAL')
Hi
Robby override is used so that your customisation will not be lost on updating Jomsocial.
here is documentation helps you to create an override for Jomsocial files:
documentation.jomsocial.com/wiki/Customizing_Template
Regards