The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Moved code from global_start to global_bootstrap_init_start and it stopped working...
I'm upgradibg on of my mods to VB4 and so as usual I changed hooks from global_start to global_bootstrap_init_start and usually everything works fine...
But not today. In the plugin I build some arrays from settings data, say $my_array1, $my_array2, and $my_array3. In VB3 those arrays were available in another plugin on the hook profile_editoptions_start. In VB4 if I use global_start they still work in the other plugin, but when I change them to global_bootstrap_init_start I get errors, the array isn't valid. I tried making them global in profile_editoptions_start by putting in the line: Code:
global $my_array1, $my_array2, $my_array3; |
#2
|
||||
|
||||
Figured it out... Against everything I thought I knew about PHP I had to put the global statement in global_bootstrap_init_start not the other plugin.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|