Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

all members dropdown menu

2 years 5 months ago
  • Robby's Avatar
    Topic Author
  • Robby
  • Offline
  • Fresh Boarder
  • Posts: 79
  • Thank you received: 0
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi,

How do I delete some of the options in the drop down menu on the "all members" page? Also, how do I change the color of the drop down menu?

Thanks,

Attachments:
2 years 5 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

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>


Regards

2 years 5 months ago
  • Robby's Avatar
    Topic Author
  • Robby
  • Offline
  • Fresh Boarder
  • Posts: 79
  • Thank you received: 0
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi,

What code do I need to change? Do I change it in the filterbar.html.php?

Thanks,

2 years 5 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi
You can remove the code I shared to remove the filter.
take backup of the original file before apply changes.

Regards

2 years 5 months ago
  • Robby's Avatar
    Topic Author
  • Robby
  • Offline
  • Fresh Boarder
  • Posts: 79
  • Thank you received: 0
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

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,

2 years 5 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

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')

If you only want to change the text, you can override it form Joomla language manager override.



Regards

2 years 5 months ago
  • Robby's Avatar
    Topic Author
  • Robby
  • Offline
  • Fresh Boarder
  • Posts: 79
  • Thank you received: 0
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi,

I updated my first message with the link. I'm not familiar with that kind of override. How does that work?

Thanks,

2 years 5 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

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

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW