• 游客:春节快乐,您有一个20余烬兑换码(‌Happy Chinese New Year!, you have a 20-plus ember exchange code):531820260216有效期7天.请尽快兑换.
SVG Template by Xon

SVG Template by Xon 2.6.3

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

评级

0.00 星 0 星

来自波坤太叔的更多资源

  • User Activity
    User Activity
    在内容下方显示用户活动。
  • [DigitalPoint] Profiles
    [DigitalPoint] Profiles
    型材的一般外观清理。还有选项可以选择在用户简介上显示/不显示的内容
  • Mitch Referrals
    Mitch Referrals
    Mitch Referrals 是一个轻量级、面向生产环境的推荐和联盟系统,专为 XenForo 2.3.x 设计,旨在奖励会员带来新用户——无臃肿、无漏洞或核心编辑
  • Job System by Olakunlevpn
    Job System by Olakunlevpn
    Job System Addon是一个功能强大的扩展,旨在增强用户参与度并奖励您在XenForo论坛上的参与
  • [DigitalPoint] Cloudflare
    [DigitalPoint] Cloudflare
    一切都可以通过Cloudflare API从XenForo内部获得(您不需要去Cloudflare获取东西)。这允许您授予管理员执行某些操作的权限(例如,在 Cloudflare 中阻止 IP 地址,

最新更新

  1. 2.6.3

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

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

    修复了样式属性中 XF2.3 样式变体对 getSvgUrl() 的支持
社区
规则 帮助 用户
  • 目前没有人在聊天。
      聊天中还没有人留言。快跟大家说声Hi!
      用户活动
      刚才 · 5318资源社区