vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Turn forum on and off from outside vBulletin? (https://vborg.vbsupport.ru/showthread.php?t=183079)

Dylan Leblanc 06-20-2008 05:53 PM

Turn forum on and off from outside vBulletin?
 
Hi. Is there way to turn my forum off without manually having to go into the Adminintrator Control Panel and turn it off in the settings? Is it possible to turn off a vBulletin forum by using the Data Manager? Thanks.

Opserty 06-20-2008 06:46 PM

You'd have to run a query to edit the settings table and set the board inactive.

Then rebuild the options datastore. (build_options() - adminfunctions.php)

Dylan Leblanc 06-21-2008 06:01 PM

Thanks. I looked in the code and can see how that is done.

Dylan Leblanc 09-26-2008 09:00 PM

Simply including the adminfunctions.php file and calling build_options() doesn't work, I presume because special variables and database connections aren't available.

Can anyone offer any other suggestions?

Dismounted 09-27-2008 05:08 AM

Include the global.php from the admincp directory, then include adminfunctions.php :).


All times are GMT. The time now is 07:46 AM.

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.01131 seconds
  • Memory Usage 1,707KB
  • 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
  • (5)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