The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
use the config?
Right so im making my own script, and its going to be located out with the "forum" directory etc so my page will be index and im wanting to use the config file thats found in the /forum/includes/config.php but see...theres one slight problem...how to I make a connection to the database with that config file?
Ive never worked with one such like that, its always been like $usern = usern; $pass = pass; where as vbulletin is like: $config['masterdb']['username'] = and so on...if someone can explain how I would connect using this (as I do not wish to make my own config file either) Cheers Anyone? I need this for a project :-( |
#2
|
||||
|
||||
if i am understanding correctly, it will be out of the forum directory?
if so use this: PHP Code:
/home/frandy/public_html/forums/ if you are not sure, make a new php file executing this: PHP Code:
copy that and place it in the chdir() function. then for easy access to vb variables and the database vbulletin uses just require_once() global.php, like so: PHP Code:
simply run this: PHP Code:
more info on chdir() and getcwd(): |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|