vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   adding subforums via mysql (https://vborg.vbsupport.ru/showthread.php?t=174195)

wazo 03-26-2008 09:07 AM

adding subforums via mysql
 
Hi guys

This is what i would like to do

I run a mobile phone site and have about 9 main categories and 500 sub categories, I would like to convert this to vbulletin as forums and then subforums, I created a script to run that would add it to the 'forums' table in mysql but it looks like vbulletin doesnt actually use this to see which forums are to be displayed

So my questions are

1)Where are the forums and subforums kept in mysql
2) What would be the best process for me to do?

Many thanks

Chris

Opserty 03-26-2008 09:58 AM

It is a tiny bit more complex then just an SQL query, things like the forumcache need to be updated e.t.c. You may want to look at using the vB_DataManager_Forum, though you will require a bit of knowledge in PHP & vBulletin to get it working correctly.

One thing I would say though is that 500 Subforms seems a bit excessive. My recommendation would be to wait for the stable release of 3.7, this features Thread Prefixes. Using this you could drastically reduce the number subforums you have, if you want to.

Dismounted 03-26-2008 10:51 AM

Which software are you converting from?


All times are GMT. The time now is 05:03 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.02849 seconds
  • Memory Usage 1,716KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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