if ($options & $vbulletin->bf_misc_forumoptions['allowposting']) { // Forum Open } else { // Forum closed }