vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Thread display mode question (https://vborg.vbsupport.ru/showthread.php?t=182284)

legija 06-12-2008 12:32 PM

Thread display mode question
 
Hi,

I need option to set this to "newest first" in specific subforum. I have threads where updates are posted, and it would be handy if first post shown is the one which is posted as latest.

I couldn't find how to make it, any help would be apreciated.

Thanks.

Opserty 06-12-2008 12:39 PM

Have you tried the AdminCP? :D

AdminCP > Forums & Moderators > Forum Permissions > Edit Forum > Default Sort Field/Order

legija 06-12-2008 12:48 PM

Thanks, but really i could not see "default sort order" field.
3.7.1.

I can see only "Can . . ." this and that, but nothing about sort order. :(

--------------- Added [DATE]1213282353[/DATE] at [TIME]1213282353[/TIME] ---------------

I can get sorted threads to be shown oldest/newest and vice versa.

Thing what i need is, to have POSTS sorted to newest first in this specific subforum.

Boofo 06-12-2008 12:53 PM

It is there right under Default Sort Field when you edit a forum.

legija 06-12-2008 12:56 PM

Ofcourse there is, but that settings affects only threads view, not posts inside thread.

That has no use in my specific problem.

Boofo 06-12-2008 01:12 PM

Can't help you then, sorry.

Opserty 06-12-2008 01:34 PM

Try this:
AdminCP > Plugins & Products > Add New Plugin > Set:

Product: vBulletin
Hook Location: showthread_getinfo
Title: "..." - Whatever you want
PHP Code:
PHP Code:

if(($threadinfo['forumid'] == X) AND ($_GET['postorder'] != 'DESC'))
{
    
$postorder 'ASC';


Is active? Yes

Replace X with the forumid number of the subforum (You can find it in the Forum Manger).

Haven't tested it but it should work. Also then if users want to override it they can add "&postorder=DESC" to the URL.

legija 06-12-2008 01:54 PM

Not quite sure if i done it all correctly, but no results with this too :(

Opserty 06-12-2008 01:58 PM

Oh whoops changes [minicode]ASC[/minicode] to [minicode]DESC[/minicode] in the PHP Code.

legija 06-12-2008 02:08 PM

No luck with this either.

This "mod" should override user selection in "user CP - >options -> thread display mode" from oldest first to newest first.

But only in subforum where i need it.


All times are GMT. The time now is 07:55 PM.

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.01496 seconds
  • Memory Usage 1,725KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete