nogerorob
11-14-2006, 03:16 AM
Hello,
I'm in the process of converting my site to Drupal, and I'm finding that my old Comment on This Article (x Comments) (https://vborg.vbsupport.ru/showthread.php?t=67469) hack isn't working when I try to include it as I do on my normal old php pages.
When I do the following:
chdir($_SERVER["DOCUMENT_ROOT"]."/forums/");
require_once($_SERVER["DOCUMENT_ROOT"]."/forums/global.php");
I get "Fatal error: Call to a member function on a non-object in <snip>/forums/includes/functions.php on line 1041"I realize this might require specialized knowledge of Drupal, but I'm not sure what kind of environment this the global.php needs to be called from in order to work properly.
Any ideas or help much appreciated.
rob
I'm in the process of converting my site to Drupal, and I'm finding that my old Comment on This Article (x Comments) (https://vborg.vbsupport.ru/showthread.php?t=67469) hack isn't working when I try to include it as I do on my normal old php pages.
When I do the following:
chdir($_SERVER["DOCUMENT_ROOT"]."/forums/");
require_once($_SERVER["DOCUMENT_ROOT"]."/forums/global.php");
I get "Fatal error: Call to a member function on a non-object in <snip>/forums/includes/functions.php on line 1041"I realize this might require specialized knowledge of Drupal, but I'm not sure what kind of environment this the global.php needs to be called from in order to work properly.
Any ideas or help much appreciated.
rob