Customising member.php

Discussion in 'Customization & add-ons' started by hilary, Jan 27, 2007.

  1. hilary

    hilary aMember Pro Customer

    Joined:
    Aug 22, 2006
    Messages:
    104
    Hi,

    Here's something Mark Joyner did with Simpleology that I think is really good.

    Everyone who logs in lands on basically the same page and sees the same menu:
    • free product
    • paid product 1
    • paid product 2

    But if you're a free member, you see:
    • free product - status: unlocked
    • paid product 1 - status: locked
    • paid product 2 - status: locked

    (So every time you log in, you're seeing these doors you could 'unlock' for yourself... I think this is brilliant.)

    And if you're a free member, then the menu items for paid products lead to a sales page. Presumably if you're a paid-up member of these products, the same menu items are 'unlocked' and lead to the content you've paid for.

    Is it possible to edit member.php so it'll do this?

    eg...
    to replace the drop-down box of available products with a clickable menu, with each linked to its own sales page not just signup.php?

    or...
    to create a menu with conditional statements to display one link for product 1 if you've bought it, and a different one if you haven't?
  2. hilary

    hilary aMember Pro Customer

    Joined:
    Aug 22, 2006
    Messages:
    104
    Just been thinking... :eek: ... some more.

    Since member.php already displays a linked list of all the products someone owns, the simplest way would be if you could add below that list code to the effect:

    'If they don't own paid product 1, display <a href="product1salespage.php">Paid product 1 (status: locked)</a>'
    (And if they do own it, don't display anything, as Amember's already given them the link.)

    You could do this for each paid product, so people would always see prominent menu links to what they hadn't yet bought.

    Does this 'if they don't own a specific product' code exist?
  3. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Use inside template member.html

    PHP:
    {if !in_array(1$smarty.session._amember_product_ids) }
    Paid Product #1 (status: Locked)
    {/if}

Share This Page