Community Documentation

3. Working with subscriptions

Last updated December 10, 2012. Created by alexweber on April 21, 2012.
Edited by 7wonders. Log in to edit this page.

This section will contain detailed information on working with subscriptions.

Defining subscription benefits

What will users get when they subscribe? Will the site behave differently at all? The "Subs Premium" submodule integrates with Profile2, Node Option Premium and Organic Groups (soon) in order to allow users with an active subscription to view premium content and also view private profile2 fields. These options are all configured per subscription type.

Apart from working directly with the API, Subs also exposes some nice Rules actions, conditions and events so you can easily create your own custom behavior for dealing with subscriptions.

If you would like integration with another module please add an issue!

Defining subscription types

Go to admin/structure/subscriptions to manage your subscription types. You can create as many types as you want and add as many fields as you want to them. You need to have at least one type in order for Subs to work.

Multiple subscription types can be created in order to give different benefits or treatment to users depending on their subscription plan.

Since subscription types are fieldable you can also request certain additional information for certain types. User-added fields get automatically included in the add/edit subscription forms.

Submodules

Subs i18n
Help translations for multilingual websites.
Subs Premium
Allow access to restricted content according to subscription status. Integrates with Node Option Premium and Profile2.
Subs Payment (soon)
API for allowing subscriptions to receive payments and react upon the payment status.

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 7.x
Level
Beginner, Intermediate, Advanced
Audience
Programmers
Keywords
subscription, working with
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here