定制 newscoop/send-feedback-plugin 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

newscoop/send-feedback-plugin

Composer 安装命令:

composer require newscoop/send-feedback-plugin

包简介

Send feedback and contact plugin.

README 文档

README

Plugin for basic contact form functionalities. Supports most common fields, supports storing in database and uploading attachments.

This plugin is compatible with Newscoop 4.3 and higher.

Features

  • Send feedback messages (supported fields: first name, last name, email, subject and message)
  • Supports posting via AJAX and normal post with custom redirect page
  • Attachments handling (only images and pdf documents), attach to mail or upload into Newscoop Media Library
  • Let site visitors decide who to send email to (with spam protection)
  • Store feedback in database and view in Newscoop backend (see detailed instructions)

Installation

Installation is a quick process:

  1. How to install this plugin?
  2. That's all!

Step 1: How to install this plugin?

Run the command:

$ php application/console plugins:install "newscoop/send-feedback-plugin"
$ php application/console assets:install public/

Plugin will be installed to your project's newscoop/plugins/Newscoop directory.

Step 2: That's all!

Go to Newscoop Admin panel and then open Plugins tab. The Plugin will show up there. You can now use the plugin.

Note:

To update this plugin run the command:

$ php application/console plugins:update "newscoop/send-feedback-plugin"
$ php application/console assets:install public/

To remove this plugin run the command:

$ php application/console plugins:remove "newscoop/send-feedback-plugin"

Documentation

Extended plugin documentation

For more information please see our wiki page.

Read plugin settings

With the help of the tag {{ get_feedback_settings }} it's possible to read the plugin settings in the frontend. All current keys which can be read are listed below as well.

{{ get_feedback_settings }}
{{ get_feedback_settings assign="mySettingVariable" }}
{{ $mySettingVariable.to }} // Email addresses of valid receivers
{{ $mySettingVariable.storeInDatabase }} // Whether the feedback will be stored in the database
{{ $mySettingVariable.allowAttachments }} // Whether attachments are allowed
{{ $mySettingVariable.allowAnonymous }} // Whether non-registered users can send feedback

Basic example

<form id="sendFeedbackForm" method="post" action="/plugin/send-feedback" enctype="multipart/form-data">
    <div class="form-group">
        <label for="sendFeedbackForm_first_name">First Name</label>
        <input type="text" id="sendFeedbackForm_first_name" name="sendFeedbackForm[first_name]" required="required" class="form-control" placeholder="First name">
    </div>
    <div class="form-group">
        <label for="sendFeedbackForm_last_name">Last Name</label>
        <input type="text" id="sendFeedbackForm_last_name" name="sendFeedbackForm[last_name]" required="required" class="form-control" placeholder="Last name">
    </div>
    <div class="form-group">
        <label for="sendFeedbackForm_email">Email</label>
        <input type="text" id="sendFeedbackForm_email" name="sendFeedbackForm[email]" required="required" class="form-control" placeholder="Email">
    </div>
    <div class="form-group">
        <label for="sendFeedbackForm_subject">Subject</label>
        <input type="text" id="sendFeedbackForm_subject" name="sendFeedbackForm[subject]" required="required" class="form-control" placeholder="Subject">
    </div>
    <div class="form-group">
        <label for="sendFeedbackForm_message">Message</label>
        <textarea id="sendFeedbackForm_message" name="sendFeedbackForm[message]" required="required" class="form-control" placeholder="Message"></textarea>
    </div>

    <input id="submitSendFeedbackForm" class="btn btn-primary" type="submit" value="Submit">
</form>

License

This bundle is under the GNU General Public License v3. See the complete license in the bundle:

LICENSE

About

This Bundle is a Sourcefabric z.ú. initiative.

newscoop/send-feedback-plugin 适用场景与选型建议

newscoop/send-feedback-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 829 次下载、GitHub Stars 达 0, 最近一次更新时间为 2013 年 11 月 28 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「email」 「cms」 「contact」 「send」 「widget」 「newscoop」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 newscoop/send-feedback-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 newscoop/send-feedback-plugin 我们能提供哪些服务?
定制开发 / 二次开发

基于 newscoop/send-feedback-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 15
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2013-11-28