轻论坛Xiuno技巧

前言

  1. 设置伪静态
  2. MarkDown语法、MarkDown语法超链接以新窗口打开
  3. MarkDown和html编辑器下加入路过图床上传图片

一、设置伪静态

  • xiuno后台插件中心安装插件:拓展设置
    • 进入 扩展设置插件的设置,开启:伪静态
  • BT宝塔面板,进入网站设置
    • nginx伪静态添加代码
    location ~* \.(htm)$ {
        rewrite "^(.*)/(.+?).htm(.*?)$" $1/index.php?$2.htm$3 last;
    }
  • 重启/重载下nginx、php

二、MarkDown语法

    <a href="url" target="_blank">Text</a>

三、MarkDown和html编辑器下加入路过图床上传图片

  • 编辑xiuno程序文件夹/view/htm/post.htm;
  • MarkDown语法,底部<!--{hook post_js.htm}-->前加入以下代码
    <script async src="https://imgchr.com/sdk/pup.js" data-url="https://imgchr.com/upload" data-auto-insert="markdown-embed-medium"></script>
  • html语法
    • xiuno插件中心安装:UMEditor百度编辑器;
    • 编辑xiuno程序文件夹/view/htm/post.htm;
    • 底部<!--{hook post_js.htm}-->前加入以下代码
    <script async src="https://imgchr.com/sdk/pup.js" data-url="https://imgchr.com/upload" data-auto-insert="html-embed-medium"></script>
  • 但是在上传图片时请先在编辑器切换为html;
转载请超链接注明:事实派 » 轻论坛Xiuno技巧