• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
[TH] SVG Templates

Unmaintained [TH] SVG Templates 1.0.0a

No permission to download
Compatible XF 1.x versions
1.0, 1.1, 1.2, 1.3, 1.4, 1.5
License
https://opensource.org/licenses/MIT
What does this add-on do?
This add-on adds a file svg.php to the base directory of your XenForo installation, which you can use to load Scalable Vector Graphics (SVG) images that are stored as templates.

As it is a vector image format, using SVG images on your site means that your users can zoom in on your images as much as they like without them losing any definition or becoming pixelated. This is becoming more common with users of mobile devices and high resolution screens/tablets, and all major modern web browsers now have at least some degree of support for SVG.

SVG images and their behaviors are defined in XML. This means that they can be searched, indexed and scripted, just like your HTML and CSS templates.

You can link to SVG files from your templates using special variables to allow for the magic to happen, as follows:
HTML:
<img src="svg.php?svg=XXXXXXXX&amp;style={xen:urlencode $_styleId}&language={$visitorLanguage.language_id}&dir={$visitorLanguage.text_direction}&d={$visitorStyle.last_modified_date}" />
where XXXXXXXX is the name of your template without the .svg suffix (the actual SVG template name must end with .svg). All of the above variables (except the svg=XXXXXXXX bit) are optional.

Using this add-on, your SVG images can be cached (if you have a file cache installed on your server) and can be compressed with GZIP (if the user's browser supports it).


Author
ThemeHouse
Downloads
50
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from ThemeHouse

  • [TH] Reactions
    [TH] Reactions
    Allow your users to show how they feel about a post with just a click. Now with Post Ratings import!
  • [TH] Mailing List
    [TH] Mailing List
    Allow users to easily and seamlessly join your mailing lists as well as create custom newsletters.
  • [TH] Question and Answer Forums
    [TH] Question and Answer Forums
    Allow users to ask questions, provide answers, and vote which answer is best.
  • [TH] Image Optimizer
    [TH] Image Optimizer
    Optimize your images and accelerate your forum with Image Optimizer provided by Kraken.io
  • [TH] Bookmarks
    [TH] Bookmarks
    Allow your users to mark threads, posts, and other content that they'd like to view later.

Latest updates

  1. Version 1.0.0a released

    Bug fixes: Fixes "XML Parsing Error: not well-formed" error when cache is used.