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

Beta XDS - Xen Development Speed 1.0.0

Tool to quickly create an addon XenForo

  1. Thibeault

    Thibeault Member

    Thibeault submitted a new resource:

    XDS - Xen Development Speed - Tool to quickly create an addon XenForo

    Read more about this resource...
     
  2. SneakyDave

    SneakyDave Well-Known Member

    I don't know if I like that fact that the xfroot/library folder has to be world writable, but good luck.
     
  3. Thibeault

    Thibeault Member

    It's not dangerous. ;)
     
  4. Cyb3r

    Cyb3r Well-Known Member

    Awesome Idea!

    I don't think most developers create add-ons on live production forum anyway, I use it on localhost only so it won't matter. ;)
     
    0ptima and Thibeault like this.
  5. MtoR

    MtoR Well-Known Member

    If it's open source, you should create a github for others to participate :)
     
  6. Cyb3r

    Cyb3r Well-Known Member

    Have you clicked the download link? it's on github already. :eek::p
     
  7. MtoR

    MtoR Well-Known Member

    Ok my bad :D
     
  8. MtoR

    MtoR Well-Known Member

    Looked at the add-on and the code.

    Though the intention is clearly a good thing it won't fit to every developper architecturing.
    Eg. I construct my basic structure differently, having all stuff that corresponds to extending the core stuff inside an Extends directory in which I have ControllerPublic and other directories and at the root ControllerPublic and stuff like that related to my add-ons.

    I think for a good start, you should list all the features you want to have done inside your add-on and then think at all use cases.

    Clément
     
    Alfa1 and SneakyDave like this.
  9. Cyb3r

    Cyb3r Well-Known Member

    Then fork it and make it better, little something from everyone would make this perfect, at least for small developers such as me. ;)
     
  10. MtoR

    MtoR Well-Known Member

    I would if I had time. Was just giving some 2 cents :p
     
    SneakyDave likes this.
  11. Thibeault

    Thibeault Member

    Hello Clément,

    The folder structure is conventionally the same as those of XenForo and I think the best is to take that convention. I can still add an option to define a base folder will be created addon ? :barefoot:
     
  12. MtoR

    MtoR Well-Known Member

    I understand what your saying but most developpers do that separation between core extension stuff and add-on specific stuff.
    See Waidingo or Daniel Hood add-ons, they are like that.

    Not sure you totally got my point, I am having the following structure :
    library/AddOnCompanyIdentifier/AddOnIdentifier/
    ControllerPublic/
    DataWriter/
    Extends/ <= Here goes all the extended stuff
    ControllerPublic/
    DataWriter/
    Model/
    ...
    Model/
    ...​
     
  13. Thibeault

    Thibeault Member

    Oh, I had never seen that, so I can add a field " Extends " to create the folders you've told me (y)
     
  14. MtoR

    MtoR Well-Known Member

    Well yeah, but that of course should be optional.

    Btw, some comments on the existing architecture :
    • I don't honestly think you should put the capability to rename the folders, sticking to the default name is fine, just add the capability to have an extends folder with same structure.
    • You should then put a default structure with checkbox in front too choose which directories are to be created.
    • What is XDS default parameters ?
    • I tend to think that Install directory is not need or at least should be optional. I personnally put an Install.php file in the root folder of my add-on directory.
    • You should provide the capability to set the options group name which doesn't seem configurable from your screenshot. Same goes for the option description.

    Now to the suggestions of what would be awesome to get to a really time saving add-on when developping:
    • js folder creation: optional, structure js/addoncompanyidentifier/addonidentifier/
    • styles folder creation: optional, structure default/addoncompanyidentifier/addonidentifier
    • creation of code listeners: from the interface, create the file in either the root directories or the extends directories along with appending to the proxy.php file and creating the listener.
    • have a single interface that gives a whole view of all the elements related to the add-on: template modifications, admin template modifications, templates, phrases, ... if you see what I mean ?
    • capability to fastly create routes/template modifications and so and so on from that interface as well as phrases.
    • capability to edit the file structure afterwards not only being able to create them
    • capability to create a zip archive directly from that archive
    I am sure you share my advice on some of these suggestions :)
     
  15. HWS

    HWS Well-Known Member

    The Extends (or as I call it "XenForo") is useful, if you have to extend not only one, but several different XF or third party add-ons. What would you do with your structure, if you have to extend the "Account.php" from both, XenForo_ControllerPublic and XenGallery_ConrollerPublic? ;)
     
    Xon likes this.
  16. MtoR

    MtoR Well-Known Member

    Ah you are damn right, extends is somehow not enough in that case if you extend multiple existing addons !
    I guess it would be easier if he allows creation of a default add-on structure and then creation of a structure for one or X extended add-ons.
     
  17. Thibeault

    Thibeault Member

    Can I try to list all the addons and then let you the possibility to extend choose which folders ?
     
  18. MtoR

    MtoR Well-Known Member

    Guess that would be nice, but only support default xF add-on I think, and for each being able to choose which folders are needed.
    Bear in mind that not only the few folders you pointed could be interesting, there is also others such as ControllerHelper or handlers directories... basically all xF directories ;)
     
  19. Thibeault

    Thibeault Member

    Yes, the next version will be more complete :p
     
    MtoR likes this.
  20. MtoR

    MtoR Well-Known Member

    Cool :)

    The intent is anyhow a good thing as there are a lot of tasks really time consuming/redundant/useless when developping for xF... (though it's better than developing for vB :D)
     
    Thibeault likes this.

Share This Page