Ok. According to the few posts I've read this should be easy. Fo whatever reason I can't get this to work for me.
Let's say I have a directory under the forum called vBTest.
/forumtest/vBtest
In that directory I have a file called test.php. Here's the basic code for that file:
PHP Code:
error_reporting(E_ALL);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'vBTest');
$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();
chdir('/home/username/public_html/forumtest');
require_once('./global.php');
Just requiring global.php throws the following errors.
Code:
Notice: Undefined index: HTTP_REFERER in /home/username/public_html/forumtest/includes/class_core.php on line 1500
Notice: Undefined index: url in /home/username/public_html/forumtest/includes/class_core.php on line 1905
Notice: Undefined index: HTTP_REFERER in /home/username/public_html/forumtest/includes/class_core.php on line 1911
Fatal error: Call to a member function on a non-object in /home/username/public_html/forumtest/includes/functions.php on line 1545
Fatal error: Call to a member function on a non-object in /home/username/public_html/forumtest/includes/functions.php on line 4279
I'm obviously missing something simple here. I see there's a few NOTICEs, so perhaps I didn't define something I should have??
I searched the forums, but I couldn't really find anything. I'm just piecing various bits of info to try this out. i'm good with PHP/mySQL, but I've never done a vB hack/plugin/extension.
Hopefully someone can help me out. :nervous: