vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Updating Settings in the Admin Panel (https://vborg.vbsupport.ru/showthread.php?t=42943)

futureal 08-30-2002 06:30 AM

Updating Settings in the Admin Panel
 
Here's a question:

I have added a value to the "setting" table. However, I am updating that value *without* going through the "Update Options" part of the Admin CP (it is in a different part of the admin CP).

How do I tell vBulletin that a setting has changed? I've noticed that when I change my setting, I have to go to "Update Options" and click "Submit" in order to make my setting take effect -- even though it was actually changed somewhere else. I am assuming that the Options are cached somewhere to reduce queries, so I guess I really just need to know how to force the system to re-query for updated settings.

The reasoning behind my new setting is to have an on/off control for part of my arcade, without making any additional queries around the forums. Right now I have it fully integrated with the showthread system, at a cost of only a single query.

Thanks in advance for any help that anyone can provide.

Scott MacVicar 08-30-2002 06:37 AM

its in the template table with the title of options, once you've added something to the setting table run this query.

Code:

UPDATE template SET template=CONCAT(template,'\n\$VARNAME = 1;\n') WHERE title='options'
where varname is whatever and 1 being on and 0 being off as usual :)

futureal 08-30-2002 07:02 AM

Got it. Works great now, thanks!

Erwin 08-30-2002 07:10 AM

Thanks PPN for that tip. I've always wondered that... frustrating when I am changing servers, and I am trying to switch my forums on manually in phpmyadmin. :)

Scott MacVicar 08-30-2002 07:19 AM

Had to edit it there stupid newlines being removed :E


All times are GMT. The time now is 03:42 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.01922 seconds
  • Memory Usage 1,708KB
  • 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)bbcode_code_printable
  • (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