vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   global.php include problem (https://vborg.vbsupport.ru/showthread.php?t=114423)

Hammon 04-30-2006 02:46 PM

global.php include problem
 
I'm tryng to build a portal based on a cms that integrates with Vbulletin. On this purpose I include global.php of vbulletin in my cms pages as suggested in alot of threads.

It fails: Fatal error: Call to a member function on a non-object in /forum/includes/functions.php on line 1041
which is a call to the db function:

Code:

$user = $vbulletin->db->query_first("
SELECT " ....

I suppose the problem is that either cms and vbulletin uses a class named $db so when I try to use code from the vbulletin framework it doesn't work.
Is there any solution in order to use both cms and vbulletin framework thogether (db class) ?
THanks in advance for your help: being not a good coder myself need help :P

Munnday 06-15-2006 09:58 AM

Consider this a bump, I too am having a similar problem, using wordpress and trying to display vbulletin related information returns the same error.

Jafo232 02-23-2012 09:09 PM

The only reason I am bumping this up is because I have always had this problem and whenever I google a solution, this comes up first or second; so I figure this will help someone else who is experiencing the exact same issue:

http://www.lampwrights.com/showthrea...=1069#post1069


All times are GMT. The time now is 05:51 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.04374 seconds
  • Memory Usage 1,711KB
  • 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_code_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