Jakeman
11-12-2002, 06:33 AM
take this simple "vB integrated" script for example:
<?php
include("global.php");
eval("dooutput(\"".gettemplate("template_name")."\");");
?>
i want to make it so when users visit this page it will use a different style... just like when you set a forum to use a different style.
i have tried adding this code to the script (4 is the id for both the template set and replacement set i want to use):
$templatesetid = 4;
$replacementsetid = 4;
this doens't work. the page will use the replacement set i specify but not the template set... the result is a messed up looking page (template and replacement sets crossing).
ideas?
<?php
include("global.php");
eval("dooutput(\"".gettemplate("template_name")."\");");
?>
i want to make it so when users visit this page it will use a different style... just like when you set a forum to use a different style.
i have tried adding this code to the script (4 is the id for both the template set and replacement set i want to use):
$templatesetid = 4;
$replacementsetid = 4;
this doens't work. the page will use the replacement set i specify but not the template set... the result is a messed up looking page (template and replacement sets crossing).
ideas?