Quote:
[i]04-09-03 at 07:23 AM Xenon said this in Post #146
to exclude forums:
change this:
PHP Code:
if($lastpost['userid'] != $bbuserinfo['userid'] OR (time() - $lastpost['dateline']) > 3600 OR ($attachmentid and !$foruminfo['moderateattach'])) {
into this:
PHP Code:
if(in_array($threadinfo['forumid'], array(x,y,z)) or $lastpost['userid'] != $bbuserinfo['userid'] OR (time() - $lastpost['dateline']) > 3600 OR ($attachmentid and !$foruminfo['moderateattach'])) {
and change x,y,z into the forumids you want to exclude [/B]
|
When I do this I get this error:
Parse error: parse error, unexpected ',' in /home/opie/public_html/forums/newreply.php on line 296
I'm running 2.2.7 if that matters.