![]() |
Setting PHP Variables
If I set a variable in "forumdisplay.php" should I be able to access it in any of the templates called by "forumdisplay.php"? Because I have tried and not been able to.
|
You should be able to.
Where did you set the variable and where are you using it? |
I set it right after the moderator section in "forum_display.php" around line 119, and I'm trying to use it in "forumdisplay_forumbit_level1_post" .
Also where is the "$forum[moderators]" variable set at in the code, I've searched everywhere and can't find it. |
(1) Globalize the variable name in the makeforumbit() function, in that same file.
(2) Here: PHP Code:
|
Worked Perfectly
Thanks A Bunch :) |
I'm having a similar problem: I appended an image swapping script to the global.php file and the variables are not being read by the header template: <img src="<?echo $imgsrc;?>" >
What does it mean to globalize the variable name? Thanks, Chris |
conductorchris, please go to this page and enter your username, to show you are licensed. (you will need to use your customer number and password to access that page)
Thank you. |
Tell me please (gmarik@hotbox.ru) is there a site, where is explained the PHP code of vb.2.2.6. and the new things, that will be in vb.3.0.?
|
gmarik, please go to this page and enter your username, to show you are licensed. (you will need to use your customer number and password to access that page)
Thank you. |
All times are GMT. The time now is 07:07 AM. |
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:
|