Cck k2

Last Update : 24 Aug 2014

These apps provides integration of payplans with K2.

K2 Item Access Control:

It provides you the functionality to restrict the accessibility of items for users. Such restrictions can be applied according to the plan(s) subscribed by the users.

  1. Install K2 Component and create categories and items in K2 component.
  2. Create items in K2
  3. Install Payplans's K2 App. Go to Plugin Manager and enable Payplans-K2Manager.
  4. Enable plugin for K2
  5. Go to Payplans's Apps and create new app-> Item Access Control.
  6. Create New instance of K2 Item Access Control App
  7. Write the name of the plan(s) & name of the item or article which you want to show to only subscribed users of those plans. For Example:- I want to show subscribed user's article to only those users who have subscription status active for Plan1 of $10.
    1. Name: Give a suitable name to your App.
    2. Apply on All Plans: Select 'Yes' if you want to show article(s) to only subscribed user of any plan. Select 'No' if you want to show article(s) to only those subscribers who have subscription active status to only selected plans.
    3. Apply on Selected Plans: Select plans on which you want to apply item access control app.
    4. On Subscription Active: Select item which should be shown when subscription status is active.
    Edit screen of K2 Item Access Control App
  8. When user will click on K2 categories in frontend
  9. K2 Item shown to Unsubscribed User
    K2 Item shown to Subscribed user

    So, using item access control app, you can restrict user to see whole article. User have to subscribe plan to see whole article.

K2 Category Access Control:

You can limit the user to add articles to different categories.

  1. Go to menu manager and then create new menu as New->K2->Item edit form. Users will be able to click on this menu item.
    1. Title: Give suitable name to menu item.
    2. Pre-Selected Category: Select a category which will be shown to the user. By default all the new items will be added to this category.
    3. Save: Save your menu item.
    Menu item to add categories
  2. Now go to Payplans's Apps and create new app-> K2 Category Access Control.
  3. Create New instance of K2 Category Access Control App
  4. Write the name of the plan(plans) & name of the category and allowed submissions. This App works on the subscription active status of plan. For Example:- I want to add two new articles to subscribed user's category.
    1. Name: Give suitable name to App.
    2. Apply on All Plans: Select 'Yes' if you want to allow subscribed users of any plan. Select 'No' if you want to allow only those subscribers who have subscription active status to only selected plans.
    3. Select Category Select category towhich you want to allow submission of articles.
    4. Allowed Submissions: Type the number of submissions allowed to the user.
    Edit screen of K2 Category Access Control App
  5. When user will be logged in and click on edit item menu a new window will appear for submission of new item. The users will be able to submit items according to their subscribed plan.
    1. Title: Add title new item.
    2. Category: The category will be pre-selected according to their plan.
    3. Textarea: Write content in the textarea.
    4. Save: Click save. Your item will be submitted and will be visible in selected category.
    Add item from frontend
  6. If the user try to add items more than allowed submissions, an error will be shown when he/she will try to submit that item.
  7. Message if user is not allowed to submit entry

    So, using category access control you can restrict user to add number of articles to a category.

K2 User Group Access:

It provides you the functionality to assign different K2 user groups to users according to their subscription status of their subscribed plan. There is no need to assign user groups manually to your users.

  1. Create user groups in K2 Component.
  2. User Groups in K2
  3. Go to Payplans's Apps and create new app-> K2 User Group Access.
  4. Create New instance of K2 User Group Access App
  5. Write name of the plan(plans) on which you want to assign K2 User Groups according to their subscription status(active, hold, expire).
    1. Name: Give a suitable name to App.
    2. Apply on All Plans: Select 'Yes' if you want add all the subscribers on any plan to user groups. Select 'No' if you want to add some users of selected plans to user groups.
    3. Apply on Selected Plans: Select plans on which you want to apply user access group app.
    4. On Subscription Active: Select group which should be assigned on subscription active status of plan(s).
    5. On Subscription Hold: Select group which should be assigned on subscription hold status of plan(s).
    6. On Subscription Expire: Select group which should be assigned on subscription expire status of plan(s).
    Edit screen of K2 User Group Access App
  6. Whenever the subscription status of user will be active, hold or expired, this app will update the group column in K2 users. For example:- When according to my app, when Plan1 of $10's subscription becomes active, user groups should be updated in K2 user groups.
  7. Plan is in Active Status
    User is added to user group automatically

    If the plan of user is expired then this app will update the group column automatically.

    Plan is in Expired Status
    User is added to user group automatically

So, whenever user have subscription status active, user is added to subscribed users group and whenever user have subscription status expire, user is added to non-subscribed users group.In this way, you can show contents to users according to their user group.

Author:-
   I found this article helpful
   I did not find this article helpful