PDA

View Full Version : Manually adding forums in database


dolbex
15 Dec 2008, 04:08
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
15 Dec 2008, 04:19
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
15 Dec 2008, 04:23
Okey, dokey. Have a link to get me rolling down the right path?

Dismounted
15 Dec 2008, 04:50
Data Managers (http://www.vbulletin.com/docs/html/data_managers)

dolbex
15 Dec 2008, 19:28
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?