I want to sort the thread display of one single forum by alphabetical order.
Having tried this suggestion
https://vborg.vbsupport.ru/showthrea...threadid=42383 I think I'm misunderstanding the placement of the code.
Finding this in forumdisplay.php:
switch ($sortfield) {
case 'title':
case 'lastpost':
case 'replycount':
case 'views':
case 'postusername':
case 'voteavg':
break;
default:
$sortfield='lastpost';
}
it says to replace $sortfield='lastpost'; with $sortfield='title';
and to limit it to one forum it says replace it with an if-clause:
if($foruminfo[forumid]==x) $sortfield='title';
elseif($foruminfo[forumid]==y) $sortfield='rating';
else $sortfield='lastpost';
Since I don't want any sorting by rating I did this:
switch ($sortfield) {
case 'title':
case 'lastpost':
case 'replycount':
case 'views':
case 'postusername':
case 'voteavg':
break;
default:
if($foruminfo[forumid]==163) $sortfield='title';
else $sortfield='lastpost';
}
But I'm getting a parse error with it. Can someone point out my error?