![]() |
|
|
Thread Tools |
|
#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.
No members have liked this post.
|
|
#2
|
||||
|
||||
|
You should be able to.
Where did you set the variable and where are you using it?
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com No members have liked this post.
|
|
#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. No members have liked this post.
|
|
#4
|
||||
|
||||
|
(1) Globalize the variable name in the makeforumbit() function, in that same file.
(2) Here:
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com No members have liked this post.
|
||||
|
#5
|
|||
|
|||
|
Worked Perfectly
Thanks A Bunch ![]() No members have liked this post.
|
|
#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 No members have liked this post.
|
|
#7
|
||||
|
||||
|
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.
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com No members have liked this post.
|
|
#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.?
No members have liked this post.
|
|
#9
|
||||
|
||||
|
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.
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [HTL] & [Normal] Setting Varname Next to the Setting Title. | Link14716 | vBulletin 3.0 Full Releases | 6 | 15 Jan 2004 15:26 |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 03:09.




