Chronological Thead Display By Start Date
Works with 2.2.0 and up!
This hack was suggested by Lionel at this thread. https://vborg.vbsupport.ru/showthrea...threadid=35707
Its a small hack but it does what he wants.
##### In forumdisplay.php Replace #####
PHP Code:
// look at sorting options:
if (!isset($sortorder)) {
$sortorder = "";
}
if (!isset($sortfield)) {
$sortfield = "";
}
### with ###
PHP Code:
// look at sorting options:
if ($foruminfo[forumid]=="xx" || $foruminfo[forumid]=="xx") {
if (!isset($sortorder)) {
$sortorder = "asc";
}
if (!isset($sortfield)) {
$sortfield = "asc";
}
} else {
if (!isset($sortorder)) {
$sortorder = "";
}
if (!isset($sortfield)) {
$sortfield = "";
}
}
to set it for a certain forum edit this code like
PHP Code:
if ($foruminfo[forumid]=="xx" || $foruminfo[forumid]=="xx") {
xx would be the number of the forum you want to have this be used on.
|