The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to use a variable from one template in another template?
Hello,
i tried to use the Picture ($blocks[profile_picture]) from the MEMBERINFO template in the template NAVBAR. Unfortunately the picture will only be included if i am on the site MEMBERINFO. I have this problem with several other templates/variables How can i use such variables globally and not only in one template? thanks alot |
#2
|
|||
|
|||
Variables are defined in a php-script (or plugin) and used in templates. You can only use variable that are defined in the script that calls the template.
|
#3
|
|||
|
|||
Thanks,
where can i find the scripts which call the templates? or in my case, where can i find the script that calls the navbar template if there is a tutorial for this a link would be sufficient. unfortunately i didnt find an answer to that in the documentation thanks again --------------- Added [DATE]1236197534[/DATE] at [TIME]1236197534[/TIME] --------------- well ok its the script shown in my browser adressbar i assume :-) but now im stuck with defining the variable for the profile_picture i did find the array list in my member.php $globaltemplates = array( 'MEMBERINFO', and so on but where is the declaration? which parts of the code do i have to implement in my index.php to be able to use the profilepicture in my index.php respectively all the other scripts i want to be able to see the user picture |
#4
|
||||
|
||||
So what you want to do is to display a user's profile picture in the navbar?
|
#5
|
|||
|
|||
yes
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|