• 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

arn

Active member
#1
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
 

Jeremy

Well-known member
#2
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).
 

arn

Active member
#3
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:

arn

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