Not sure where this should go...
If you want to have your TinyPortal index on a different page/url to the main forum then you can do the following.
<?php
$ssi_path = '/path/to/SSI.php';
$forum_path = '/forum';
require_once($ssi_path);
ob_start('tp_url_rewrite');
loadTheme();
TPortal_init();
writeLog();
call_user_func(whichTPAction());
obExit(true);
function tp_url_rewrite($buffer)
{
global $forum_path;
if (!empty($buffer) && stripos($buffer, $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']) !== false) {
$buffer = str_replace($_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'], $_SERVER['SERVER_NAME'].$forum_path.$_SERVER['REQUEST_URI'], $buffer);
}
return $buffer;
}
?>
I couldn't work out why the menu url etc was set to where I was rather than the path of the forum... so I just rewrote it. A bit of a hack but it works... assumes that you are using index.php on the main page.