Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 20 Jan 2009, 14:32
Chunky Monkey Chunky Monkey is offline
 
Join Date: Oct 2008
Question 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!
Reply With Quote
  #2  
Old 20 Jan 2009, 15:35
Guest190829
Guest
 
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.
Reply With Quote
  #3  
Old 20 Jan 2009, 16:36
Chunky Monkey Chunky Monkey is offline
 
Join Date: Oct 2008
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!
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forum SWF 1.0.1 - Show SWF Files in place of forum titles SkyCatcher vBulletin 3.5 Add-ons 26 31 Aug 2006 16:20



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 16:20.

Layout Options | Width: Wide Color: