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

XF 1.1 Adding new post manualy

Discussion in 'XenForo Questions and Support' started by AT8500, Feb 12, 2013.

  1. AT8500

    AT8500 Member

    Hello,
    I know that I am maybe boring asking all those questions but I just need to setup again everything as it was before transfering to xenForo.

    I need way to add post automatic when new text is published on portal.
    While I was with phpBB I wrote custom PHP code which inserted directly to databse new topic and post. Now I could do it same way with xenForo but I am afraid to do it just like that.

    To what should I pay attention if I decide to do it that way so in the end I don't mess some unique numbers or so. Is it possible somehow to pass title and text to xenForo functions which will then add topic and post to databse?

    Post that will be added is simple text that notify forum members that new text is published on portal.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It is best to use the datawriter. But for basic threads and posts it isn't difficult to do manual inserts. The data structure is very simple assuming no attachments. Just insert into xf_thread and xf_post. Keep an eye on your ids.
     
    AT8500 likes this.

Share This Page