adding status to member.html page

Discussion in 'Templates customization' started by roni, Nov 28, 2004.

  1. roni

    roni Guest

    hi
    i would like to add the column " status " in the user_payment.html " to member.html so user would see clearly their satus in red if expired subscription, or at leat make the period that exired in the member.html be in red when exipred. any one please can help
    roni

    never mind i did it, thanks
  2. jasondavis

    jasondavis New Member

    Joined:
    Aug 1, 2003
    Messages:
    85
    good Idea can you share how you did it with us?
  3. roni

    roni Guest

    from admin\user_payments.html copy code from status column

    {if $p.completed} {if $p.expire_date >= date('Y-m-d') and $p.begin_date <= date('Y-m-d') } Active {elseif $p.expire_date < date('Y-m-d') } Expired {elseif $p.begin_date > date('Y-m-d') } Future {/if} {else} Not-Paid {/if}

    and past it next to code in date column in the member.html , make sure there is space between the two codes, i did it that way.

    best regards
    http://www.abcapitalllc.net/
  4. jasondavis

    jasondavis New Member

    Joined:
    Aug 1, 2003
    Messages:
    85
    thanks, I edited to make the row of data turn red if expired instead of a new column

Share This Page