Enable/Disable template modification at install?

Liam W

in memoriam 1998-2020
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...

Liam
 
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.
 
Top Bottom