By Marc on Friday, 16 September 2016
Posted in General Issues
Replies 1
Likes 0
Views 282
Votes 0
How would I set the list of "My Friends" to display in a simple "newest to oldest" order?

(i.e
index.php?option=com_easysocial&view=friends&filter=all
should list my friends from newest friend first to olderset friend last.

Currently it seems that friends are grouped by profile type and then listed oldest to newest
Currently we do not have filter from newest to oldest for friend listing.

But you can modify this file to achieve this -> JoomlaFolder\administrator\components\com_easysocial\models\friends.php

Add this code into this LINE 662 (you can refer on my attached screenshot below)

$query[] = ' ORDER BY a.' . $db->nameQuote('created') . 'desc';

·
Friday, 16 September 2016 21:59
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post