vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Changing forum variales via php in files (https://vborg.vbsupport.ru/showthread.php?t=202460)

Chunky Monkey 01-20-2009 01:32 PM

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!

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!


All times are GMT. The time now is 02:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01742 seconds
  • Memory Usage 1,704KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete