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}: 评论状态['通过', '待审', '垃圾']

typecho-plugin-notice's People

Contributors

ludoux avatar rainshaw avatar zixia1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

typecho-plugin-notice's Issues

无法启用插件

无法启用:

syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)

报错

启用该插件后,在操作评论标记时出现500错误
数据库查询错误

waring

启用插件,进入设置界面后,提示 failed to open stream: Permission denied in usr/plugins/Notice/libs/Version.php on line 38

无法使用

文件放到 plugins 目录后,自动出现在了已启用的插件里,右侧本该有启用/禁用按钮的位置,显示的是即插即用

用不了

博客系统更新到1.2
handsome主题
错误显示Fatal error: Declaration of MDCheckbox::input($name = NULL, ?array $options = NULL) must be compatible with Typecho\Widget\Helper\Form\Element::input(?string $name = NULL, ?array $options = NULL): ?Typecho\Widget\Helper\Layout in /www/wwwroot/www.jacksonxe.cn/usr/plugins/Notice/libs/formelement/MDCheckbox.php on line 78

更新typecho1.2.1后设置界面排版错乱

问题描述:typecho更新1.2.1版本后设置界面排版错乱,并且回复评论时会发送一封邮件给自己。

typecho版本:1.2.1
PHP版本:7.4

烦请大佬排查一下,谢谢诶!

image

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.