Welcome to Our Community

Registration on our forums are now open for some days! Feel free to sign up today.

Template Modification System (TMS) 1.3.1

Make styles without template edition! Make addons without template hooks!

  1. Caldexi
    Compatible XF Versions:
    • 1.1
    • 1.2
    • 1.3
    • 1.4
    Visible Branding:
    No
    ZYw22SD.png
    Template Modification System (TMS)
    1.3.1
    About
    If you want to re-arrange elements like message bar, you have to edit HTML templates. Normally, when you do this, the template is marked as modified, and if you upgrade xenforo, those modified template will not be upgraded.

    This resource is a system that allow you to modify template without manual editing. You can search for elements in HTML templates and replace with the thing you want. This way you can save your time when you upgrade xenforo. This also improves performance compare to template hooks and is more flexible than template hooks.

    Features:
    • Modifications of 3 types: search/replace, regular expression, php callback.
    • Default/Custom/Inherited modifications (just like templates).
    • Enable/Disable modifications.
    • Export/import modifications together with addon (just like templates).
    • Export/import modifications together with style (just like templates).
    • Integration with template's editing.
    • Advanced options for performance.
    • TMS-independent export of styles.
    This Modifications Collectiondemonstrate how it works.
    Also there is a guide Creating style without template edition.

    The addon allows to make other addons using template modifications instead of hooks and to make styles without any template edition.
    GitHub
    : https://github.com/guiltar/TMS

    Translations:
    Feel free to modify, refactor and extend the addon!

    Images

    1. Screenshot_1 (1).png
    2. Screenshot_3.png
    3. Screenshot_2.png
    4. Screenshot4.png
    5. Screenshot3.png