Thank you again, sir.

I got a parser error at first but got it figured out. There needed to be another right bracket at the end of the line.
Code:
if(!in_array($threadinfo['forumid'], array(xx, yy, zz))
I want to be sure I have this right now. Here's what I ended up with:
for newreply.php:
PHP Code:
$permissions=getpermissions($threadinfo[forumid]);
if (($bbuserinfo['userid']!=$threadinfo['postuserid'] or $bbuserinfo['userid']==0) and (!$permissions['canviewothers'] or !$permissions['canreplyothers'])) {
if(!in_array($threadinfo['forumid'], array(13, 15, 3,4,5,6,7,8)))
{
show_nopermission();
} else {
eval("standarderror(\"".gettemplate("error_cannotposthere")."\");");
}
}
and for newthread.php:
PHP Code:
$permissions=getpermissions($forumid);
if (!$permissions[canview] or !$permissions[canpostnew]) {
if(!in_array($forumid, array(13, 15, 3,4,5,6,7,8)))
{
show_nopermission();
} else {
eval("standarderror(\"".gettemplate("error_cannotposthere")."\");");
}
}
and for threads instead of forums, it would be:
newreply.php
PHP Code:
if(!in_array($threadinfo['threadid'], array(13, 15, 3,4,5,6,7,8)))
right? Is there a limit to the amount of forum or thread IDs you can have in the one array statement?
And thank you again, Stefan.