Problem including other frameworks/script
Posted: Sun Apr 30, 2006 3:35 pm
I'm tryng to build a portal based on cmsms that integrates with other apps (Vbulletin forum). On this purpose I include global.php of vbulletin (the core script) in my pages using user-defined-tags
I suppose the problem is that either cmsms and vbulletin uses a class named $db so when I try to use code from the vbulletin framework 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:
Is there any solution in order to use both cmsms and vbulletin framework thogether (db class) ?
THanks in advance for your help: being not a good coder myself need helpĀ
I suppose the problem is that either cmsms and vbulletin uses a class named $db so when I try to use code from the vbulletin framework 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: Select all
$user = $vbulletin->db->query_first("
SELECT " ....
THanks in advance for your help: being not a good coder myself need helpĀ
