Its really simple:
First I start index.php (a custom one, programmed by me)
Then, based on sertain settings it needs to load the forumdisplay.php with the forum ID preconfigured.
I use the folowing code currently (after standard index.php initialisation) and it will unset all phrases.
Code:
if (is_numeric($vbulletin->pcSys->domain["forum_id"]) && $vbulletin->pcSys->domain["forum_id"] > 0) {
$_GET["forumid"] = $_REQUEST["forumid"] = $_GET["f"] = $_REQUEST["f"] = $vbulletin->pcSys->domain["forum_id"]; //
} else {
$vbulletin->pcSys->fatal_error('No forum id configured for this domain');
}
$vbulletin->input->clean_array_gpc('r', array(
'referrerid' => TYPE_UINT,
'postid' => TYPE_UINT,
'threadid' => TYPE_UINT,
'forumid' => TYPE_INT,
'pollid' => TYPE_UINT,
'a' => TYPE_STR,
'mode' => TYPE_STR, // Threaded mode // may conflict with other 'mode' variables?
'nojs' => TYPE_BOOL,
));
$vbphrase = init_language();
$foruminfo = verify_id('forum', $vbulletin->GPC["forumid"], 0, 1);
$forumid =& $foruminfo['forumid'];
if (($foruminfo['styleoverride'] == 1 OR $vbulletin->userinfo['styleid'] == 0) AND !defined('BYPASS_STYLE_OVERRIDE'))
{
$codestyleid =& $foruminfo['styleid'];
}
// #############################################################################
// Start initialisation
require_once(DIR . '/includes/functions_forumlist.php');
require_once(DIR . '/includes/functions_bigthree.php');
require_once(DIR . '/includes/functions_forumdisplay.php');
require_once(DIR . '/includes/functions_prefix.php');