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
查看
339
首次发布
最后更新

评级

0.00 星 0 星

来自波坤太叔的更多资源

  • Marmaris
    Marmaris
    我想把这个免费主题分享给 XenForo 社区。它的灵感来自马尔马里斯充满活力的夜生活,并且完全兼容 XenForo 2.3。
  • Email Queuing Enhancements
    Email Queuing Enhancements
    调整发送邮件的逻辑,使其更频繁地重试,而不是急于放弃发送邮件。 该插件确保除短名单外的所有邮件都通过邮件队列,而不会阻塞请求。 选项 在“邮件选项”下添加了以下选项。 排队所有邮件 排除排队的邮件模
  • XF Bot Guard
    XF Bot Guard
    XF Bot Guard 是一个原生于 XenForo 的反抓取和机器人挑战层,适用于公共论坛。它位于通用防火墙无法覆盖的地方:在 XenForo 内部,能够访问路由、会话、用户、内容上下文、验证码状
  • Game Server Manager
    Game Server Manager
    游戏服务器状态管理器允许 XenForo 管理员直接在 XenForo 内部管理和显示游戏服务器状态信息
  • SV Standard Library
    SV Standard Library
    一些旨在简化附加开发的辅助实用程序没有任何直接面向用户的更改。上传到资源经理,以帮助依赖性跟踪,并允许更新,而无需更新每个单独的附加 组件

最新更新

  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资源社区