The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
XML Bitfield help please
I need to be able to interpret the bitfield code in the options field of the user table (vbulleting 3.6.0) I use this table to update another database for a sql/asp program we wrote to track tournamnet points. We also now do html mail outs from this program and i need to be able to extract each users choice on receive admin email (yes or no) from the bitfields. Can anyone help me please?
|
#2
|
||||
|
||||
From the vb bitfields list you can see that the adminemail option value is 16 ;
Code:
<group name="useroptions"> <bitfield name="showsignatures">1</bitfield> <bitfield name="showavatars">2</bitfield> <bitfield name="showimages">4</bitfield> <bitfield name="coppauser">8</bitfield> <bitfield name="adminemail">16</bitfield> <bitfield name="showvcard">32</bitfield> <bitfield name="dstauto">64</bitfield> <bitfield name="dstonoff">128</bitfield> <bitfield name="showemail">256</bitfield> <bitfield name="invisible">512</bitfield> |
#3
|
||||
|
||||
so basically i will need to run a decimal to binary conversion on the options field for every user, then do a logic check in our .net program that checks that ***~**1***** is set.
|
#4
|
||||
|
||||
Well in php it would be this, not sure about .net
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|