Separated forumdisplay.php and showthread.php logic