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

PHP Info

Discussion in 'XenForo Suggestions' started by dwdmadmac, Sep 12, 2013.

  1. dwdmadmac

    dwdmadmac Active Member

    I find myself always going back to http://site.site/admin.php?tools/phpinfo for things here and there. I noticed that it was not in the ACP -> Tools navi anywhere I would always have to type it in manually. Yet a same edit can it be possible that we get it as a core feature to be located say "ACP -> Tool -> PHP Info" ?
     
  2. Adam Howard

    Adam Howard Well-Known Member

    I'm all for this. I don't think it would hurt to add it and I'm fairly sure a simple template edit could be made to include it.
     
    dwdmadmac likes this.
  3. Jeremy

    Jeremy XenForo Moderator Staff Member

    Its not a template edit. XenForo admin navigation items are stored within the database.
     
    dwdmadmac and SneakyDave like this.
  4. Adam Howard

    Adam Howard Well-Known Member

    Yes, I know this.

    But what I'm saying is it wouldn't be hard to add a button / link in the admin style and all it would have to do is point to:

    admin.php?tools/phpinfo

    This is what I meant by simply adding it.
     
    dwdmadmac likes this.
  5. NixFifty

    NixFifty Well-Known Member

    Until then, you can do this:

    1. Enable debug mode, enter AdminCP -> Development -> Admin Navigation -> Create Admin Navigation
    2. Enter the following values:

      Code:
      Admin Navigation ID: phpInfo
      Title: PHP Info
      Link: tools/phpinfo
      Parent Navigation: Tools
      Display Order: 3000
      
      Uncheck Hide this navigation when there are no viewable children
    3. Save and disable debug mode.
     
    eva2000, zylstra, adwade and 8 others like this.
  6. adwade

    adwade Active Member

    I remembered in the vBulletin AdminCP, there was a LINK for this function...
    Screen Shot 2016-08-26 at 3.05.41 PM.jpg

    As such, I wondered how to accomplish something similar for XF and turned up this helpful page entitled: How can I view my php settings using a phpinfo page? Using that tutorial, I managed to figure it out.

    Now to my surprise, after tripping across this discussion I discover it's apparently a (hidden) feature within the XF database. o_O
     
  7. adwade

    adwade Active Member

    Thanxx to @NixFifty's instructions, I was able to add a LINK for it now...

    Screen Shot 2016-08-26 at 3.40.25 PM.jpg

    I had no idea the capability to add such links even existed in XF via the Admin Navigation function. :cool:
     
    NixFifty and Steve F like this.
  8. zylstra

    zylstra Member

    by putting
    PHP:
    $config['debug'] = true;
    in /library/config.php
     
    dwdmadmac likes this.

Share This Page