Anyone have any experience with WordPress plugins? I'm trying like crazy to include the global.php file from vB into a plugin so I can do some conditional stuff within my posts but I always tend to get a fatal error any time i use require() or require_once()
I was hoping it would be as ease as:
PHP Code:$vwd = '/path/to/forums';
$cwd = getcwd();
chdir($vwd);
//always fails out on the next line.
require_once('./global.php');
chdir($cwd);


LinkBack URL
About LinkBacks





Reply With Quote
) works as intended. But I cannot seem to get the global.php file to load from the plugin script itself.
