How about posting more of the code? You're leaving us at empty when you specify variables that have no origin.
vBulletin files should always structure around the following syntax:
PHP Code:
<?php
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'filename');
$phrasegroups = array();
$specialtemplates = array();
$globaltemplates = array(
'template_1'
);
$actiontemplates = array();
require_once('./global.php');
if ($_REQUEST['do'] == 'something')
{
// do stuff
}
// etc.
?>