The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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!!! |
#2
|
||||
|
||||
![]()
Thats correct, you need to rebuild the forum cache.
Check how the update forum info, counter works and add this to your script. |
#3
|
||||
|
||||
![]()
where can i find that?
is it in forumdisplay.php ln 750??? |
#4
|
||||
|
||||
![]()
AdminCP > Import & Maitences > Update counters
|
#5
|
||||
|
||||
![]()
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) |
#6
|
||||
|
||||
![]()
No, however you could copy the code from the admincp's file and add it to your own
![]() |
#7
|
||||
|
||||
![]()
still can't find the admincp file where the code is!
|
#8
|
|||
|
|||
![]() Quote:
|
#9
|
||||
|
||||
![]()
AAAAAAAaaaaah.... :ermm: thats a useful piece of info I wasn't in on!
thanks a lot!!!! :banana: |
#10
|
||||
|
||||
![]()
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? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|