View Full Version : Social Group Discussion Sort Order
Is there a way to change the message sort order in social group discussions in 3.8.1?
Sorting discussion posts chronologically ascending is very unintuitive, and requires lots of unnecessary page navigation to see new posts; latest posts at the top/on first pages seems much more useful. My users are very happy with the new features of 3.8, but this seems to be a big oversight (or perhaps my oversight in not being able to find where to alter this setting in th AdminCP or UserCP).
Any advice?
Thanks!
Lynne
02-26-2009, 02:17 PM
It looks like the query is made in class_groupmessage.php in the function around line 1033. I'm not positive though. I suppose you could alter that query slightly and see if a change happens and then you'll know you have the right query.
Thanks for the info lynne.
It seems odd that SG discussions would by default present posts in ascending order, when every other aspect of vB usually shows newest items at the top.
It's also a shame that the developers didn't include a way to control the sort order in UserCP or AdminCP; I dislike editing core files unless absolutely necessary.
Lynne
02-27-2009, 08:26 PM
For most threads, unless you changed it, it is default oldest to newest. So, I think that is why Discussions are the same way.
For most threads, unless you changed it, it is default oldest to newest. So, I think that is why Discussions are the same way.
Yes, but there is a setting in the AdminCp to set the default sort order. The vast majority of forums that I have seen running vB use newest first, as it is much more useful and intuitive, and reduces a huge amount of unnecessary pageviews and nvigation.
In any case, I'm kind of shocked and disappointed that the developers didn't include this basic option. It really seems to be an oversight.
nofat.co.nz
02-28-2009, 06:44 AM
Hey 711 :D - I'm looking to change the same thing ;)
Found this on the vbulletin site - haven't tried it yet but supposedly it should fix the problem :D
In 3.7.x social group messages were sorted from newest to oldest.
In 3.8.x they are sorted the opposite.
Please make a user option that allows members to choose which way they want to sort.
my "hack" that lets users choose...
create a new profile field, single selection box. Values are "Oldest First" (default) and "Newest First"
After line 2153 in group.php add this line:if ($vbulletin->userinfo['field###']=="Newest First") {$dsort=true;} else {$dsort=false;}
Edit the following line to look like this: $collection = $collection_factory->create('message', $discussion['discussionid'], $vbulletin->GPC['pagenumber'], $perpage, $dsort);
Now users who liked the old "Newest First" layout are happy again, and I can still keep users that enjoy the forum-like layout of the social group messages happy.
Come on guys... it would take 1 minute to add this to 3.8.2
http://www.vbulletin.com/forum/showthread.php?p=1702020#post1702020
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.