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

Friendly XenForo Version ID

Discussion in 'XenForo Development Discussions' started by nrep, Oct 18, 2013.

  1. nrep

    nrep Well-Known Member

    I'm creating a monitoring script for my sites, and as part of that I'm displaying a value for the XF version in a PHP script.

    I've found that I can echo XenForo_Application::$versionId, but I get an unfriendly version string: "1020270". Is there a way I can find out the friendly Version ID? i.e. 1.2.2
  2. Chris D

    Chris D XenForo Developer Staff Member

    A bit primitive and not totally correct and would only work for stable versions:

    nrep likes this.
  3. xf_phantom

    xf_phantom Well-Known Member

    echo XenForo_Application::$version ;)
  4. Chris D

    Chris D XenForo Developer Staff Member

    Haha. Talk about me over complicating something :LOL:

    I assumed that wasn't there without even checking :oops:
    Daniel Hood likes this.
  5. nrep

    nrep Well-Known Member

    Haha, so close :D

    Big thanks to you both - it's working great now :)
    Chris D likes this.

Share This Page