View Full Version : XML Bitfield help please
Dragon_IBA
25 Oct 2006, 02:21
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?
From the vb bitfields list you can see that the adminemail option value is 16 ;
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
So you need to do a logical AND of the useroptions value and 16 - and test the result.
Dragon_IBA
25 Oct 2006, 03:20
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.
Well in php it would be this, not sure about .net
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
BTW, 16 = bit 5, not bit 6 as in your post.
vBulletin® v3.6.12, Copyright ©2000-2009, Jelsoft Enterprises Ltd.