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

Creating a Poll Programmatically

Discussion in 'XenForo Development Discussions' started by Jake Hakoda Shirley, Aug 9, 2013.

  1. Jake Hakoda Shirley

    Jake Hakoda Shirley Active Member

    Hey guys, I am looking into making a system to auto-setup polls for certain threads in a cron job. I am just having some issues understanding how to modify an existing thread and add a poll with my desired attributes.

    If any of you could point me in a direction, it would be much appreciated! :)
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    I believe XenForo_DataWriter_Poll is the class you should be looking into.
     
  3. Jake Hakoda Shirley

    Jake Hakoda Shirley Active Member

    Is there any documentation on using said class? Sorry :) I am not a very experienced PHP user.
     
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

Share This Page