Question about Drupal integration

Discussion in 'Integration' started by theangelguy, May 29, 2010.

  1. theangelguy

    theangelguy Member

    Joined:
    Jul 15, 2009
    Messages:
    30
    Hi, there,

    What does the Drupal integration plug actually do?

    The reason I ask is that I don't have a Drupal site that uses lots of it's membership features that allow a user to create content. In fact, I don't allow anyone but me to create the content.

    Is it better, then, to just use Amember is some sort of standalone way?

    I'm certainly not opposed to buying it, but I want to make things as efficient as possible.

    (I'll also be uisng 1shoppingcart if that makes any difference.)

    Thanks a lot,

    - Paul
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Paul,
    Plugin allow to add users from ammeber to Drupal when user signup into aMember.
    Also plugin will add user to specified group. This is usefull when you offer separate levels of access for your users, when users who purchased different products will have access to different content.
  3. theangelguy

    theangelguy Member

    Joined:
    Jul 15, 2009
    Messages:
    30
    Thanks, Alex.

    I use Drupal for a static site right now, meaning one that doesn't require membership, so I'm pretty flexible on how to implement Amember with Drupal. Should I let amember handle most of it, or do I need to create the whole membership scheme in Drupal and amember will just act more invisibly with Drupal managing it?

    Thanks so much again,

    - Paul
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Paul,
    This depends on what you plan to do in the future. If you will plan to create separate access levels in the future, then you should use plugin and setup content in Drupal.
    If protected content will be outsite Drupal, then plugin will not be required at all.
  5. lromey

    lromey New Member

    Joined:
    Aug 29, 2006
    Messages:
    3
    Thanks for your posts, Alexander.
    I have an html site that uses amember for a subscription publication, have been using it for several years so I have an amember database that has lots of info. I am now going to create a drupal site to replace the html site. I want to continue with amember. Can I keep amember's login as it is or would it be best to have users log in through drupal? And how about bringing over my database--any suggestions on how to do that? I don't know PHP and am fairly new to drupal. I'm working my way through my third drupal book now.
  6. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Both logins will work, plugin support single login so when you will login in one script you will be logged in another.
    In regards to import, configure plugin then click aMember CP -> Rebuild DB this will import all active users into Drupal.
  7. deafdavid

    deafdavid Member

    Joined:
    Aug 28, 2006
    Messages:
    153
    There is a web-based software our organization is interest to buy. However, this web-based software will work only with Drupal.

    Forgive me my ignorance, can I use Drupal as a "portal" -- aMember as a membership database, one web-based software being plugin using Drupal, maybe another software (e.g. email) using aMember plugin (I'm seriously thinking about using aMail).

    My only main concern there will many hooks -- some with aMember and some with Drupal, and this will create problem down the road.

    Thank you.
  8. lromey

    lromey New Member

    Joined:
    Aug 29, 2006
    Messages:
    3
    Thanks, Alexander--I spent the whole weekend on this project and I got everything configured. I didn't realize that Rebuild DB would import active users into Drupal--that's helpful to know. When they import, does drupal encode the password with the MD5 function? I used a SQL insert function to add my amember records to the user and user_roles tables in Drupal but that didn't encode the passwords so they didn't work. I did find a SQL update function that did it. I was just testing and so only worked with a few dozen of my records--the rebuild function will make the final import much easier. I also want to import expired records because if an expired user tries to log into drupal, I set it to tell them that they are expired and offer a renewal. I suppose I'll have to do those with my insert command. For anyone else out there doing this, just be careful with the MD5 password encoding in Drupal--don't run the update unless every password in the table is in ascii--because if some are encoded already and you run the update, it will re-encode the encoding and then your passwords won't work.
  9. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Yes Rebuild Db will encode passwords as required by Drupal.
  10. lromey

    lromey New Member

    Joined:
    Aug 29, 2006
    Messages:
    3
    Thanks, Alexander.
    So if I import my expired list and update their passwords to encrypt them, and then run rebuild DB it will add the actives and not affect the expires that are already in the database?

    Also, does rebuild DB do anything else that I should be aware of?
    thank you
  11. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Yes expired users will not be affected.
    Rebuild DB do this:
    1. Rebuild status for all users if necessary.
    2. Rebuild .htpasswd if plugin enabled.
    3. Add or update user records in third-party plugins

Share This Page