Resource icon

xF2 Add-on SVG Template by Xon 2.5.2

No permission to download
  • Support Redis Cache saving gzip cached streams to cache system without decoding server side
  • Fix getSvgUrl would generate invalid svg links when viewed by a user who has not explicitly set a style
Extend XF2 router to provide /data/svg support for svg templates.
  • Still recommend webserver rewrite rules if possible
  • If using apache you must adjust the default htaccess rewrite rules provided by XenForo;
    • Add the following;
      Code:
      RewriteRule ^data/svg/([^/]+)/([^/]+)/([^/]+)/([^\.]+).svg$ svg.php?svg=$4&s=$1&l=$2&d=$3 [B,NC,L,QSA]
      before
      Code:
      RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
  • Fix that svg file link generation did not handle if the forum is in a sub-folder.
Disable individual CSS template caching integration.
  • SVG's are long lived and if served via recommended rewrite rules should be cached in browsers or via upstream proxies (ie cloudflare)
  • Update suggested nginx to capture 'k' argument
  • Support XF1 version arguments (style/language vs s/l) to svg.php
  • Allow helper ('getSvgUrl') to work in style properties
  • Improve handling of svg template from when friendly urls is enabled/disabled