Liam W in memoriam 1998-2020 May 16, 2014 #1 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
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
Chris D XenForo developer Staff member May 16, 2014 #2 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.
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.