[wordpress插件] CiviCRM WordPress Member SyncCiviCRM WordPress成员同步

wordpress 插件 文章 2020-03-24 01:00 503 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

CiviCRM WordPress Member Sync keeps a WordPress user in sync with a CiviCRM membership by granting either a role or capabilities to a WordPress user who has that membership.

CiviCRM WordPress成员同步通过将角色或功能授予具有该成员身份的WordPress用户,从而使WordPress用户与CiviCRM成员身份保持同步。

This enables you to have, among other things, members-only content on your website that is only accessible to current members as defined by the membership types and status rules that you set up in this plugin’s settings.

除其他功能外,这使您可以在网站上拥有仅针对会员的内容,该内容仅由您在此插件设置中设置的会员类型和状态规则所定义的当前会员才能访问。

CiviCRM WordPress Member Sync is compatible with both “Members” and “成员”和“

/groups/">Groups” for managing members-only content in WordPress.

/ groups /“>网上论坛”,用于管理WordPress中仅限会员的内容。

See the Installation section for details.

有关详细信息,请参见“安装”部分。

Requirements

要求

This plugin requires a minimum of WordPress 4.4 and CiviCRM 4.6.

此插件至少需要 WordPress 4.4 CiviCRM 4.6

It is compatible with the Members and Groups

它与成员组兼容

plugins.

插件。

Please refer to the Installation page for configuration instructions.

请参阅“安装”页面以获取配置说明。

It is also strongly recommended that you also install CiviCRM Admin Utilities and have version 0.6.8 or greater

强烈建议您还安装 CiviCRM Admin Utilities ,并安装0.6.8或更高版本

activated.

活性。

Make sure the checkbox labelled “Check this to fix the Contact ‘soft delete’ process” is checked so that Contacts that have been “soft deleted” have their corresponding WordPress User’s status updated.

确保选中“选中此复选框以修复联系人的“软删除”过程”复选框,以确保已被“软删除”的联系人的相应WordPress用户状态已更新。

Plugin Development

插件开发

This plugin is in active development.

该插件正在开发中。

For feature requests and bug reports (or if you're a plugin author and want to contribute) please visit the plugin's GitHub repository.

nofollow“> GitHub存储库。

Shouts Out To…

向…大喊……

This plugin builds on the work done by 工作

" rel="nofollow">Tadpole Collective and originally developed by Jag Kandasamy.

“ rel =“ nofollow”> T集体,最初由 Jag Kandasamy 开发。

Kudos.

荣誉。

安装步骤

    1. Extract the plugin archive
    2. 提取插件存档

    3. Upload plugin files to your /wp-content/plugins/ directory
    4. 将插件文件上传到您的 / wp-content / plugins / 目录

    5. Make sure CiviCRM is activated and properly configured
    6. 确保已激活CiviCRM并对其进行了正确配置

    7. Activate the plugin through the ‘Plugins’ menu in WordPress
    8. 通过WordPress中的“插件”菜单激活插件

    The first thing to decide is whether you want CiviCRM WordPress Member Sync to synchronize CiviCRM Memberships to WordPress Roles or WordPress Capabilities.

    要决定的第一件事是您是否希望CiviCRM WordPress成员同步将CiviCRM成员资格同步到WordPress角色或WordPress功能。

    If, for example, you need your WordPress user roles to be independent of membership status, then choose Capabilities.

    例如,如果您需要WordPress用户角色独立于成员身份状态,则选择功能。

    The default synchronisation method is Capabilities, because WordPress has limited support for multiple roles.

    默认的同步方法是“功能”,因为WordPress对多个角色的支持有限。

    New in version 0.4.2

    0.4.2版中的新功能

    If you have a large number of Membership Types, you can add the following code to your wp-config.php file:

    如果会员类型数量很多,可以将以下代码添加到 wp-config.php 文件中:

    define( 'CIVI_WP_MEMBER_SYNC_MULTIPLE', true );

      define('CIVI_WP_MEMBER_SYNC_MULTIPLE',true);

    This will allow you to select multiple Membership Types when adding an Association Rule.

    这将允许您在添加关联规则时选择多个成员资格类型。

    When saved, one Rule will be created for each of the selected Membership Types.

    保存后,将为每个选定的成员资格类型创建一个规则。

    This could save a lot of time in setting up your Association Rules.

    这样可以节省大量时间来设置关联规则。

    Thanks to Foxpress Design for funding this upgrade.

    感谢 Foxpress Design 为此次升级提供资金。

    Working with Capabilities

    使用功能

      1. Visit the plugin’s admin page at “Settings” –> “CiviCRM WordPress Member Sync”.
      2. 在“设置”->“ CiviCRM WordPress成员同步”上访问插件的管理页面。

      3. Select “Capabilities” as the sync method
      4. 选择“功能”作为同步方法

      5. Click on “Add Association Rule” to create a rule.

      6. 单击“添加关联规则”以创建规则。

        You will need to create a rule for every CiviCRM membership type you would like to synchronize.

        您将需要为要同步的每种CiviCRM成员资格类型创建一个规则。

        For every membership type, you will need to determine the CiviMember states that define the member as “current” thereby granting them the appropriate WordPress capabilities.

        对于每种会员类型,您将需要确定将会员定义为“当前”的CiviMember状态,从而为他们授予适当的WordPress功能。

        It is most common to define “New”, “Current” and “Grace” as current.

        最常见的是将“新”,“当前”和“宽限期”定义为当前。

        Similarly, select which states represent the “expired” status thereby removing the WordPress capabilities from the user.

        同样,选择哪些状态代表“过期”状态,从而从用户删除WordPress功能。

        It is most common to define “Expired”, “Pending”, “Cancelled” and “Deceased” as the expired status.

      7. 最常见的是将“过期”,“待处理”,“已取消”和“已故”定义为过期状态。

      8. “Current Status” adds a “Membership Capability” to the WordPress user, while “Expired Status” removes the “Membership Capability” from the WordPress user.

      9. “当前状态”向WordPress用户添加“会员能力”,而“过期状态”则从WordPress用户删除“会员能力”。

        This capability will be of the form “civimember_ID”, where “ID” is the numeric ID of the Membership Type.

        此功能的形式为“ civimember_ID”,其中“ ID”是成员资格类型的数字ID。

        So, for Membership Type 2, the capability will be “civimember_2”.

      10. 因此,对于会员类型2,功能为“ civimember_2”。

      11. Note: If you have the “Groups” plugin active, then all “civimember_ID”

      12. 注意:如果您具有“ ”插件处于活动状态,则所有“ civimember_ID”

        capabilities will be added to its custom capabilities as well as to the list of capabilities used to enforce read access on posts.

        功能将被添加到其自定义功能以及用于强制发布帖子的阅读权限的功能列表中。

        If you have Groups 2.8.0 or greater installed, then you will have the option to specify one or more “current” and “expired” groups to which users will be synced depending on whether their membership is “current” or “expired”.

        如果您安装了Groups 2.8.0或更高版本,则可以选择指定一个或多个“当前”和“过期”组,根据其成员身份是“当前”还是“过期”,将用户同步到这些组。

      13. Note: If you have the “Members” plugin active, then the “restrict_content”

      14. 注意:如果您具有“ 成员”插件处于活动状态,则“ restrict_content”

        capability will also be added.

      15. 功能也将被添加。

      16. An additional “Membership Status Capability” will also be added to the WordPress user that is tied to the status of their membership.

      17. 还将向WordPress用户添加一个附加的“会员资格功能”,该功能与其会员资格相关。

        This capability will be of the form “civimember_ID_NUM”, where “ID” is the numeric ID of the Membership Type and “NUM” is the numeric ID of the “Membership Status”.

        此功能的格式为“ civimember_ID_NUM”,其中“ ID”是会员类型的数字ID,“ NUM”是“会员状态”的数字ID。

        So, for Membership Type 2 with Membership Status 4, the capability will be “civimember_2_4”.

      18. 因此,对于具有会员状态4的会员类型2,该功能将为“ civimember_2_4”。

      Working with Roles

      使用角色

        1. Visit the plugin’s admin page at “Settings” –> “CiviCRM WordPress Member Sync”.
        2. 在“设置”->“ CiviCRM WordPress成员同步”上访问插件的管理页面。

        3. Select “Roles” as the sync method
        4. 选择“角色”作为同步方法

        5. Click on “Add Association Rule” to create a rule.

        6. 单击“添加关联规则”以创建规则。

          You will need to create a rule for every CiviCRM membership type you would like to synchronize.

          您将需要为要同步的每种CiviCRM成员资格类型创建一个规则。

          For every membership type, you will need to determine the CiviMember states that define the member as “current” thereby granting them the appropriate WordPress role.

          对于每种会员类型,您需要确定将会员定义为“当前”的CiviMember状态,从而为他们授予适当的WordPress角色。

          It is most common to define “New”, “Current” and “Grace” as current.

          最常见的是将“新”,“当前”和“宽限期”定义为当前。

          Similarly, select which states represent the “expired” status thereby removing the WordPress role from the user.

          同样,选择哪些状态代表“过期”状态,从而从用户中删除WordPress角色。

          It is most common to define “Expired”, “Pending”, “Cancelled” and “Deceased” as the expired status.

          最常见的是将“过期”,“待处理”,“已取消”和“已故”定义为过期状态。

          With ‘roles’ as your synchronization method, also set the role to be assigned if the membership has expired in “Expiry Role”.

          使用“角色”作为您的同步方法,如果“过期角色”中的成员资格已过期,还可以设置要分配的角色。

          This is not needed when working with Capabilities.

        7. 使用功能时不需要这样做。

        8. It may sometimes be necessary to manually synchronize users.

        9. 有时可能需要手动同步用户。

          Click on the “Manually Synchronize” tab on the admin page to do so.

          单击管理页面上的“手动同步”选项卡。

          You will want to use this when you initially configure this plugin to synchronize your existing users.

        10. 最初配置此插件以同步现有用户时,您将希望使用此功能。

        11. Note: If you have the “Groups” plugin activated and it is version 2.8.

        12. 注意:如果您已激活“ ”插件,并且该插件的版本为2.8。

          0 or greater, then you will have the option to specify one or more “current” and “expired” groups to which users will be synced depending on whether their membership is “current” or “expired”.

        13. 0或更大,那么您可以选择指定一个或多个“当前”和“过期”组,用户将根据其成员身份是“当前”还是“过期”而与之同步。

        Manual Synchronize

        手动同步

        It may sometimes be necessary to manually synchronize users.

        有时可能需要手动同步用户。

        Click on the “Manually Synchronize” tab on the admin page to do so.

        单击管理页面上的“手动同步”选项卡。

        You will want to use this when you initially configure this plugin to synchronize your existing users.

        最初配置此插件以同步现有用户时,将需要使用此功能。

        Test Test Test

        测试测试测试

        Note: Be sure to test this plugin thoroughly before using it in a production environment.

        注意:在生产环境中使用该插件之前,请务必对其进行彻底测试。

        At minimum, you should log in as a test user to ensure you have been granted the appropriate role or capabilities when that user is given membership.

        至少,您应该以测试用户身份登录,以确保在授予该用户成员身份时,已被授予适当的角色或功能。

        Then take away the membership for the user in their CiviCRM record, log back in as the test user, and make sure you no longer have that role or those capabilities.

        然后删除其CiviCRM记录中该用户的成员身份,以测试用户身份重新登录,并确保您不再具有该角色或那些功能。

下载地址
https://downloads.wordpress.org/plugin/civicrm-wp-member-sync.0.4.2.zip
-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Countdown Pro for Gutenberg古腾堡的倒计时专业版
[wordpress插件] Blacklist Unwanted Email – Formidable Forms黑名单垃圾邮件–强大的表单
[wordpress插件] BTCP Pay for WoocommerceBTCP支付Woocommerce
[wordpress插件] Boxers and Swipers拳击手和刷卡
[wordpress插件] BuddyPress LinksBuddyPress链接
随便看看
微信公众号免300认证教程 4955
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 4075
小程序广告组件通过审核,但是小程序内没有显示广告? 4153
企业微信通讯录账号被管理员误/恶意删除,怎么办? 8020
问题? 7254
如何快速搭建抽奖助手小程序(无需代码知识) 5039
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 5993
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5511
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5206
如何解决渲染层网络错误Failed to load media? 16561