vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Order of Social Group Discussions in 3.8 (https://vborg.vbsupport.ru/showthread.php?t=200770)

Big-K 01-05-2009 03:01 PM

Order of Social Group Discussions in 3.8
 
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

Quote:

Originally Posted by Lynne (Post 1724353)
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.


All times are GMT. The time now is 06:16 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01032 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete