if ($bbuserinfo['userid']) { $show['guest'] = false; $show['member'] = true; } else { $show['guest'] = true; $show['member'] = false; }