Thanks! I got that part to work, but now I have another problem.
I have added this setting to my product:
PHP Code:
<setting varname="bf_new_window" displayorder="10">
<datatype>boolean</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>1</defaultvalue>
</setting>
And in the actual code, I have this conditional:
PHP Code:
if ($vbulletin->options['bf_new_window'] == 1)
{
Case 1
}
else
{
Case 2
}
The problem is that the code always ends up skipping case 1 and going with case 2. Is there some other way to use a boolean setting in a conditional?