View Full Version : Where are user created templates available?
JonnyQuest
Fri 5th May '00, 3:02am
I have created a new header template, however, it is not available to the script I have created. I have required global.php, however, my script can only see the system header. Is there a command to load all the templates? Is there a way to call a specific template from the database (and can you show my how ;))
Huss told me I worded this very poorly, so in a nutshell:
How do I call a vBulletin template that I've created into another script?
Thanks!
[Edited by JonnyQuest on 05-05-2000 at 03:25 PM]
Parker Clack
Fri 5th May '00, 12:25pm
I just created a new template to use but I can't get it to show up in another template.
I added the template and then called it in the other template that I want to use it in with a $nameoftemplate
but nothing shows up.
What is needed to be done next?
Parker
John
Fri 5th May '00, 9:42pm
Here's the PHP code:
$mytemplate = gettemplate("mytemplatename",0);
Or if you want to parse the template:
eval("\$mytemplate = \"".gettemplate("mytemplatename")."\";");
John
Parker Clack
Sat 6th May '00, 6:16am
John:
Where do you put the code? In the template that you want to see this new template in or in one of the .php files?
Parker
John
Sat 6th May '00, 9:05pm
In the PHP file that you want to use it in.
John
leah r
Tue 6th Jun '00, 8:36am
Hmmm...I've tried what you suggested here, John, but I got several different parse errors when trying to run the scripts I add that line to. All I did was add it exactly as you have it here as the first line inside the PHP start tag. I'm running vB 1.1.2. Has the way templates are implemented changed since this post was made?
[Edited by leah r on 06-06-2000 at 08:38 PM]
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.