View Full Version : Order of Social Group Discussions in 3.8
Big-K
01-05-2009, 03:01 PM
In 3.8, the latest social group posts are moved to the end and users have to click and scoll to the end. Is there a way to reverse this order and have the latest posts show up on top? Or make it work like regular forum where you get directed to the latest post? Thanks
Lynne
01-05-2009, 03:47 PM
Have you tried looking at the code and changing the order there? I have not seen any option in the user cp to change it.
SuperJETT
01-19-2009, 01:29 AM
I have had a few requests to do that as well.
The problem is that if there are enough posts since you read it, you'd have to go a page forward, read the new stuff, then come back to read the most recent.
There is no 'go to first new post' link, and I don't think that functionality is part of the code yet.
jambo_1969
01-25-2009, 10:23 AM
I really need this changed as well - which php file is used so that I can go check ?
Lynne
01-25-2009, 03:54 PM
Go to the page that you want to change and look at the url and the do=xxx request and then look at that page in the do=xxx area.
jambo_1969
01-25-2009, 04:32 PM
Go to the page that you want to change and look at the url and the do=xxx request and then look at that page in the do=xxx area.
Nope...tried that, but the group.php file is a little bit daunting :)
Lynne
01-25-2009, 05:41 PM
You are talking about when you view a discussion, right? If so, it says do=discuss in the url. So, go to that part of the code where it says "if ($_REQUEST['do'] == 'discuss')" which is around line 2139. Reading that code leads you to "vB_Group_Collection_Factory" which leads you to includes/class_groupmessage.php which leads you to a query around lines 1062 and after. There is an ORDER BY in the query and it looks like there is a hook right above there. So, I'd play with that.
(Note, this was a quick one minute search that I didn't put much effort into. I think that is the right one, but I could be wrong. But, just follow the code...)
Big-K
02-05-2009, 12:22 PM
Ok Folks, Here's the solution I found
In group.php, look for
// Create message collection
$collection_factory =& new vB_Group_Collection_Factory($vbulletin, $group);
$collection = $collection_factory->create('message', $discussion['discussionid'], $vbulletin->GPC['pagenumber'], $perpage, false);
Change "false" to 'true' and you'll have your messages in reverse order.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.