Difference between revisions of "How to link aMember to different wordpress blogs"

From aMember Pro Documentation
Jump to: navigation, search
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
 
If you want to add aMember users into two different wordpress blogs, you have to enable second wordpress plugin in aMember.  
 
If you want to add aMember users into two different wordpress blogs, you have to enable second wordpress plugin in aMember.  
  
1. Copy all files from /amember/application/default/plugins/protect/wordpress to /amember/application/default/plugins/protect/wordpress1 folder.  
+
1. Create new file ''/amember/application/default/plugins/protect/wordpress1.php''
 +
with the following content:
 +
<source>
 +
<?php
  
2. Rename /amember/application/default/plugins/protect/wordpress1/wordpress.php to /amember/application/default/plugins/protect/wordpress1/wordpress1.php
+
require_once 'wordpress/wordpress.php';
  
3. Edit /amember/application/default/plugins/protect/wordpress1/wordpress1.php and change this line:
+
class Am_Protect_Wordpress1 extends Am_Protect_Wordpress {}
 +
</source>
  
<source>
+
2. Go to ''aMember CP -> Configuration -> Setup/Configuration -> Plugins'' and enable ''wordpress1'' plugin.
class Am_Protect_Wordpress extends Am_Protect_Databased
+
</source>
+
to
+
<source>
+
class Am_Protect_Wordpress1 extends Am_Protect_Databased
+
</source>
+
  
4. Go to aMember CP -> Setup -> Plugins and enable wordpress1 plugin.
+
In ''aMember CP -> Protect Content -> Integrations'' you will have two plugins now: ''wordpress'' and ''wordpress1''
  
In aMember CP -> Protect Content -> Integrations you will have two plugins now: wordpress and wordpress1
+
You can add as many plugin as you need same way (just change 1 to 2, 3, 4 etc).

Latest revision as of 03:48, 20 June 2017

If you want to add aMember users into two different wordpress blogs, you have to enable second wordpress plugin in aMember.

1. Create new file /amember/application/default/plugins/protect/wordpress1.php with the following content:

<?php
 
require_once 'wordpress/wordpress.php';
 
class Am_Protect_Wordpress1 extends Am_Protect_Wordpress {}

2. Go to aMember CP -> Configuration -> Setup/Configuration -> Plugins and enable wordpress1 plugin.

In aMember CP -> Protect Content -> Integrations you will have two plugins now: wordpress and wordpress1

You can add as many plugin as you need same way (just change 1 to 2, 3, 4 etc).