Showing only the current payment on member.html

Discussion in 'Templates customization' started by GailCardell, Feb 17, 2005.

  1. GailCardell

    GailCardell New Member

    Joined:
    Oct 29, 2004
    Messages:
    6
    Does anyone know how to change the code on the template page member.html to show only the current payment?
    I don't want to remind my members how many months they have been with me!!
    The page currently shows each months membership and it's duration, the current membership month is in bold.
    Thanks for your help.
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    replace in amember/templates/member.html

    PHP:
    <tr {if $p.is_active}style='font-weight: bold;'{/if}>
        <
    td>{lookup arr=$products key=$p.product_id}
        {if 
    $p.cancel_url}<br><a href="{$p.cancel_url}target=top>Cancel</a>{/if}
        {if 
    $p.data.CANCELLED}<br><b><small><font color=red>CANCELLED</font></small></b>{/if}
        </
    td>
        <
    td nowrap>{$p.begin_date|date_format:$config.date_format}</td>
        <
    td nowrap>{if $p.expire_date eq "2012-12-31"} - {else}
             {
    $p.expire_date|date_format:$config.date_format}{/if}</td>
        <
    td>
            {
    lookup arr=$paysystems key=$p.paysys_id}
        </
    td>
        <
    td align=right>{$config.currency|default:"$"}{$p.amount}&nbsp;</td>
    </
    tr>
    to
    PHP:
    {if $p.is_active}
    <
    tr style='font-weight: bold;'>
        <
    td>{lookup arr=$products key=$p.product_id}
        {if 
    $p.cancel_url}<br><a href="{$p.cancel_url}target=top>Cancel</a>{/if}
        {if 
    $p.data.CANCELLED}<br><b><small><font color=red>CANCELLED</font></small></b>{/if}
        </
    td>
        <
    td nowrap>{$p.begin_date|date_format:$config.date_format}</td>
        <
    td nowrap>{if $p.expire_date eq "2012-12-31"} - {else}
             {
    $p.expire_date|date_format:$config.date_format}{/if}</td>
        <
    td>
            {
    lookup arr=$paysystems key=$p.paysys_id}
        </
    td>
        <
    td align=right>{$config.currency|default:"$"}{$p.amount}&nbsp;</td>
    </
    tr>
    {/if}

Share This Page