Discussion in 'XenForo Development Discussions' started by Renari, Nov 15, 2012.
Outside of manually adding the entries to the database I mean.
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.
Ah, thanks didn't notice that.
By running a query adding them to the table correct?
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.
Alright, thanks I'll try that then.
Look at XenForo_ControllerAdmin_UserField function actionAdd()
Separate names with a comma.