![]() |
Defining a variable
How do I create a variable that will detect the page and show a certain image?
I'm not a PHP person at all, so please reply in dummy language :) I figured in theory it would be something like; PHP Code:
|
Just remembered xenon told me awhile back that declaring variables in the phpinclude_start won't actually work in "called templates". Does this mean it won't work in the header template? If not, how or where do I declare them so that they will?
Any help on this is appreciated! |
PHP Code:
and it works in the header but there are templates which are called from within functions, and those can't use those vars (like postbit for example) |
I see, thanks a lot! :)
|
Nevermind done this bit! :)
|
you're welcome :)
|
All times are GMT. The time now is 03:47 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:
|