The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Vb4 user option bitfields, how to extract
How in the world do you extract the bitfields on individual users. I'm really only looking for daylight savings time on, off, and auto dst.
If anybody could help me I'd be greatly appreciative. |
#2
|
||||
|
||||
What I typically do is on my dev site I take a look at the bitfield in question via phpMyAdmin and convert them to binary, noting the choice made. In this case, we are interested in the "options" column of the "user table. Here is what I found regarding the "DST Correction Option":
Code:
10101100000100110011010111 (auto-detect) 10101100000100110000010111 (always off) 10101100000100110010010111 (always on) So, a PHP statement like: PHP Code:
will store in that variable for the browsing user the following values:
|
#3
|
|||
|
|||
dude, that was like way above my brain power to figure out on my own, thanks dude!
I tried it, but no luck. I couldn't get the dst_option to return anything. a var_dump returns int(1), but its literally NULL |
#4
|
||||
|
||||
Glad to help out!
|
#5
|
|||
|
|||
never mind. its inherent. thanks dude. I had it practically, just global spam was needed
--------------- Added [DATE]1500743867[/DATE] at [TIME]1500743867[/TIME] --------------- To build upon this post I've included the following in case people were curious: PHP Code:
|
Благодарность от: | ||
MarkFL |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|