The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
User Options Bit Setting Algorithm?
Anyone know the function within the vB code that shows the algorithm for how the user bits are set in the 'options' field for the vB database table: '_user'
I'm doing integration work between Joomla Community Builder and vBulletin and need to learn this bit setting algorithm in order to synchronize "invisible user" options between the systems. thanks for any leads. I've been looking thru the vB code for a few hours now with no success on how those user option bits are set. |
#2
|
|||
|
|||
i'm not 100% certain on this but aren't such options set within the user datamanager?
|
#3
|
||||
|
||||
class_dm.php
method set_bitfield() Or basically: To set a bit [sql] UPDATE user SET options = IF ((options & X), options, options + X) WHERE userid = Y [/sql] To unset a bit [sql] UPDATE user SET options = IF ((options & X), options - X, options) WHERE userid = Y[/sql] |
#4
|
|||
|
|||
thx andreas
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|