Help With This... Thanks

Discussion in 'Customization & add-ons' started by sarah101, Nov 13, 2008.

  1. sarah101

    sarah101 New Member

    Joined:
    Jul 1, 2007
    Messages:
    32
    I'm using Amember for selling a script that should cease to work (expire) when their membership expires.

    The theory is this: each member gets a unique number (8 digits) which they use to activate the script they purchase. The script queries amember occasionally to check member status using the unique number, and if their status has expired, it will cease to work.

    Can that be done? Has someone already done it? Any links to related info?

    Many thanks.
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    There is an XML RPC service built into aMember you can enable that would seem to serve this purpose. You would obviously need to encode the calls (zend, ioncube) so that folks could not just comment out the checks.
  3. sarah101

    sarah101 New Member

    Joined:
    Jul 1, 2007
    Messages:
    32
    Thanks, I've got most of it sorted. I querying the amember DB directly, how can I tell whether a member has expired or not?

    Thanks.
  4. miso

    miso aMember Pro Customer

    Joined:
    Aug 22, 2006
    Messages:
    543
    easy - check the "status" column in the amember_members table for each user.

    0 means pending, 1 means active, 2 means expired.
  5. sarah101

    sarah101 New Member

    Joined:
    Jul 1, 2007
    Messages:
    32
    Thanks! :)

Share This Page