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

Create a thread threw an external php script

Discussion in 'XenForo Development Discussions' started by attemis, Nov 26, 2013.

  1. attemis

    attemis Member

    is it possible to create a new thread in xenForo threw an external php script?
  2. LPH

    LPH Well-Known Member

    Yes. Take a look at the Model directory in XenForo to get an idea.
    attemis likes this.
  3. attemis

    attemis Member

    Okay thanks :)

    I can't find it... :/
    Is it a function which moves a post into a new thread?
    Last edited: Nov 27, 2013
  4. Jeremy

    Jeremy Well-Known Member

    Moves a post? You need to split the thread and then merge the post into a new post. Which action are you actually attempting to replicate?
  5. attemis

    attemis Member

    I just want to create a new thread in a specific forum in xenforo :)
    But im new to xenforo and the zenframework...
  6. Jeremy

    Jeremy Well-Known Member

    Creating a new thread within a specified is rather easy and does not require the use of the XenForo Model's at all, but rather requires the use of the XenForo DataWriters. Do you have the XenForo framework initialized within your script?
  7. Brogan

    Brogan XenForo Moderator Staff Member

    I guess you will need to extend the forum controller, specifically actionCreateThread.
    attemis likes this.
  8. attemis

    attemis Member

    Yes i created an addon which comunicates with my php script
    thanks @Brogan i will try this

Share This Page