Resource icon

Svg Template by Xon 1.6.1

No permission to download
  • Require php 7+
  • Require XenForo 2.1+
  • Conform XF2.2 support
  • Minor php 7.0/7.1 compatibility fix
  • Fix that svg templates may not be correctly rendered when friendly URLs are disabled
  • Like
Reactions: TickTackk
  • Fix caching non-existent svg templates not returning a 404
  • Do not include a message body, and just return 404 if the template doesn't exist
  • Like
Reactions: Vekseid
  • 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
  • Fix using getSvgUrl in style properties
  • 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)
Back
Top Bottom