The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
As most of you know, vb uses an object for the database connection ($DB_site).
I'm trying to create a second such object ($DB_gamesite) so that I can use vb's functions to manipulate another database. In global.php I added Code:
$DB_gamesite=new DB_Sql_vb; $DB_gamesite->appname='EoCGame'; $DB_gamesite->appshortname='EoC'; $DB_gamesite->database='EoCGame'; $DB_gamesite->server=$servername; $DB_gamesite->user=$dbusername; $DB_gamesite->password=$dbpassword; $DB_gamesite->connect(); |
#2
|
|||
|
|||
![]()
Because it is incomplete ? The init db is bigger then just this code.
|
#3
|
||||
|
||||
![]()
No, it is not incomplete. Should've said it's vb2.
In global.php the same lines (minus "game" ofcourse) are used to setup the $DB_site object... |
#4
|
||||
|
||||
![]()
It's not that easy.
Duplicate the class and rename it ![]() - miSt |
#5
|
||||
|
||||
![]()
I forgot to say you need to change a few of the properties as well as they are referring to the database defined in config.php
![]() - miSt |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|