TAW
03-25-2001, 05:22 PM
How do you do this?
I want a PHP file that will go directly to a template
And the template will use stuff from the database like amount of posts and newest member, sessionhash-ed links etc.
The file would do nothing apart from display the thing in the template!
What the PHP code?
I tried one, and it went to the template, but did not display any variable stuff,
eg - it said "Registered Members:
threads in total | posts in total
You last visited: 03-25-2001 02:22 PM.
The time now is 02:22 PM. .
Welcome to our newest member, ."
That was just using this code:
<?
$templatesused = "newtemplate";
require("./global.php");
eval("dooutput(\"".gettemplate("newtemplate")."\");");
?>
How do I do it???
Thanx in advance
I want a PHP file that will go directly to a template
And the template will use stuff from the database like amount of posts and newest member, sessionhash-ed links etc.
The file would do nothing apart from display the thing in the template!
What the PHP code?
I tried one, and it went to the template, but did not display any variable stuff,
eg - it said "Registered Members:
threads in total | posts in total
You last visited: 03-25-2001 02:22 PM.
The time now is 02:22 PM. .
Welcome to our newest member, ."
That was just using this code:
<?
$templatesused = "newtemplate";
require("./global.php");
eval("dooutput(\"".gettemplate("newtemplate")."\");");
?>
How do I do it???
Thanx in advance