vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Adding value manually to the setting table for options (https://vborg.vbsupport.ru/showthread.php?t=59903)

kingtech 01-08-2004 01:34 PM

Adding value manually to the setting table for options
 
Can anyone tell me why when you manually add a setting into the setting table in mysql it will not take effect until you login to the admin control panel and click save changes ??

Dean C 01-08-2004 02:16 PM

Why add it directly through your mysql manager. Just enable debug mode for 5minutes and you'll see some developer options appear magically when you go to the 'vbulletin options' section of your admincp :)

kingtech 01-08-2004 02:33 PM

Well I have actually written code to insert IP addresses to the banip row of the settings table. But they do not take affect until I do save options in the control panel .. this is vb2 by the way

hwtan 01-08-2004 11:33 PM

That's *probably* because vB3 caches its settings (in the datastore table). The cache is not updated until you save the setting through the admincp, which causes vB to rebuild the cache.

Try this:
PHP Code:

require_once('includes/functions_admin.php');
// ... your existing code ...

// .. after everything is done ...
build_options(); 


DigitalCrowd 01-12-2004 02:20 AM

Any ideas on how to rebuild manual changes to the users "usergroupid" setting in the database? How I can rebuild the cache for this?

Dean C 01-12-2004 03:17 PM

Why not just change their usegroup via the admincp?

NTLDR 01-12-2004 03:26 PM

There is no cache for a users usergroupid, just edit it via the ACP/User Table in phpMyAdmin.


All times are GMT. The time now is 01:41 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.01111 seconds
  • Memory Usage 1,717KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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