Untested, but should work.
viewforum.php:
viewtopic.php:
viewforum.php:
<?php
define("IN_MYBB", 1);
require_once "./global.php";
$fid = '1';
if(isset($mybb->input['f']))
{
$fid = intval($mybb->input['f']);
}
header("Location: ".$mybb->settings['bburl']."/forumdisplay.php?fid=".$fid);
viewtopic.php:
<?php
define("IN_MYBB", 1);
require_once "./global.php";
$tid = '1';
if(isset($mybb->input['t']))
{
$tid = intval($mybb->input['t']);
}
header("Location: ".$mybb->settings['bburl']."/showthread.php?tid=".$tid);
[Need Smilies? Get Me Smileys!]