Resource icon

xF1 Add-on SVG Template by Xon 1.0.2

No permission to download
Compatible XF Versions
  1. 1.5
Additional Requirements
php 5.5.0
XenForo 1.5.3
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>

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;
}
Author
AnimeHaxor
Size
9.5 KB
Extension
zip
Downloads
4
Views
1,018
First release
Last update

More resources from AnimeHaxor

Latest updates

  1. Performance update

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

Similar resources

Support for SVG attachments to be displayable as normal images.
0.00 star(s) 0 ratings
Downloads
4
Updated
SVG Extended Smilie pack AnimeHaxor
This smilie pack is an add-on for the SVG Basic Smilie pack
0.00 star(s) 0 ratings
Downloads
26
Updated
[TH] SVG Templates
Store your vector images as templates, allowing for language phrasing and style-specific changes.
0.00 star(s) 0 ratings
Downloads
1
Updated
Reads cookies into template params, handles JSON cookies, template param {$pageName}
0.00 star(s) 0 ratings
Downloads
2
Updated
Pixel Guide Template AnimeHaxor
0.00 star(s) 0 ratings
Downloads
1
Updated