Boofo
07-18-2002, 04:04 AM
I am having problems with the smilies and vbcode buttons showing up all the time in the sig editor hack when I use the second code below. If I use the first code, I get an undefined variable error.
Here is the original code (this code is from the sig editor hack):
if ($bbuserinfo[showvbcode])
$vbcode_smilies = getclickysmilies();
if ($bbuserinfo[showvbcode])
$vbcode_buttons = getcodebuttons();
I kept getting an undefined variable error until I added $cbutton in the code below (I have the custom button hack installed):
if ($bbuserinfo[showvbcode])
$vbcode_smilies = getclickysmilies();
if ($bbuserinfo[showvbcode])
$vbcode_buttons = getcodebuttons($cbutton);
And here is my clumsy (but really trying) attempt at straightening it out (with this I get no smiles OR vbcode in the sig editor):
if ($bbuserinfo[showvbcode] && $allowvbcodebuttons) {
$vbcode_smilies = getclickysmilies();
if ($bbuserinfo[showvbcode] && $allowvbcodebuttons) {
$cbutton = $bbuserinfo[cbutton];
$vbcode_buttons = getcodebuttons($cbutton);
}
}
These things happen no matter what I have it set to in the vBulletrin options for smiles or vbcode in the sig editor settings. Can anyone please tell me what I can do to fix this or help me figure it out?
Here is the original code (this code is from the sig editor hack):
if ($bbuserinfo[showvbcode])
$vbcode_smilies = getclickysmilies();
if ($bbuserinfo[showvbcode])
$vbcode_buttons = getcodebuttons();
I kept getting an undefined variable error until I added $cbutton in the code below (I have the custom button hack installed):
if ($bbuserinfo[showvbcode])
$vbcode_smilies = getclickysmilies();
if ($bbuserinfo[showvbcode])
$vbcode_buttons = getcodebuttons($cbutton);
And here is my clumsy (but really trying) attempt at straightening it out (with this I get no smiles OR vbcode in the sig editor):
if ($bbuserinfo[showvbcode] && $allowvbcodebuttons) {
$vbcode_smilies = getclickysmilies();
if ($bbuserinfo[showvbcode] && $allowvbcodebuttons) {
$cbutton = $bbuserinfo[cbutton];
$vbcode_buttons = getcodebuttons($cbutton);
}
}
These things happen no matter what I have it set to in the vBulletrin options for smiles or vbcode in the sig editor settings. Can anyone please tell me what I can do to fix this or help me figure it out?