MyBB Community Forums

Full Version: Externally creating forums, threads, posts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,

We are trying to implement a system that requires us to create a new forum, a new thread and a new post automatically after a quick moderation (a fiction submission system).

While we've managed to do the SQL part and post validation ourselves, we need a method to rebuild/update the cache so the new forum, thread and post appear, and we'd like to ask for your help for his, as we couldn't find the beginning of the reference chain.

Our site is www.royalroadl.com/forum running MyBB 1.8.0
Moved to 1.8.

You'll want to do $cache->update("forums"); after it creates a forum.
(2014-11-04, 10:19 PM)dragonexpert Wrote: [ -> ]Moved to 1.8.

You'll want to do $cache->update("forums"); after it creates a forum.

Indeed, but cache seems to use so many globals and outside functions it seems nearly impossible to trace back everything it needs Confused
You can try this: http://phpdave.com/MyBBIntegrator/

Not sure if it works with 1.8 or not. It should.
This sounds fantastic, do you intend to share? I'd love to do something like this.
You can just download it from the github link on that site.

As an alternative you can require the /forum/global.php which then allows you to use the MyBB functions.