Log in

View Full Version : Auto-generating forums?


iafraid
05-27-2006, 01:26 AM
Hi everyone,

I'm new to vBulletin (but not to programming) and I'm picking apart the admin forum create logic trying to build a wrapper so I can just have my code auto-generate new forums based on various events.

Does anyone already have clean code for this that is outside of the Admin toolset? I keep getting distracted by the global function calls and it isn't obvious what needs to happen outside of creating the base forum and setting the usergroup settings for it. I want to make sure I'm anticipating all of the new forum expectations.

I did see the FAQ entry about auto-creating threads which will be very useful, I was just unable to find a similar one for forums themselves.

Thanks so much,
- John

iafraid
05-31-2006, 11:58 PM
No one has a PHP wrapper class for forum creating/updating? Or is this one of those "a pain in ze-arz to do so we don't share" kinds of things?

My idiocy here might be that I need to learn the vBulletin/Ajax way of doing things, but I can't see how these forums are getting inserted into the database! The $forum variable gets created, defaulted, overwritten, but nothing else seems to happen to it.

I know you are out there. I can hear you breathing.

amykhar
06-01-2006, 12:03 AM
go grab my hideaway mod. You can read the code in there for creating a forum and setting permissions. It's pretty easy to follow if you can read code. It's not pretty, but it's a start.

iafraid
06-01-2006, 12:14 AM
Thank you! I'll certainly contribute anything I build out of it.