The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
adding valuse to global variables
hi all,
well i'm in the process of writing my hack for my site .. and i was wondering how can i add a value in the global variables such as $vboptions or $user for example i want $vboptions[somevar]=some value so i can use it anywhere in the board ?! where does these variables get initiated ?! Thanks |
#2
|
|||
|
|||
well anyone can help ?
i'll refrase my Q .. in VB the global variables $vboption & $vbuserinfo can be used any where in the files .. so that Vbuserinfo have all the user info and vboption have all the board options what i need to know is where is the varibales get initiated cuz i want to add some more options to the board and more user date in the user data variable so i can use it anywere in vb .. Hope someone can help me with this Thanks |
#3
|
|||
|
|||
You could do that anywhere.
just use: PHP Code:
|
#4
|
|||
|
|||
I believe he means that he wants to be able to use the var anywhere...
You can do so by adding this code to your global.php: PHP Code:
|
#5
|
||||
|
||||
i suggest to add those things to phpinclude_start
but to answer the question, the session.php is responsible for the bbuserinfo array for example |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|