Resource icon

Unmaintained SVG Template by Xon 1.0.2

No permission to download
Compatible XF 1.x versions
  1. 1.5
Additional requirements
php 5.5.0
XenForo 1.5.3
License
MIT License
Visible branding
No
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:
Code:
{xen:helper svg, 'tempate.svg' }

Under Board information, if "Use Full Friendly URLs" (useFriendlyUrls) is set the URL generated is:
Code:
/data/svg/<style_id>/<langauge_id>/<style_last_modified>/<templateName>.svg
Otherwise
Code:
svg.php?svg=<templateName>&style=<style_id>&language=<langauge_id>&d=<style_last_modified>

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

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

Installation

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.

Contributions

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.
Author
Xon
Downloads
23
Views
1,002
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Xon

Latest updates

  1. Performance update

    By default, do not support the {xen:helper svg, ... } in style properties for non svg/css public...
  2. Bugfix update

    Fix compatibility issue with transparency backgrounds. Allow {xen:helper svg ...} to work...
Back
Top Bottom