updated for XenForo 1.2.0 compatibility

Switched to use XenForo 1.2 built-in template modifications system (keep using TMS for XenForo 1.1).