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

Enable/Disable template modification at install?

Discussion in 'XenForo Development Discussions' started by Liam W, May 16, 2014.

  1. Liam W

    Liam W Well-Known Member

    I know I have access to the SimpleXMLElement Object at install time, but how would I go about enabling/disabling a specific template modification based on the XenForo version?

    It's confusing me...

  2. Chris D

    Chris D XenForo Developer Staff Member

    What might be easier is to check for the XF version in your template. The version ID is in Debug Options.

    If that's not possible you can call the DataWriter and disable it that way.

    The install callback runs after the XML has been imported so that data should already be in the database ready to manipulate as you see fit.

Share This Page