Dear Kyle,
You are doing a great job here with some amazing advanced customization features.
Of course, as a developer you should put a limit and priorities.
But this feature seams to be obvious for me.
And your infrastructure is ready for it (since you already added this option in the main CB forum integration).
Anyway, to whom is also prefer this ORDER BY time ASC:
Find the kunena20.php model file in components\com_comprofiler\plugin\user\plug_cbgroupjive\plugins\cbgroupjiveforums\models\kunena20.php, there, look for row #35 (at least in version 2.0.7 of GroupJive) which says
Code:
$params = array( 'starttime' => -1,
'where' => ( count( $where ) ? implode( ' AND ', $where ) : null )
);
And add as another parameter
Code:
,'orderby' => 'm.time ASC'
It will show
Code:
$params = array( 'starttime' => -1,
'where' => ( count( $where ) ? implode( ' AND ', $where ) : null ),
'orderby' => 'm.time ASC'
);
This will send the ORDER BY parameter to the Kunena helper.php file: administrator\components\com_kunena\libraries\forum\message\helper.php.
Look at the getLatestMessages function line #88 at the 2.0.4 version. There are many other interesting parameters which build the query.
This is a hack to a GJ core file of course...
Kyle, I hope you'll add this feature. The best will be if a user can set it, but if it is too complicated, at least the group owner or the site admin in the backend.
Thanks.
Emanuel.