SVG Template by Xon

SVG Template by Xon 2.7.0

没有下载权限
根据配置,此附加组件需要网络服务器 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
查看
323
首次发布
最后更新

评级

0.00 星 0 星

来自波坤太叔的更多资源

  • Mentor LMS - Learning Management System
    内容 Mentor LMS - Learning Management System
    Mentor LMS——轻松打造您自己的电子学习业务
  • BeLink - Bio Link & URL Shortener Platform
    BeLink - Bio Link & URL Shortener Platform
    BeLink 是生物创建器中质量最高、最先进的 url 缩短器和链接
  • Diamond Pro Sngine Theme
    内容 Diamond Pro Sngine Theme
    Diamond Pro 是一款现代化、高性能且视觉效果出色的高端主题模板,专为 Sngine PHP 脚本设计而成。
  • SV Standard Library
    SV Standard Library
    一些旨在简化附加开发的辅助实用程序没有任何直接面向用户的更改。上传到资源经理,以帮助依赖性跟踪,并允许更新,而无需更新每个单独的附加 组件
  • Report Improvements by Xon
    Report Improvements by Xon
    此加载项引入了对审核权限的潜在重大更改。请仔细查看用户组权限!XF报告系统的改进集合。完全措辞。安装时,所有现有警告都将复制到新的警告更改跟踪日志中,并与报告相关联。此过程作为后台任务发生,并且不会中

最新更新

  1. 2.7.0

    要求 StandardLib v1.23.0+ PHP 8.4+ 兼容性修复 防止 XF2.3 将管理员模板名称注入 SVG 模板中 修复模板中分开的 &lt;style&gt; 块 .svg...
  2. 2.6.3

    修复不支持的 svg 模板名(即 0.svg) fix style 变体支持 getSvgUrl/getSvgUrlAs 在使用 property_variation()模板方法时可能失败
  3. 2.6.2

    当 svg => png 渲染未设置时,使用 getSvgUrl 请求 svg 的 png 时,提供更好的错误消息
社区
规则 帮助 用户
  • 目前没有人在聊天。
聊天中还没有人留言。快跟大家说声Hi!
用户活动
刚才 · 5318资源社区