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


Discussion in 'XenForo Development Discussions' started by ragtek, Oct 6, 2010.

  1. ragtek

    ragtek Guest

    What's the clue with $config->development ???

    I've added the development variable directory, into the config.php and now i thought that this would create some files but nothing happend.

    Because the whole script isn't documented very well, i'm not sure, if i understood it right.

    Will this create files (permissions, options, templates) which will make working 3rd party coders live much easier because the can (could) use git/svn/.. ???
  2. Mike

    Mike XenForo Developer Staff Member

    It's really for our use. It only writes out data for the "xenforo" add-on.
  3. ragtek

    ragtek Guest


    But this would be a nice feature;)
    CyberAP likes this.
  4. Jeremy

    Jeremy Well-Known Member

    Oooh. Where did you find this?
  5. ragtek

    ragtek Guest

    The addonid is a variable, so it's maybe possible^^
    Have to check this when i find time for this
         * Imports the add-on admin permission XML.
         * @param SimpleXMLElement $xml XML element pointing to the root of the  data
         * @param string $addOnId Add-on to import for
    public function importAdminPermissionsAddOnXml(SimpleXMLElement $xml$addOnId)
  6. MainFrame

    MainFrame New Member

    Try adding $config['debug'] = 'true'; in your config.php file.
    It will give you a development tab in admincp.

  7. ragtek

    ragtek Guest

    thx, but i don't need this;)
    and IMHO $config['debug'] = true; instead of 'true' is cleaner. We don't need a string here
    borbole likes this.
  8. borbole

    borbole Well-Known Member

    Indeed. Placed between quotes will be treated as a string.
  9. Kier

    Kier XenForo Developer Staff Member

    Note that we do not recommend running production boards in debug / developer mode.
    borbole likes this.
  10. borbole

    borbole Well-Known Member

    Of course. That goes without saying. :)
  11. Kier

    Kier XenForo Developer Staff Member

    I should probably qualify my statement a little further - running in debug mode turns on all sorts of monitoring systems, including the SQL query profiler, all of which will slow down your board and gobble much more memory than usual.
    borbole likes this.
  12. kuyenmotdivad

    kuyenmotdivad Active Member

    When you guys enable debug mode what do you get on the generation.

    I get this on the forum index page.

    Timing: 0.0843 seconds Memory: 7.565 MB DB Queries: 11
  13. Kier

    Kier XenForo Developer Staff Member

    My local development board:
    Timing: 0.0331 seconds Memory: 1.722 MB DB Queries: 11
    XenForo.com itself:
    Timing: 0.0574 seconds Memory: 5.054 MB DB Queries: 11
  14. kuyenmotdivad

    kuyenmotdivad Active Member

    How come the memory is so high at 7.565 MB on a test board with only me posting on it?

    Timing: 0.0843 seconds Memory: 7.565 MB DB Queries: 11
  15. Blandt

    Blandt Well-Known Member

    perhaps your PHP or server settings
  16. kuyenmotdivad

    kuyenmotdivad Active Member

    Where would I check this to make it lower?

    If I goto a topic it goes even higher.

    Memory: 9.077 MB
  17. Deebs

    Deebs Well-Known Member

    Loading a completely random thread whilst my test board is still importing (1.5 million posts imported so far) :

    Timing: 0.2813 seconds Memory: 5.326 MB DB Queries: 11
  18. Floris

    Floris Guest

  19. ragtek

    ragtek Guest

    This could be (/is for me because i've rewritten the stuff so i can use it for my add-on phrases & templates too) IMHO one of the MOST USEFUL features in xenforo for developers!
    It's great for searching/checking the addon phrases + templates (don't need to leave the IDE and go into the acp and it's great if you work with more developers because i can use GIT for everything and not only the files......

    I hope you'll improve it and make it usable for add-on coders in the core...

    Attached Files:

Share This Page