Adding field / Protect folder

Discussion in 'Customization & add-ons' started by h.koenig, Feb 20, 2004.

  1. h.koenig

    h.koenig Guest

    Hi Alex,

    i have to questions, that are important to me:

    1. About ADDING FIELD
      If i choose to add a member field the form ask me to store the field-value in "SQL" or in a "Common field (default)".

      Where do Amember store the values in the "Common field" ?

      I am asking because I need the additional field-values in another application, so i need to have access to this values.

    2. About PROTECT FOLDER
      I have an application wich i want to "rent" to my customers (ASP). Every customer have different settings. These settings are stored in folders. Every time a new user is generated via Amember, a folder with the username of Amember should be generated and protected with an .htaccess file.

      What do you think is the best method to realize this szenario in Amember ?

    Thanks in advance for your time.

    Regards

    Hartmut
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Hi Harmut,
    0. please update amember/plugins/db/mysql/mysql.inc.php file.

    1. Common fields will be stored in "data" field of "members" table in serialized form (as arrray). SQL field will be separate field.

    2. No, protect folders is not for you. Use finish_waiting_payment hook (described in the manual). You can write the following:
    get payment record
    get member record (by $payment['member_id'])
    create a separate folder for member (with mkdir(), etc)
    protect it by writing .htaccess file into this folder (you can write line
    Require user alex , for example)
  3. h.koenig

    h.koenig Guest

    Thanks Alex ! *just diving into the "hooks"*

    Point 0 is unclear to me. I have the latest version of this file online, don't I ?!

    Regards

    Hartmut
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    OK, just warning about latest version.

Share This Page