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

SVG Template by Xon 1.0.2

SVG as Templates, with a template helper which works in style properties.

  1. Xon
    Compatible XF Versions:
    • 1.5
    Additional Requirements:
    php 5.5.0
    XenForo 1.5.3
    MIT License
    Visible Branding:
    Depending on configuration, this add-on requires webserver URL rewrite support!

    Allows SVG (Scalable Vector Graphics) images to be stored as templates. This creates a new svg.php file in the XF root directory.

    To include in a template (or css templates INSIDE a style property) use:
    {xen:helper svg, 'tempate.svg' }
    Under Board information, if "Use Full Friendly URLs" (useFriendlyUrls) is set the URL generated is:
    Enable Template helper to work inside style properties in templates (which are no CSS/SVG)

    This is disabled by default.

    Under performance Options check "General SVG Template Style Properties "

    Nginx URL rewrite config

    location ^~ /data/svg/ {
      access_log off;
      rewrite ^/data/svg/([^/]+)/([^/]+)/([^/]+)/([^\.]+).svg$ /svg.php?svg=$4&style=$1&language=$2&d=$3 last;
      return 403;

    I recommend using Add-on install & upgrade or [TH] Install and Upgrade to install this addon.

    Contributing features or bug fixes
    Please create a Github Pull request via the "Find more info at github.com..." link.


    If you appreciate this addon, please consider a contribution via PayPal. Details will be provide via private conversation.

    Please contact me if you wish for different licencing arrangements.
    batpool52!, Kintaro and maszd like this.

Recent Updates

  1. Performance update
  2. Bugfix update