Packaging a XenForo add-on?

  • ATTENTION GUEST! If you'd like to join the website and get access to everything a webmaster needs then click HERE! Buy & sell content on the marketplace, get your website promoted for being active, high end articles, and more!
  • If you're having issues registering send us an email at: contact[at]seoraffle.com
Yesterday's Top Poster

Oblivion Knight

Simi-Active
Feb 26, 2021
30
9
umbrella-online.co.uk
WebCoin
ⓦ160
I'm a bit old school and continue to do everything by hand.. but this is highly inefficient for XenForo, it seems.

I keep seeing various CLI commands mentioned, but I've never used and/or tried them.. A newbie guide would be really helpful, I have a couple of bits of custom code running at Umbrella Online that I wouldn't mind sharing. I approached Ozzy, but I guess he's kinda busy with his own add-ons.
 

Xyphien

Administrator
Staff member
Administrator
Feb 3, 2021
264
64
WebCoin
ⓦ1,516
I'm honestly not sure myself, I'll look around and see if I can find anything to possibly help out :) I'll let you know if I find anything that will help.
 
  • Like
Reactions: Oblivion Knight

sincerem

Active
Jul 5, 2021
90
2
WebCoin
ⓦ223
I never developed a forum around Xenforo before. With the information I've read around Xenforo it looks like one, I'm not sure thou if its an add-on of Xenforo.
 

apathy

Simi-Active
Aug 2, 2021
40
12
fortreeforums.xyz
WebCoin
ⓦ388
@Oblivion Knight are you still struggling with this? The actual packaging of an addon is pretty simple.
Assuming you have a localhost development environment set up, then these would be the steps:
  1. Open a terminal
  2. Change the directory to your Xenforo folder: cd /path/to/your/root/xenforo/install
  3. Run Xenforo's cmd.php to create the skeleton of an addon: php ./cmd.php xf-addon:create
  4. You will now have a folder structure that looks like src/addons/Oblvion/MyAddon
  5. Put all your PHP stuff in the above folder
  6. When creating templates, phrases, etc from within the Admin Panel, make sure to select Oblivion/MyAddon from the Addon selection dropdown
  7. When all is said and done, rally up the Terminal again
  8. Change the directory to your Xenforo folder: cd /path/to/your/root/xenforo/install
  9. Run Xenforo's cmd.php to package the addon: php ./cmd.php xf-addon:build-release Oblivion/MyAddon
I have all my stuff set up properly compared to the time you PM'd me about this, so don't hesitate to drop me another if you're still stuck!
 
  • Love
Reactions: Xyphien
Similar threads

Similar threads