If it helps any...im sure your going to have to require global.php from the main forum directory in that new if somewhere.....and then to a gettemplate()...
Maybe something like this?
[code]
if ($action=="view") {
require("/full/path/to/global.php");
$templates=$DB_site->query("SELECT templateid,title,template FROM template WHERE templateid=$templateid");
$template=$DB_site->fetch_array($templates);
eval("echo dovars(\"".gettemplate("$template[title]")."\");");
}
Ill try to play with it some more when I get home
HTH
~Chris
|