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

评级

0.00 星 0 星

来自波坤太叔的更多资源

  • Quiz System PRO - Certificate & User Engagement
    Quiz System PRO - Certificate & User Engagement
    🚀 改变你的社区。 测验系统允许你创建无限测验,测试用户的知识,并推动活动。
  • Hot Topics
    Hot Topics
    Hot Topics 通过智能活动评分系统,基于回复、浏览量和最新情况自动检测并突出你论坛上最活跃的帖子。
  • XF2 [8WR] XenRio 2 (Streams) PRO
    XF2 [8WR] XenRio 2 (Streams) PRO
    为XenForo流行的实时流媒体的完全重写.XenRio 会定期抓取各种 API,以便让您的用户随时了解与您的社区相关的当前直播
  • [TaylorJ] Blogs
    [TaylorJ] Blogs
    为您的用户提供一种在他们自己的个人区域中进一步表达自己的方式!
  • Veno File Manager - host and share files
    存储 Veno File Manager - host and share files
    VFM是一个简单灵活的即插即用文件管理器,易于使用和大量选项。将文件发送给您的客户,使用专用文件夹创建新用户,或者只是将其用作您的个人文件云。

最新更新

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