Brettflan
Active member
I'm currently going through the documentation on how to create an addon in XF2.
https://xenforo.com/xf2-docs/dev/lets-build-an-add-on/
The first thing I noticed is that things have changed a bit since this was written. The CLI prompts when creating a new addon are slightly changed. The default addon.json and Setup.php files created are also a bit different. Nothing major, but could do with updating.
After the initial changes to Setup.php, there is this note:
I found that here, using the commands:
php cmd.php xf-addon:install-step Demo/Portal 1
php cmd.php xf-addon:install-step Demo/Portal 2
php cmd.php xf-addon:install-step Demo/Portal 3
I'll try to post back again in this thread if I come across anything else beyond just minor "not quite up to date" stuff.
https://xenforo.com/xf2-docs/dev/lets-build-an-add-on/
The first thing I noticed is that things have changed a bit since this was written. The CLI prompts when creating a new addon are slightly changed. The default addon.json and Setup.php files created are also a bit different. Nothing major, but could do with updating.
After the initial changes to Setup.php, there is this note:
This doesn't provide any info on how you're supposed to go about executing the queries yourself, so that would be helpful to include. I considered just using PHPMyAdmin, but decided to read back through earlier documentation to see if I could find the "proper" way.Note
Don't forget to execute the queries yourself!
I found that here, using the commands:
php cmd.php xf-addon:install-step Demo/Portal 1
php cmd.php xf-addon:install-step Demo/Portal 2
php cmd.php xf-addon:install-step Demo/Portal 3
I'll try to post back again in this thread if I come across anything else beyond just minor "not quite up to date" stuff.
Last edited: