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