Topic: Pun header and footer outside forum root
i'm building pages that will go outside the forum and so far not having luck including the punbb header and footer on pages that are outside the root folder.
the code i'm using i found here.
this is what i have:
<?php
define('PUN_ROOT', 'http://www.theplatoon.com/drj/');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
//Set the page title here
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / Rules';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/parser.php';
?>
Rules go here
<?php
require PUN_ROOT.'footer.php';
i'm assuming it has something to do with
define('PUN_ROOT', 'http://www.theplatoon.com/drj/');
what do i need to change it to in order for my links to be correct and for the page to display correctly?
using the unmodified code the pages work great inside the forum root folder.
FluxBB - Less is more