PDA

View Full Version : Sequential thread links


Vintum
01-14-2015, 06:41 PM
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"


$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
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.

Try this plugin for "forumdisplay_query"


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