Welcome to My iptv forum

  • Everyone is invited! My iptv forum is for everyone, new and advanced user alike!
  • Searching is key! Before you post a question, use the forum search feature to determine whether your topic has already been covered.
  • Do not start flame wars! If someone has engaged in behavior that is detrimental to the discussion -- spamming, harassment, etc -- report the post and we'll take a look.
  • Resource icon

    xF2 Add-on SVG Template by Xon 2.6.0 2.6.0

    xF2 Add-on
    < Previous | Next >
    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$args last;
    return 403;
    }
    Apache URL rewrite config

    Add the rule before the final data/ reference;

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

    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]
    Contributing features or bug fixes
    Please create a Github Pull request via the "More Information" link.

    Contributions

    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.

    Latest updates

    1. SVG Template by Xon 2.6.0

      Requires StandardLib v1.19.0+ If installed, requires Redis Cache 2.17.0+ XF2.3 compatibility...
    2. SVG Template by Xon 2.5.2

      Fix "[E_DEPRECATED] strlen(): Passing null to parameter #1 ($string) of type string is...
    3. SVG Template by Xon 2.4.9

      Fix SVG template validation was broken which could result in preventing adding a language or...

    Similar resources

    [CinVin] Emoji Tweaks (use SVG images for emoji instead of PNG)
    0.00 star(s) 0 ratings
    Views
    646
    Downloads
    0
    Updated
    0.00 star(s) 0 ratings
    Views
    419
    Downloads
    1
    Updated
    0.00 star(s) 0 ratings
    Views
    270
    Downloads
    0
    Updated
    0.00 star(s) 0 ratings
    Views
    247
    Downloads
    2
    Updated
    0.00 star(s) 0 ratings
    Views
    357
    Downloads
    2
    Updated
    18,365Threads
    64,168Messages
    62,959Members
    drpitufezLatest member
    Top