Creating a Thread outside of Xenforo

arn

Well-known 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?

arn
 
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).
 
  • Like
Reactions: LPH
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).

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:
As long as you are on the same server, you can access any of the functions of XenForo.
 
if anyone else follows this thread, I found another option which was to use Tapatalk's API since we will have that installed anyway.
 
Top Bottom