Giter Club home page Giter Club logo

typecho-plugin-notice's Introduction

插件简介

Notice 是 Typecho 评论通知插件,支持 SMTP、Server酱、Qmsg酱 两种接口,均采用异步方式发送

在评论审核通过、用户评论文章、用户评论被回复时发送邮件通知

安装方法

  1. 前往Releases下载最新版本插件
  2. 解压后重命名文件夹为 Notice ,再上传至网站的 /usr/plugins/ 目录下
  3. 启用该插件,正确填写相关信息

开发进展

  • 邮件推送、自定义邮件模版
  • Server酱推送 Server酱Turbo推送
  • QQ 推送
  • ~~Server酱、~~Server酱Turbo、Qmsg酱推送模版
  • 邮件推送测试
  • Server酱推送测试Server酱Turbo推送测试
  • Qmsg 酱推送测试
  • 在线编辑模版文件
  • 企业微信推送
  • 钉钉推送
  • 自定义推送

发信逻辑

自定义邮件模板说明

插件共有三个模板,保存在 template 目录下,分别为:

  1. approved.html:邮件审核通过通知模板
  2. owner.html:博主评论通知模板
  3. guest.html:游客评论通知模板

三个模板使用变量作为内容替换,您只需在自己的模板中增加相应的模板变量即可,模板变量列表如下:

  1. {siteTitle}:站点标题
  2. {title}:文章标题
  3. {author}:评论者名称
  4. {author_p}:被评论者(如果有的话)名称
  5. {ip}:评论者 ip 地址
  6. {mail}:评论者邮箱
  7. {permalink}: 评论的永久链接
  8. {manage}: 评论的后台管理页面链接
  9. {text}: 评论内容
  10. {text_p}: 被评论的内容
  11. {time}: 发邮件时间
  12. {status}: 评论状态['通过', '待审', '垃圾']

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.