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

From aMember Pro Documentation
Jump to: navigation, search
(Created page with "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/p...")
 
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. Copy all files from /amember/application/default/plugins/protect/wordpress to /amember/application/default/plugins/protect/wordpress1 folder.  
 +
 
2. Rename /amember/application/default/plugins/protect/wordpress1/wordpress.php to /amember/application/default/plugins/protect/wordpress1/wordpress1.php
 
2. Rename /amember/application/default/plugins/protect/wordpress1/wordpress.php to /amember/application/default/plugins/protect/wordpress1/wordpress1.php
 +
 
3. Edit /amember/application/default/plugins/protect/wordpress1/wordpress1.php and change this line:  
 
3. Edit /amember/application/default/plugins/protect/wordpress1/wordpress1.php and change this line:  
 +
 
<source>
 
<source>
 
class Am_Protect_Wordpress extends Am_Protect_Databased  
 
class Am_Protect_Wordpress extends Am_Protect_Databased  
Line 12: Line 16:
  
 
4. Go to aMember CP -> Setup -> Plugins and enable wordpress1 plugin.
 
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

Revision as of 05:53, 4 July 2012

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.

2. Rename /amember/application/default/plugins/protect/wordpress1/wordpress.php to /amember/application/default/plugins/protect/wordpress1/wordpress1.php

3. Edit /amember/application/default/plugins/protect/wordpress1/wordpress1.php and change this line:

class Am_Protect_Wordpress extends Am_Protect_Databased

to

class Am_Protect_Wordpress1 extends Am_Protect_Databased

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