Help: Can't get aMember to log member into WP automatically

Discussion in 'Integration' started by tharmurray, May 18, 2010.

  1. tharmurray

    tharmurray New Member

    Joined:
    May 18, 2010
    Messages:
    2
    Hey guys,

    I've been working at this for about a week; been reading a bunch of other threads here, and nothing is working.

    I'm using aMember 3.1.8 (haven't upgraded to .9 yet, will do that soon), Wordpress Plugin for aMember, and Wordpress 2.9.2.

    aMember passes member information to the Wordpress database dynamically, but it doesn't log them into wordpress at the same time when they log into aMember to access our protected content.

    We launch on Saturday, so I greatly appreciate any help in advance.

    Cheers.
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Sounds like you havent integrated properly.
    Did you use encrypted variables in the secret key areas? dont!
    use a simple phrase like sitesecretkey1

    David
  3. tharmurray

    tharmurray New Member

    Joined:
    May 18, 2010
    Messages:
    2
    thanks for the reply david.

    I just followed the directions that come with the wordpress plugin for aMember (included below):

    WordPress Plugin installation
    -----------------------------------------------
    0. Copy wordpress.inc.php, config.inc.php and readme.txt into your aMember plugins/protect/wordpress folder
    (create wordpress folder if necessary)
    1. Enable wordpress plugin at aMember CP -> Setup/Configuration -> Plugins from Protect Plugins list
    2. Go to aMember CP -> Setup/Configuration -> WordPress and configure it.
    You will have to enter something like 'worpress_databasename.wp_'
    into "WordPress Board Db and Prefix" field. You may find database name and prefix
    in "wp-config.php" file of your WordPress installation.
    3. Go to aMember CP -> Manage Products -> edit and set "WordPress Role" and
    "WordPress Level" to desired values.
    4. To transfer your active members to WordPress, click aMember CP -> Rebuild Db

    Protecting your Posts in WordPress
    ----------------------------------------------
    If you followed the steps described above, aMember will create users in WordPress
    with configured "Roles". However, by default, WordPress has no ability to protect
    posts from visitors. It is easy to fix by installing WordPress plugins:
    * A plugin that allows you to restrict access to posts and pages based upon the user level
    http://wordpress.org/extend/plugins/post-levels/
    * Protect part of your post or links by using [hidepost] and [/hidepost] around the
    protected content in WordPress article
    http://wordpress.org/extend/plugins/hidepost/

    aMember sidebar widget for WordPress installation
    -----------------------------------------------
    Upload the widget(plugin) file(ma-amember_widget.php) to your wordpress plugin directory and enable it.
    Then in the wordpress admin / presentation / widget / place the widget in the sidebar, and click on it to edit the settings.
    It will place a login form or aMember links in your sidebar.


    WordPress installation folder protection
    -----------------------------------------------
    If you need to protect folder where WordPress installed with new_rewrite method please follow these steps:

    1. rename existing .htaccess file in WordPress folder (/blog for example) to .htaccess.wp
    2. protect /blog folder in aMember CP -> Protect folders
    3.1. edit /blog/.htaccess file, add code from .htaccess.wp file BEFORE aMember protection code
    3.2. add this code:
    RewriteCond %{REQUEST_URI} ^/blog/wp-admin(.*) [OR]
    RewriteCond %{REQUEST_URI} ^/blog/wp-login\.php(.*)
    RewriteRule ^(.*)$ - [L]
    before row:
    ## if user is not authorized, redirect to login page​

    Now, to be honest - I'm not sure if we use a new_rewrite rule, will look into it - but if we do...could that last step be why it's not working (I haven't changed htaccess)?

    As well, a fact I forgot to mention - technically, I'm protecting a subdomain on our site; our site is http://thehackeracademy.com, but the protected site is http://members.thehackeracademy.com - does that have anything to do with it?
  4. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
  5. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    yes plugin modification will be required to work with wordpress on subdomain.
    Contact us in helpdesk we will modify it.
  6. sergi0ne

    sergi0ne New Member

    Joined:
    May 19, 2010
    Messages:
    4
    where can i find wordpress.inc.php, config.inc.php and readme.txt ?
  7. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279

Share This Page