The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Problem with including php content file in header template
Hello,
I tried to include content of php file in my header template using the procedur here http://www.vbulletin.com/docs/html/t..._externalfiles , So i created a php file "test.php" in the root of my website folder which content is : PHP Code:
PHP Code:
What is for you the problem ? Thank you in advance for your answer PS : I tried to change the structur of the path ("/test.php ", "../test.php", Absolute path...) but in vaine Ps : The use of plugins is activated from the Vbulletin Option |
#2
|
||||
|
||||
You cannot just use any old variable in any template. You need to register them for use (or in this case, preregister it for use). Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide
|
#3
|
|||
|
|||
Thank you for your reply,
I readed the post and i did what is asked to do, i created a test.php PHP Code:
PHP Code:
PHP Code:
|
#4
|
||||
|
||||
And what is the contents of your template "mytemplate"? And my_insertvar is not registered, $templatevalues is. So, it's {vb:raw templatevalues.my_insertvar}
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|