• 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?

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...


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.