The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Changing forum variales via php in files
Does anyone know how I would change the board url and style option via php in the vbulletin source files so that it can be changed from the value retrieved from the database? Is there a function in the vbulletin API that allows you to set certain global variables, or is there an array somebody can direct me to whose values I can change?
Thank you! |
#2
|
|||
|
|||
All default vBulletin options are available in the global scope $vbulletin->options, you can manipulate them as you wish on the fly. [These are the options you set in the admin CP.]
Make sure if you are within a function or method that $vbulletin has proper scope so you can access them. |
#3
|
|||
|
|||
Thank you, Danny.VBT. I am trying to share the same vb database at two domains (and will have two valid vb licenses, of course). I am able display all of the same forums at each domain by using the same config.php file, and log into the forum from both domains, but when I try to post from the "slave" domain (the one who's values are manipulated via php file edits), or create a new thread or send a pm, I just get a white screen. I have essentially achieved "read" access but not "write access" this way. Any ideas? Thanks!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|