$alowed = 0; $_fid = $GLOBALS["foruminfo"]["forumid"]; if ($_fid>0) { if ($vbulletin->forumcache[$_fid]["alowmedia"]==1) { $alowed = 1; } else { $alowed = 0; } }