Undo all changes.
Add the code in red in all 4 places.
Code:
include('./global.php');
if ($bbuserinfo[userid]!=0) {
if (isset($postid) and $postid!=0 and $postid!="") {
$postid = verifyid("post",$postid);
$getthread=$DB_site->query_first("SELECT threadid FROM post WHERE postid='$postid'");
$threadid=$getthread[threadid];
}
Code:
eval("dooutput(\"".gettemplate("showpost")."\");");
exit;
} else {
show_nopermission();
}
Code:
require('./global.php');
if ($bbuserinfo[userid]!=0) {
// oldest first or newest first
if ($postorder==0) {
$postorder="";
} else {
$postorder="DESC";
}
Code:
getforumrules($forum,$getperms);
eval("dooutput(\"".gettemplate("showthread")."\");");
} else {
show_nopermission();
}
Now it has to work.