Search Documentation

Emerald Quick Start

1. Overview

Emerald is a Joomla Membership extension. Another words it allows you to restrict some pages or actions on your website on payment base byt creating subscription plans.

Emerald is an oldest membership Joomla extension and very mature. It has almost any feature you need and may be configured to mach any subscription scenario.

Emerald has it’s own unique algorithm that allows to restrict any 3d party extension without need of special integration.

2. Install

There are 5 emerald elements.

  1. Emerald component.
  2. Emerald plugins (system, user, content).
  3. Actions - triggered after success subscription. Something like move user to additional group, run SQL query and so on.
  4. Rules - although Emerald may restrict any extension without integration, rules are restriction adapters and may allow to create more advanced restriction rules.
  5. Payment gateways.

You can install them separately. But Emerald is distributed in a form of installation package which will install all elements. In basic package you will get only free elements.

  • Download Emerald package pkg_emerald.j3.v.9.xx.zip.
  • Install it as usual Joomla extension.

3. Setup

Publish plugins

Open plugin manager and search plugins by word “emerald”. You wills see 3 plugins. Publish all of them.

Create menu elements

Got to Menu / Menus / User menu / Add new menu item

Chose Emerald / Control panel

And make this menu element accessible only for special.

Here is how it should be set up.

And now save this menu element.

  • For user menu create another element to Subscription history for registered users.
  • And another element of Subscription plans to main menu with name Join Now for public users.

Configure

Now open emerald configuration.

And set menu elements you’ve just created.

And configure other options as you wish.

4. Emerald Management

Very important to understand that emerald is a frontend extension. It means that create plans, manage subscriptions, create coupons or any other actions that is classically used to be managed in backend, now moved to frontend.

I know, for some peopel at first it may sounds weired and senseless. But let me try to convince you that this is indeed the way to go.

  1. Just start to use it and you will love it. In few minutes you will experience that managing from frontend is much more convenient. You do not need to jump between backend and frontend.
  2. Think of possibilities this approach opens. With proper rights management (which is Emerald 10 roadmap) users will be able to create they own subscription plans and sell something on your site with their own subscriptions. This allows you to use membership site as SaaS or simply multi-vendor.

Now open your site frontend and login. Click Emerald Control panel link in user menu we have just created earlier. You will land to Emerald control panel.

5. Create group

Before we create restriction plan we have to create group or you might think of it as plan category.

Click Groups icon in control panel and then add button.

Enter group/category name and description. Description is what user will see before list of the plans of this group. You can enter here any useful general information about plans.

You also can choose template for this group. There are 2 templates provided with emerald by default. You can read more about template in How to customize templates article.

6. Create plan

The last step is to create restriction plan. this part may be bit complicated as plan contain many parameters and it may take time to learn them all. But you do not need them. You only need to know few main parameters.

In Emerald admin menu click Plans and then Add button..

General Settings Tab

  1. Enter plan name and select group.
  2. Enter plan price.
  3. Set plan period.
  4. Set currency and price formatting.

This is all we need to set on this tab. To learn all parameters, read Plan parameters article.

Restrictions Tab

Now you have to add restriction rules. rules are bonded to components.

  1. Select component you want to restrict.
  2. Configure parameters.
  3. Save rule.

You may add as many rules to plan as you want. Even few rules for the same component.

Rules are based on adapters. If special adapter for chosen component is found, then it is used to control this rule. It adapter is not found universal restriction adapter is used. You may develop your own adapter if you want some special restriction checks to be done.

Actions Tab

Actions tab is not necessary for minimum setup but you can learn everything about actions here.

Payment Gateways Tab

Foe every plan you have to configure at leas one payment gateway unless your plan is free (price = 0).

  1. Click on gateway name to unfold its properties.
  2. Click Enable parameter.
  3. Configure according instruction.

Cross Plans Tab

This parameters are not necessary for minimum plan setup but you can read all about those parameter in this article.

Alerts Tab

Here you can setup what email messages will be sent to user. One important note that if you want multilingual alerts you can use constants like for example ALERT_PLAN_NAME_SUCCESS in subject and message body and override those constants in Joomla language manager / Overrides.

You also have to configure cron task in order expire alerts to be sent. Cron is triggered through URL. You can set following cron task at least once a day.

wget http://mysite.com/index.php?option=com_emerald&task=emcron.send_expire_alerts&secret=123456

Where secret is a text that you set in Emerald global parameters.

7. Conclusion

Emerald is simple to learn and very straightforward extension but at the same time advanced with almost any feature you could dream about.

Enjoy!