By Philippe on Monday, 26 March 2018
Posted in Technical Issues
Likes 0
Views 557
Votes 0
Hello,

When we arrive on the list of Groups, I would like to sort them by popularity, instead of the last items.
Could you tell me which file I need to modify ?

See screenshot attached.

Thank you in advance
Philippe
could be a good feature request too
+1
·
Monday, 26 March 2018 21:08
·
0 Likes
·
0 Votes
·
0 Comments
·
You need to change "latest" to "popular" in the file /components/com_easysocial/views/groups/view.html.php at line 274, http://take.ms/PrUdy
·
Monday, 26 March 2018 22:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Mark !
It works !

Except for the links to the left (see screenshot).
They all end up by /latest

Philippe
·
Monday, 26 March 2018 23:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Philippe,

Can you try to replace the attached file and replace in:
.../components/com_easysocial/views/groups/view.ajax.php
and see how it goes?

You're suggested to backup the file that you want to replace beforehand for precaution
·
Tuesday, 27 March 2018 13:24
·
0 Likes
·
0 Votes
·
0 Comments
·
It works perfectly !
Thank you very much Fadhli

What part of the code has been changed?
To allow me to apply the Custom code to each new update.

Philippe
·
Wednesday, 28 March 2018 20:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Philippe,

I've add the code in the line 102 which is the
$ordering='popular';
·
Thursday, 29 March 2018 10:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much Fadhli !

I would like to do the same for Pages.
For the file /components/com_easysocial/views/pages/view.ajax.php, to which line I place :

$ordering='popular';


Thank you
Philippe
·
Wednesday, 04 April 2018 21:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Philippe,

You can add the code after the line 74 in the file.

You're suggested to backup the file that you want to customize beforehand for precaution
·
Thursday, 05 April 2018 10:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you again Fadhli
It's perfect.

Philippe
·
Thursday, 05 April 2018 17:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Great Philippe Glad to hear your issue has resolved.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding and have a nice day ahead
·
Thursday, 05 April 2018 18:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post