Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Sort users alphabetically, everywhere

9 years 4 months ago
Licenses:
JomSocial Active

Hello.

I've been trying to make the user list be sorted alphabetically automatically.

I will not allow any other filtering/sorting action there, except the abc, def, ghi filter, and a custom filter I will implement in the future.

I tried adding &sort=alphabetical to the URL (via SH404SEF, so it is transparent to the user), and I looked for "sort" with the "latest" parameter in some files and replacinh those with "alphabetical", but I didn't have any luck.

I added &sort=alphabetical to the URL at filterbar.html.php so clicks there will also keep the list alphabetical, but so far the first display of the list (when the user click on the menu to display the users) isn't alphabetically sorted.

Thank you.

9 years 4 months ago
Licenses:

Hi, Jonathan.

Yes, it's because default list view is: latest members. But you may change it to display alphabetical list. Please, read this:

www.jomsocial.com/forum/modules-plugins-...-needs-fixing#132034

Just change "latest" to "alphabetical".

Please, note that this will be a core hack. Core hacks are not recommended nor supported as they may not working with future JomSocial releases and/or cause issues that will be not supported. Users with core files hack refuse to upgrade their installation to keep those hacks and they are stuck with outdated and unsupported versions. But it's up to you if you want to use it ;)


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
9 years 4 months ago
Licenses:
JomSocial Active

Hi Michal.

Unfortunately, it didn't work.
Please, look at www.iyengar.com.br/Professores/Membros/

Don't worry, I'm one of the few that, if the core hack is inevitable, will document everything, and reapply after the update.
And if the hack didn't work in the new version because some other thing changed in the system, I tell the client to live with it, or risk their site being hacked. I'm yet to see anyone risk it after I explain the risks involved.

Cheers.

9 years 4 months ago
Licenses:
JomSocial Active

Also, if I can add this as a feature request, it would be to add a dropdown with the choice of default sorting, when creating the JomSocial "All Members" menu.

9 years 3 months ago
Licenses:

HI, Jonathan.

It seems that you customized that page... did you removed dropdown?
Take a look how this page looks on my test site (ignore user list - I mean what is above it).

You removed all of this:

<div class="joms-sortings">
            <?php echo $sortings; ?>
            <?php if (isset($hasMultiprofile) && $hasMultiprofile && !isset($isAdvanceSearch) && count($multiprofileArr)> 0) { ?>
            <select class="joms-select" onchange="window.location=this.value;">
                <?php foreach ($multiprofileArr as $key => $value) { ?>
                <option value="<?php echo $value['url']; ?>" <?php if ($value['selected']) echo 'selected="selected"'; ?>>
                <?php echo $value['name']; ?>
                </option>
                <?php } ?>
            </select>
            <?php } ?>
            </div>

So code I provided doesn't have any effect. You should rather HIDE dropdown with css than remove it.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
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