Resource icon

Unmaintained Template access for user upgrades and pages 1.0.0

No permission to download
Compatible XF 1.x versions
  1. 1.2
  2. 1.3
  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.
  • 1-original.webp
    1-original.webp
    74.4 KB · Views: 225
  • 2-modified.webp
    2-modified.webp
    68 KB · Views: 224
  • 3-ref.webp
    3-ref.webp
    35.4 KB · Views: 338
Author
cclaerhout
Downloads
21
Views
680
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from cclaerhout

Top Bottom