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

Display XF version on external page

Discussion in 'General PHP and MySQL Discussions' started by LPH, Nov 25, 2013.

  1. LPH

    LPH Well-Known Member

    I'm trying to figure out the best way to display the currently installed XenForo installed on a website. The php page is for diagnostics / troubleshooting a WordPress plugin.

    I tried the following but nothing is returned for XF.

    Code:
      echo "The installed version of XenForo is" ;
       global $XF;
       echo $version ;
    
       echo "<br />The installed version of WordPress: ";
       echo bloginfo('version');
    
    Thank you for any guidance.
     
  2. xf_phantom

    xf_phantom Well-Known Member

    Where does $version come from?:D

    Try
    PHP:
    XenForo_Application::$version
     
  3. LPH

    LPH Well-Known Member

    Perfect!

    plugin_information.PNG
     

Share This Page