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

Is there a way to add a cron entry and user profile fields via a callback?

Discussion in 'XenForo Development Discussions' started by Renari, Nov 15, 2012.

  1. Renari

    Renari Member

    Outside of manually adding the entries to the database I mean.
  2. James

    James Well-Known Member

    Cron entries can be assigned to an add-on, so that they are exported with the XML.

    Custom fields must be added manually or added in an install function to be executed on installation of your add-on.
  3. Renari

    Renari Member

    Ah, thanks didn't notice that.

    By running a query adding them to the table correct?
  4. James

    James Well-Known Member

    Not necessarily running a raw query, you should be able to hook into the UserField Model and create them that way.

    Nevertheless, it will be directly adding them to the DB as an end result.
  5. Renari

    Renari Member

    Alright, thanks I'll try that then.
  6. James

    James Well-Known Member

    Look at XenForo_ControllerAdmin_UserField function actionAdd()

Share This Page