Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2009, 05:12 AM
711 711 is offline
 
Join Date: Oct 2006
Location: CT
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 02-26-2009, 02:17 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 02-27-2009, 07:36 PM
711 711 is offline
 
Join Date: Oct 2006
Location: CT
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 02-27-2009, 08:26 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For most threads, unless you changed it, it is default oldest to newest. So, I think that is why Discussions are the same way.
Reply With Quote
  #5  
Old 02-27-2009, 09:39 PM
711 711 is offline
 
Join Date: Oct 2006
Location: CT
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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.
Reply With Quote
  #6  
Old 02-28-2009, 06:44 AM
nofat.co.nz nofat.co.nz is offline
 
Join Date: Sep 2006
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey 711 - 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

Quote:
Originally Posted by rootnik View Post
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:
Code:
if ($vbulletin->userinfo['field###']=="Newest First") {$dsort=true;} else {$dsort=false;}
Edit the following line to look like this:
Code:
$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/showt...20#post1702020
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:24 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.04498 seconds
  • Memory Usage 2,213KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete