vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Manually adding forums in database (https://vborg.vbsupport.ru/showthread.php?t=198903)

dolbex 12-15-2008 02:08 AM

Manually adding forums in database
 
Hey, I'm working on a project where I need to manually add a forum via the database. Problem is that when I add the forum to the vb_forum table it doesn't show up in the forum list. However, if I add another forum in the adminCP afterwards both the new forum and the forum I added in the database show up. (And appear to be working just fine.)

I'm guessing that there is some table I need to be updating that I've missed. It doesn't seem to be the datastore table because if I remove the forums entry and rebuild from maintenance it still isn't there.

Anyone have some direction for me?

Thanks!

Dismounted 12-15-2008 02:19 AM

This is what vBulletin Data Managers are for! There is more to adding a user/post/thread/etc than just a single row in a table.

dolbex 12-15-2008 02:23 AM

Okey, dokey. Have a link to get me rolling down the right path?

Dismounted 12-15-2008 02:50 AM

<a href="http://www.vbulletin.com/docs/html/data_managers" target="_blank">Data Managers</a>

dolbex 12-15-2008 05:28 PM

Thanks for the link Dismounted. This certainly looks like the way to go. However, I am having a problem implementing this solution in the MVC Framework CakePHP. The problem I am having is that no matter where I try to implement my code I get this error:

Quote:

Fatal error: Call to a member function query_first_slave() on a non-object in.... (path)
Does anyone here have any CakePHP / vBulletin integration experience, especially using Dataman?


All times are GMT. The time now is 03:02 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.00942 seconds
  • Memory Usage 1,713KB
  • 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
  • (5)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