The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Clone GLOBAL.PHP
I would like to make a copy of vB's 'global.php' script, cut it down a little, and also do the same to the scripts called from within it.
It's for another section of a website - i'll be leaving the forums scripts 100% in-tact (apart from hacks, of course). Mainly, i'd like to supress errors with this modified script, so that if there is a database failure/error on the forums, this other section of the site can continue, and output it's own messages. Has anyone done anything like this without problems? Or does anyone know of any problems that might occur? My main concern is the 'DB_Site->' name - would I be causing any problem conflicts by using a 2nd global.php? |
#2
|
||||
|
||||
Quote:
|
#3
|
|||
|
|||
DSS just don't include two files that are requiring similiar globals or it could cause some issues... makes sure that you keep them seperate
g-force2k2 |
#4
|
||||
|
||||
If I was to change the bit in my cloned and modified scripts where the instance of the database "and all that jazz" class is created, like this, for example :
change this : $DB_site=new DB_Sql_vb; to this : $DB_clone=new DB_Sql_vb; .... then I could use the $DB_clone, without much hassle? There be no conflicts with database connections, or anything of the sort? |
#5
|
||||
|
||||
Quote:
**** NOTE **** That files that are inluded within this one (if required) ie admin/functions.php would also need to be changed to use $DB_clone |
#6
|
||||
|
||||
Seems pretty safe then.
Nice one.... I'll get working on it tomorrow, now my fears are cleared up. Thanks again. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|