PDA

View Full Version : Changing forum variales via php in files


Chunky Monkey
01-20-2009, 01:32 PM
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!

Guest190829
01-20-2009, 02:35 PM
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.

Chunky Monkey
01-20-2009, 03:36 PM
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!