What is wrong with my code?
PHP Code:
if ($post['field6'] == "Yes")
{
$vbulletin->options['enablecensor'] = 1;
} else {
$vbulletin->options['enablecensor'] = 0;
}
I want it to disable the censor if the profile field6 is set to No. If it's set to Yes, I want the censor to be enabled.
This plugin is hooked to global_start, by the way. I know it works, but my if conditionals are broken.
I have the censor enabled already in vB Options. I just want it so people can turn on the censor and words will censor. No will keep the censor off (and is default option). The problem right now is when selecting Yes, the censor isn't turning on.