By Philip Westover on Monday, 27 October 2014
Posted in General
Likes 0
Views 576
Votes 0
Hello. Can you tell me how the sort order of the badges is determined here: http://easysocial.stackideas.com/badges? I'd like to change that sort order to sort on Creation Date instead.. is that possible?

Thanks -- Philip
Hello Philip,

I am really sorry but that's not possible currently What you can do is to hack the core file, /administrator/components/com_easysocial/models/badges.php and at line 517 locate the codes below,


$sql->where( 'a.state' , SOCIAL_STATE_PUBLISHED );


Replace it with,


$sql->where( 'a.state' , SOCIAL_STATE_PUBLISHED );
$sql->order('a.created', 'DESC');
·
Monday, 27 October 2014 23:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect! Thanks Mark!
·
Monday, 27 October 2014 23:51
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Tuesday, 28 October 2014 00:00
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post