在线统计

在线会员
0
在线游客
2
会员总计
2
  • 游客:因中国国庆节普天同庆,您有一个20余烬兑换码(As China celebrates its National Day, you have a 20-plus ember exchange code):531820251001有效期7天.请尽快兑换.
SVG Template by Xon

SVG Template by Xon 2.6.2

没有下载权限
根据配置,此附加组件需要网络服务器 URL 重写支持!允许将 SVG(可扩展矢量图形)图像存储为模板。这将在 XF 根目录中创建一个新的 svg .php 文件。
XF兼容
  1. 2.1.x
  2. 2.2.x
  3. 2.3.x
根据配置,此附加组件需要网络服务器 URL 重写支持!允许将 SVG(可扩展矢量图形)图像存储为模板。这将在 XF 根目录中创建一个新的 svg .php 文件。生成指向 SVG 模板的链接;

To generate a link to an SVG template;
XML:
{{ getSvgUrl('tempate.svg') }}
Under Board information, if "Use Full Friendly URLs" (useFriendlyUrls) is set the URL generated is:
XML:
{{ getSvgUrl('tempate.svg') }}
Otherwise
XML:
svg.php?svg=<templateName>&s=<style_id>&l=<langauge_id>&d=<style_last_modified>
Nginx URL rewrite config
NGINX:
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 reference;data/
NGINX:
RewriteRule ^data/svg/([^/]+)/([^/]+)/([^/]+)/([^\.]+).svg$ svg.php?svg=$4&s=$1&l=$2&d=$3 [B,NC,L,QSA]
ie, should look similar to;
NGINX:
#    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]
作者
波坤太叔
下载
2
查看
154
首次发布
最后更新

评级

0.00 星 0 星

来自波坤太叔的更多资源

最新更新

  1. 2.6.2

    当 svg => png 渲染未设置时,使用 getSvgUrl 请求 svg 的 png 时,提供更好的错误消息
  2. 2.6.1

    修复了样式属性中 XF2.3 样式变体对 getSvgUrl() 的支持
  3. 2.6.0

    需要 StandardLib v1.19.0+ 如果已安装,则需要 Redis 缓存 2.17.0+ XF2.3 兼容性更新 PHP 8.4 兼容性修复
社区
规则 帮助 用户
  • 目前没有人在聊天。
      波坤太叔 @ 波坤太叔: HELLO