![]() |
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?
|
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 |
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. |
The user table is automatically SELECTed, so anything you need to pull from the user table is ready for you to use.
|
I got it to work, thanks ! :)
|
No problem, just glad to help!
|
All times are GMT. The time now is 07:03 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|