global.php is included earlier in the script. Interestingly, on my test page without global.php, it worked.
This time I added the following:
PHP Code:
$classtype='Thread_FirstPost';
datamanager_init($classtype, &$vbulletin, $errtype = ERRTYPE_STANDARD, $forcefile = '');
and got the following error:
Quote:
Warning: require_once([path]/includes/class_dm_thread_firstpost.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/functions.php on line 118
|
Why does it say "[path]" rather than the directory? (I'm not in the forums directory but can chdir() if need be.)
--------------- Added [DATE]1236372364[/DATE] at [TIME]1236372364[/TIME] ---------------
Okay, I had a little progress by changing $classtype to ThreadPost. Now I'm getting the following.
Quote:
Fatal error: Direct Instantiation of vB_DataManager_ThreadPost class prohibited. in [path]/includes/class_dm_threadpost.php on line 54
|