![]() |
ok - im confused...
I've created a plugin the same way as I create any other.
For the purposes of this test - I have given it the following code... $leonvar = "Testing 123"; and activated upon global_start If I insert $leonvar into my navbit template - it prints our as expected. However if I insert it into my forumhome_forumbit_level2_post template - I get nothing ! Baffled. Any ideas ? Thanks, Leon |
This is an issue with variable scope. If the forumhome_forumbit_level2_post template is generated with a local context (say a function or a method), your variable will not have scope within that function and so nothing will be generated.
|
Thanks for the prompt reply Danny.
Any suggestion on where I start going to look for the solution ? Thanks. EDIT... $GLOBALS[] will work - but is it the best method ? |
Its probably the easiest way to get around the issue, yes.
|
All times are GMT. The time now is 05:01 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:
|