vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Getting an Error Trying To Use vB Calls from Drupal (https://vborg.vbsupport.ru/showthread.php?t=131520)

nogerorob 11-14-2006 03:16 AM

Getting an Error Trying To Use vB Calls from Drupal
 
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) hack isn't working when I try to include it as I do on my normal old php pages.

When I do the following:
PHP Code:

    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

Reeve of shinra 11-14-2006 04:00 AM

have you seen the vbdrupal port?

nogerorob 11-14-2006 04:39 AM

Hey there,

I have--only I don't need that kind of integration. I only have a few users who are going to be adding content, so it isn't a problem to have a separate database.


All times are GMT. The time now is 03:08 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01021 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete