The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
I wonder if it would be possible to use these:
Code:
if ($mobile_browser == false) if ($mobile_browser_advanced == false) |
#12
|
|||
|
|||
If they're in scope and haven't been unset I don't see why not.
|
#13
|
||||
|
||||
Okay, I entered the following test code in the global_bootstrap_init_start hook. It works but it throws the following error after it displays the userid:
Quote:
|
#14
|
|||
|
|||
Whats' the code you're using?
|
#15
|
||||
|
||||
Sorry about that. I thought I posted it.
This is what I used for testing: PHP Code:
|
#16
|
|||
|
|||
That error means PHP already sent headers and so you can't change them now. I'm not completely sure when this applies and when it doesn't (I believe it's okay once session_start() has been called), but it's because of your print_r. I suggest storing the value of the expression in your if condition and then use it later.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|