• We've added extra Spam Protection. if you get problem with account registration / registration rejected. please contact us
Voltear

Free SVG Template by Xon 2.2.1

No permission to download
Compatible XF 2.x versions
  1. 2.1
  2. 2.2
Additional Requirements
php .7.0+
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 generate a link to an SVG template;

Code:
{{ getSvgUrl('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>&s=<style_id>&l=<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&s=$1&l=$2&d=$3 last;
return 403;
}

Contributing features or bug fixes
Please create a Github Pull request via the "More Information" link.
Author
Voltear
Downloads
13
Views
563
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from Voltear

Latest updates

  1. 2.2.1 - Bugfix update

    Fix "Support SVG url's in XF routing layer" option
  2. 2.2.0 - Maintainance update

    Require php 7+ Require XenForo 2.1+ Conform XF2.2 support Minor php 7.0/7.1 compatibility fix
  3. 2.1.6 - Maintenance update

    Compatibility fix for Lazy Image loader add-on when Threadmarks Pro is installed
  4. 2.1.5 - Bugfix update

    Fix that svg templates may not be correctly rendered when friendly URLs are disabled.
  5. 2.1.4 - Bugfix update

    Fix caching non-existent svg templates not returning a 404 Do not include a message body, and...
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock