The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Is it possible to extract a single option from the options bits for each user (specifically, the option for receiving e-mails on PMs) in a query, rather than using vB3's bitmasking function later?
|
#2
|
||||
|
||||
![]()
you mean..
Code:
SELECT IF(options & 4096, 1, 0) AS emailonpm FROM user That will give you 1 if they have it enabled (YES email on PM), and 0 if they have not. |
#3
|
|||
|
|||
![]()
Thanks...didn't realize that MySQL had a bitwise and like PHP.
|
#4
|
||||
|
||||
![]()
But of course
![]() it's not That bad a db ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|