1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Template access for user upgrades and pages 1.0.0

Load a template as content for pages, help pages & user upgrades

  1. cclaerhout
    Compatible XF Versions:
    • 1.2
    • 1.3
    • 1.4
    Creative Commons BY 3.0 license
    Visible Branding:
    Template access for user upgrades and pages

    Addon presentation
    This addon allows you to load a template you would have selected for the user upgrades description and for your pages/help pages content. See the attached screenshots: they only show an example for the user upgrades, but the system is the same for pages.

    Once your content is inside a template, you can export it (through the XenForo addon system), so reuse it easily. You can also use all XenForo templates helper which is convenient. And of course, you can translate your pages or user upgrades thanks to the phrase system.

    Available variables in your customized templates:
    • For pages:
      • $page, array
      • $bbCodeParser, object to use with the XenForo template helper 'bbCode'
    • For user upgrades:
      • $upgrade, array
      • $bbCodeParser, object to use with the XenForo template helper 'bbCode'
    To dump a variable in a template, use the following helper:
    {xen:helper dump, $yourVariable}
    It will show the content of an array as well.

    I've done this addon for my own needs. I share it because it might be useful for some of you. I will not support it. If you want to update it, add new functions, feel free to do it using the Creative Commons BY 3.0 license.


    1. 1-original.png
    2. 2-modified.png
    3. 3-ref.png
    Mirovinger and bousaid like this.