The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I am just not understanding the concept of bitfields too well
![]() Was hoping someone could help me with a simple task. I have a forum options table for a forum as '97989'. Is there an easy way to determine if "Forum is Open" is set to Yes or No via PHP ? Thank you! |
|
#2
|
|||
|
|||
|
If you had your options in the variable $options, you could use this:
Code:
if ($options & $vbulletin->bf_misc_forumoptions['allowposting'])
{
// Forum Open
}
else
{
// Forum closed
}
That's assuming you have $vbulletin available. If not, the value is actually 2, so you could use if ($options & 2) instead. |
|
#3
|
|||
|
|||
|
Quote:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|