Your ultimate PunBB resource!
You are not logged in.
How can I use a template (.tpl) in a website, without having PunBB installed?
Offline
Isn't there an easier way, just to implent a code or something?
EDIT: I only want one template file and connect that one to a PHP-file with content. Then be able to change the content to content from another PHP-file when I click on a link on my site. No more functions needed.
Last edited by Zinezn (2007-06-02 16:27:20)
Offline
ummmmm look for snews... that a simple new system and mini cms..
but what that got to do with punbb?
hehehe....
Q
Offline
Can't I just implent a code to display the template on a site, then show the content of the site on a specific place on the template?
Offline
You can do something with variables.
Something like this I think.
index.php
<?php
$title = "The title";
$content = "blablabla";
include ('template/main.php');
?>template/main.php
<html> <head> <title><?php echo $title; ?></title> </head> <body> <?php echo $content; ?> </body> </html>
Offline