Code: {{ getSvgUrl('tempate.svg') }}

Code: /data/svg/<style_id>/<langauge_id>/<style_last_modified>/<templateName>.svg

Code: svg.php?svg=<templateName>&s=<style_id>&l=<langauge_id>&d=<style_last_modified>

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

data/

Code: RewriteRule ^data/svg/([^/]+)/([^/]+)/([^/]+)/([^\.]+).svg$ svg.php?svg=$4&s=$1&l=$2&d=$3 [B,NC,L,QSA]

Code: # If you are having problems with the rewrite rules, remove the "#" from the # line that begins "RewriteBase" below. You will also have to change the path # of the rewrite to reflect the path to your XenForo installation. #RewriteBase /xenforo RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^data/svg/([^/]+)/([^/]+)/([^/]+)/([^\.]+).svg$ svg.php?svg=$4&s=$1&l=$2&d=$3 [B,NC,L,QSA] RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L] RewriteRule ^.*$ index.php [NC,L]

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;Under Board information, if "Use Full Friendly URLs" (useFriendlyUrls) is set the URL generated is:OtherwiseAdd the rule before the finalreference;ie, should look similar to;Please create a Github Pull request via the "More Information" 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.