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

Unmaintained Template access for user upgrades and pages 1.0.0

No permission to download
Load a template as content for pages, help pages & user upgrades
Compatible XF 1.x versions
1.2, 1.3, 1.4
License
Creative Commons BY 3.0 license
Visible branding
No
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.

Purpose:
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:
Code:
{xen:helper dump, $yourVariable}
It will show the content of an array as well.

Disclaimer
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.
Author
cclaerhout
Downloads
18
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from cclaerhout