1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Creating a Thread outside of Xenforo

Discussion in 'XenForo Development Discussions' started by arn, Oct 7, 2014.

  1. arn

    arn Active Member

    What's the best way to programmatically create a thread in a Xenforo forum from outside Xenforo itself. Like from Wordpress, as an example.

    - Creating the thread/post data directly in the MySQL database would be the most direct way, but seems like it could break over time.

    - It appears there's no official API, so the alternative would be to install one of the 3rd party APIs.

    Any other options I'm missing?

  2. Jeremy

    Jeremy Well-Known Member

    If you are within a PHP application, access the functions directly and use the datawriters. XenForo_DataWriter_Thread (I believe that's the correct name).
    LPH likes this.
  3. arn

    arn Active Member

    But we wouldn't be in Xenforo itself, or even on the same server. We'd be in Wordpress.

    (Unless there's some minimal way to include some core functions)
    Last edited: Oct 7, 2014
  4. arn

    arn Active Member

  5. Jeremy

    Jeremy Well-Known Member

    As long as you are on the same server, you can access any of the functions of XenForo.
  6. arn

    arn Active Member

    if anyone else follows this thread, I found another option which was to use Tapatalk's API since we will have that installed anyway.

Share This Page