PDA

View Full Version : Manually adding forums in database


dolbex
12-15-2008, 02:08 AM
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:

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?