vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Sequential thread links (https://vborg.vbsupport.ru/showthread.php?t=316671)

Vintum 01-14-2015 06:41 PM

Sequential thread links
 
Hi,

Just wondering if anyone knows of the possibility, or even an existing modification that allows the linking of threads within a subforum in a specific order. Maybe the order they were posted in.

Good example: http://i.imgur.com/2ocOlVW.png?1
Perfect example: http://i.imgur.com/GtmQygc.png?1

Or, if anyone knows what kind of html code I'd have to paste in each thread, I think that could work too.

(I forget, vbulletin does allow the option to have only an admin be able to post html in a thread, right?)

Thanks.

HM666 01-14-2015 08:11 PM

Login to your admincp and go to Settings > Options > Thread Display Options (showthread) - then scroll down to find... "Full Next / Prev Links" tick "yes" and then save at the bottom.

nerbert 01-15-2015 03:23 AM

Try this plugin for "forumdisplay_query"

Code:

$sqlsortfield  = "thread.threadid";
$sqlsortorder = "ASC"; // or "DESC", whichever way you want
$sqlsortfield2 = "";

This will override any previously defined values. Thread id's are in the order of posting time. See forumdisplay.php, line 944

Vintum 01-15-2015 06:01 AM

Quote:

Originally Posted by HM666 (Post 2532559)
Login to your admincp and go to Settings > Options > Thread Display Options (showthread) - then scroll down to find... "Full Next / Prev Links" tick "yes" and then save at the bottom.

Thanks. That helps with displaying the titles.

Quote:

Originally Posted by nerbert (Post 2532591)
Try this plugin for "forumdisplay_query"

Code:

$sqlsortfield  = "thread.threadid";
$sqlsortorder = "ASC"; // or "DESC", whichever way you want
$sqlsortfield2 = "";

This will override any previously defined values. Thread id's are in the order of posting time. See forumdisplay.php, line 944

This seems like it would affect every thread within the whole forum. Is it possible to make this work only in selected forums/subforums?

nerbert 01-15-2015 06:53 AM

Code:

if ( in_array( $forum['forumid'], array( 2, 5, 9, 17) ) )
{
        $sqlsortfield  = "thread.threadid";
        $sqlsortorder = "ASC"; // or "DESC", whichever way you want
        $sqlsortfield2 = "";
}



All times are GMT. The time now is 07:23 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.04822 seconds
  • Memory Usage 1,720KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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