PDA

View Full Version : Using Array conditionals with $vboptions



tkv
09-11-2008, 08:21 AM
Add a new setting (and optionally a new settinggroup).
You may choose which settings you use, aslong as you remember the variable you use. (In this case we're using $pmembergroups).

After you're added the setting, you can add this code as your conditional:

$pmembergroups = $vboptions['pmembergroups'];
$pmembergroups = explode(",", $pmembergroups);

if (in_array($bbuserinfo['usergroupid'], $pmembergroups)){
TEXT_TO_BE_DISPLAYED
}
that's it