animafac/wp-civicrm-frontoffice 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

animafac/wp-civicrm-frontoffice

Composer 安装命令:

composer require animafac/wp-civicrm-frontoffice

包简介

Add shortcodes that allow users to edit their own organization in CiviCRM

README 文档

README

This WordPress plugin adds several shortcodes that allow users to edit their own profile or organization in CiviCRM.

Note: the HTML generated by the shortcodes is not styled. It is up to you to adapt the CSS of your theme.

Requirements

You need CiviCRM 5.6.

Available shortcodes

Warnings:

  • You should not add several shortcodes on the same page.
  • Shortcodes can be replaced on the fly with the civicrm_action query variable. So even if you don't use a shortcode, users might be able to access this functionnality.

edit_member

Display a form allowing a logged-in user to edit its contact info.

Attributes:

  • id: CiviCRM ID of the person to edit. Defaults to the current user. (Can also be set with the civicrm_id query variable.)

edit_organization

Display a form allowing a logged-in user to edit an organization info. The user must have a relationship with the organization and must be allowed to edit it.

Attributes:

  • id: CiviCRM ID of the organization to edit. (Can also be set with the civicrm_id query variable.)
  • tagset (optional): Name of a tagset from which the user can select tags to apply to the organization.
  • note (optional): Name of a note that can be created on the organization and will be displayed publicly with show_organization. (Can be used for a public description, for example.)

show_organization

Display info about an organization.

Attributes:

  • id: CiviCRM ID of the organization to display. (Can also be set with the civicrm_id query variable.)
  • tagset (optional): Name of a tagset from which to display tags applied to the organization.
  • note (optional): Name of a note attached to the organization that will be displayed (if it exists).

search_organization

Display a form allowing to search organizations.

Attributes:

  • redirect (optional): URL of a page the form should redirect to. (Can be useful if you want to display the form on your homepage but display results on a separate page that also contains this shortcode.)
  • country (optional): ISO code of the country from which to list provinces.
  • tagset (optional): Name of a tagset from which to display tags to search organizations in.

show_members

Display members of an organization. The user must also be a member of the organization. Be carefull with the GDPR, if everyone can join any organisation without oversight you might not be in conformance.

Attributes:

  • id: CiviCRM ID of the organization to edit. (Can also be set with the civicrm_id query variable.)

show_member

Display info about a person.

Attributes:

  • id: CiviCRM ID of the person to show. Defaults to the current user. (Can also be set with the civicrm_id query variable.)

add_organization

Allow a logged-in user to add a relationship between himself and an organization.

create_organization

Allow a logged-in user to create a new organization.

Attributes:

  • tagset (optional): Name of a tagset from which the user can select tags to apply to the organization.
  • note (optional): Name of a note that can be created on the organization and will be displayed publicly with show_organization. (Can be used for a public description, for example.)

add_member

Display a form allowing a logged-in user to add a relationship between a person and an organization. The user must have a relationship with the organization and must be allowed to edit it.

Attributes:

  • id: CiviCRM ID of the organization. (Can also be set with the civicrm_id query variable.)

edit_relationship

Display a form allowing a logged-in user to edit a relationship.

Attributes:

  • id: CiviCRM ID of the relationship to edit. (Can also be set with the civicrm_id query variable.)

edit_avatar

Display a form allowing a logged-in user to change its own avatar.

The WP User Avatar plugin must be enabled.

delete_member

Display a page allowing a logged-in user to delete an acount. If the user confirms, the WordPress will be deleted, but not the CiviCRM person.

(For now, users can only delete their own account.)

Attributes:

  • id: CiviCRM ID of the person whose account to delete. Defaults to the current user. (Can also be set with the civicrm_id query variable.)

Grunt tasks

Grunt can be used to run some automated tasks defined in Gruntfile.js.

Your first need to install dependencies with Yarn and Composer:

yarn install
composer install

Be careful to not commit these dependencies in the repository!

You can remove them like this:

composer install --no-dev

(We can't add vendor/ to .gitignore because we need to include the non-dev dependencies and the autoloader into the repository in case the plugin is installed with the regular WordPress installer and not Composer.)

Lint

You can check that the JavaScript, JSON and PHP files are formatted correctly:

grunt lint

Tests

You can run PHPUnit tests:

grunt test

Documentation

phpDocumentor can be used to generate the code documentation:

grunt doc

CI

Gitlab CI is used to run the tests automatically after each commit.

animafac/wp-civicrm-frontoffice 适用场景与选型建议

animafac/wp-civicrm-frontoffice 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 95 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 04 月 18 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 animafac/wp-civicrm-frontoffice 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2018-04-18