How to Integrate aMember and WordPress

Try to have patience with step #3 below. It can take some fiddling to get the format just right. If you’re still having trouble feel free to contact us with your specs and we’ll get back to you with some ideas and a proposal.

Once you have WordPress and aMember installed basic integration works as follows:

  1. Upload the WordPress plugin for aMember to the ..amember/plugins/protect/ folder. You should end up with ..amember/plugins/protect/wordpress/wordpress.inc.php
  2. Log in to your aMember admin and enable the WordPress plugin (go to Setup/Configuration > Plugins ).
  3. From the same plugins screen, click on WordPress to configure the plugin.You need to enter the database and table name for your WordPress installation like: database.wp_database is the name of your database and wp_ is the default table prefix that WordPress assigns to all of its database tables. Both of these values can be found in your wp-config.php file.If you have trouble use the built in browsing tool and play around with the path until you find the right format. For example, ‘/home/path/..’ needs to have the first ‘/’ or it won’t work.
  4. Open your wp-config.php file and add the following lines before require_once(ABSPATH.’wp-settings.php’);

    define(’COOKIEPATH’,'/’);
    define(’SITECOOKIEPATH’, ‘/’);
    define(’COOKIEHASH’, md5($_SERVER[HTTP_HOST]));

  5. Go to Manage Products and alter each one to set the ‘WordPress Role’ and ‘WordPress Level’ to the desired values.
  6. Click ‘Rebuild Database’ for your changes to take effect.

For more detailed info on integrating aMember and WordPress search this site for ‘aMember WordPress’.

Advanced Integration of aMember and WordPress

By default, WordPress does not restrict access on a per article basis. View Level is a plugin that will allow you to assign a level to each article. Then it’s a simple matter of matching up post ‘levels’ with ‘wordpress level’ values of your subscription products in your aMember admin panel.

The following guide will explain how to set up the ViewLevel2 plugin and display teasers to public users (those without accounts or who are not logged in):

aMember WordPress Integration: Content Protection using ViewLevel2