The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
global.php
Anything (e.g., variable) that I set in global.php will be available in any vb page, since they all include/require it, right?
|
#2
|
|||
|
|||
Yes, provided:
1. It isn't a reserved variable 2. It isn't overwritten/unset at any point 3. It's within the proper scope 4. It is put in the correct global.php |
#3
|
||||
|
||||
j...a...r..g...o..n... does not co...m...putt...e...
so, If I wanted to run a piece of code to check the value of a field in the table USER, and run an IF statement based on that, which would include setting a variable that I would want to a.) not be changed, and b.) be used in a template, I'd put it... where? note: tried top and bottom, but it gave me errors. |
#4
|
||||
|
||||
The user table is automatically SELECTed, so anything you need to pull from the user table is ready for you to use.
|
#5
|
||||
|
||||
I got it to work, thanks !
|
#6
|
||||
|
||||
No problem, just glad to help!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|