The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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.
|
#2
|
||||
|
||||
You should be able to.
Where did you set the variable and where are you using it? |
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
(1) Globalize the variable name in the makeforumbit() function, in that same file.
(2) Here: PHP Code:
|
#5
|
|||
|
|||
Worked Perfectly
Thanks A Bunch |
#6
|
|||
|
|||
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 |
#8
|
||||
|
||||
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.?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|