The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Say I have a variable $myvar in global_bootstrap_complete.
How do I access it from postbit_display_complete? Also, what do the "shaded" hooks mean in debug info? |
|
#2
|
||||
|
||||
|
Shaded means the hook is available but not being used by an active plugin on that page.
Usually the variable should be available for use. However, sometime a hook is in a function and you may have to globalize the variables in order to use it there. |
|
#3
|
||||
|
||||
|
Can you show me an example? I tried using global before, it didn't work.
For example, global_bootstrap_complete PHP Code:
PHP Code:
|
|
#4
|
||||
|
||||
|
global_bootstrap_complete:
PHP Code:
PHP Code:
|
|
#5
|
||||
|
||||
|
* CvP punches himself.
result of not having proper sleep. Thanks Lynne
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|