承接 elefant/app-comments 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

elefant/app-comments

Composer 安装命令:

composer require elefant/app-comments

包简介

A reusable, embeddable comments component for the Elefant CMS

README 文档

README

A reusable, embeddable comments component for the Elefant CMS.

To install, copy it into your apps folder and visit Tools > Comments in the Elefant admin toolbar.

To embed comments into a view template, simply include the following:

{! comments/embed !}

To specify a different page identifier, which should be in the form of a link, add the identifier parameter:

{! comments/embed?identifier=/unique-page-identifier !}

If no identifier is provided, it will use the current page URL as the identifier for all comments made on that page.

To configure moderation options, visit Tools > Comments > Settings in Elefant.

Blog comments

You can also use this app as the comment mechanism for the blog app, simply set the comments setting in the blog app configuration as follows:

comments = comments/embed

Custom email notifications

You can implement notifications or any other action when a comment is posted by creating a custom handler and adding it to the [Hooks] section of the global conf/config.php file like this:

comments/add[] = myapp/hook/comments

The above line references a handler in the file apps/myapp/handlers/hook/comments.php, which receives a $data array with the following properties:

  • id - The comment's unique ID
  • identifier - The comment identifier from the embed code
  • user - The ID of the user who made the comment
  • name - The name of the user who made the comment
  • status - 1 means published, 0 means awaiting moderation
  • ts - The comment date/time in YYYY-MM-DD HH:MM:SS format
  • date - The comment date/time in YYYY-MM-DDTHH:MM:SSZ format
  • comment - The comment itself

For more information on writing hooks, see here.

统计信息

  • 总下载量: 86
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-08-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固