View Full Version : forums refresh
meowmeow
06-04-2004, 08:22 AM
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!
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?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.