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

Xenforo - create new thread with external data

Discussion in 'XenForo Development Discussions' started by blowzy, Jan 6, 2014.

  1. blowzy

    blowzy Member

    Hello, is there something like Vbulletin Datamanager to simple create new threads / posts in my php code? Something like this:

    // [some connections from my code to xenforo] / how?
    // "create/process" calback and $newthreadid returned.
    echo "new thread created with threadid $newthreadid";
    Please, suggest something how to realise this. Maybe one way is only to create addon? Any commens are welcome. thanks
    coppermine likes this.
  2. blowzy

    blowzy Member

    nice I found php code for xenforo datawriter, but what I need to include to my external script to use it???

    //post new thread on forum      
    $writer XenForo_DataWriter::create('XenForo_DataWriter_Discussion_Thread');
    $postWriter $writer->getFirstMessageDw();
    $thread $writer->getMergedData();

Share This Page