vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   forums refresh (https://vborg.vbsupport.ru/showthread.php?t=65817)

meowmeow 06-04-2004 08:22 AM

forums refresh
 
when i make a modification to the database using a script i wrote to import forums it doesn't automatically show up in the VB3 forum even after a refresh...
I have to go to the admin cp /forum manager/ and save visualisation order. then the changes i did to the database show up as they should.
how can I automate this.... because i will regularly be updating the list of forums thru a script and i dont want to have to go to the admincp every time to launch the changes i made!!!

Zachery 06-04-2004 11:25 AM

Thats correct, you need to rebuild the forum cache.

Check how the update forum info, counter works and add this to your script.

meowmeow 06-04-2004 11:53 AM

where can i find that?
is it in forumdisplay.php ln 750???

Zachery 06-04-2004 11:58 AM

AdminCP > Import & Maitences > Update counters

meowmeow 06-04-2004 12:49 PM

I can't check what the code does from the admincp panel. i'm trying to find where the code is in the scripts but cant find it anywhere...

also, does VB ever do this automatically? (maybe once a day or something, or is it only something I can do manually from the admincp)

Zachery 06-04-2004 01:40 PM

No, however you could copy the code from the admincp's file and add it to your own ;)

meowmeow 06-07-2004 08:34 AM

still can't find the admincp file where the code is!

Brad 06-07-2004 09:01 AM

Quote:

Originally Posted by meowmeow
still can't find the admincp file where the code is!

To find out the filename of any admincp page, Right click on that pages link in the navigation frame and click properties. This will give you the direct link to the page, including what file is really begin used.

meowmeow 06-07-2004 09:22 AM

AAAAAAAaaaaah.... :ermm: thats a useful piece of info I wasn't in on!
thanks a lot!!!! :banana:

meowmeow 06-07-2004 09:38 AM

ok so i got the code to update forum info.
whats the best way to use this...

i'm trying to just copy the code that does it and put it in my script... i get a few errors i'm not sure how to fix.

first-do I have to
require_once('../../admincp/global.php');
require_once('../../includes/functions_databuild.php');?????????????

because i get an error in global.php
Fatal error: Failed opening required './includes/init.php' (include_path='.:/usr/local/lib/php') in /www/forum/htdocs/admincp/global.php on line 32

if i comment global.php out i get an errore when i try to do a query such as:
$forums = $DB_site->query("...");

Fatal error: Call to a member function on a non-object in /www/forum/htdocs/import/forums/showForums.php on line 26

what file do i need to include to make this query work?


All times are GMT. The time now is 06:39 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.01104 seconds
  • Memory Usage 1,724KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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