The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I devised a script to use custom templates for a project I am working on (file driven, not database driven) without using vBulletin. (as vBulletin's user system is a bit too complex for me to do what I had in mind)
I stumbled across a problem for which I cannot seem to find a solution. When I grab the template from the file, it works fine. It stores the template and everything, brilliant. However, when I try to print the index template (with the variables in the HTML) it only prints $varname, not the actual data stored inside. Does anyone have a solution as to get around this problem? Code attached. (please bear in mind the script is in a very early code stage, its not meant for use yet) --I had to rename page.css to page.css.txt to upload it. Disregard the <link> being to the wrong file. |
#2
|
|||
|
|||
![]()
And the result...
|
#3
|
||||
|
||||
![]()
i haven't looked through your code, but, have you used eval? Or, ever wonder why the vbulletin developers are evaluating the templates?
|
#4
|
|||
|
|||
![]()
Then you should look at the code in index.php and the functions in functions.php
edit- Yes I have used eval() but I'm not sure if I should have used it another way. I think this may be a problem with the do_output() function. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|