Incase anyone else ever ends up with the same issue this is how I solved it:
Edit page.php like this:
Code:
RunPreFilter(__FILE__);
$bad_templates = array('\.\.', 'http://', 'https://', 'file://', 'php://');
if (!ereg(implode('|', $bad_templates), $id) && file_exists($theme_path . $id . '.html')) {
if ($id != 'forum')
{
DisplayTemplate($theme_path . $id . '.html');
}
else
{
DisplayTemplate($theme_path . 'header' . '.html');
include 'forum/index.php';
DisplayTemplate($theme_path . 'footer' . '.html');
}
}
else {
header("HTTP/1.0 404 Not Found");
$requested_url = $_SERVER["REQUEST_URI"];
DisplayTemplate($theme_path . "404.html", "\$requested_url");
}
RunPostFilter(__FILE__); It checks if the id is forum and then displays header, the forum and last it displays footer.
If there are better solution, don't hesitate to let me know.
thanks