Simple change to /member.php page?

Discussion in 'Templates customization' started by ibcodex, May 12, 2011.

  1. ibcodex

    ibcodex New Member

    Joined:
    Jun 10, 2010
    Messages:
    4
    Hi,

    I'd like to change a link which appears on the "Your Membership Information" (member.php) page but can't find where I make the change.

    The link I want to change appears under the "Useful Links" section.

    I want to change the "Affiliates area" URL link from /aff_member.php to a purpose built page but How do I do it????

    Can't seem to find where it directs to the current link anywhere.

    Hope someone can help?

    Thanks.
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    What version of amember are you using?

    If before 3.2.x check out the templates at:
    amember/templates/member.html

    however- for the affiliate link, thats generated as part of the tabber section i think in 3.2.3.

    David
  3. ibcodex

    ibcodex New Member

    Joined:
    Jun 10, 2010
    Messages:
    4
    Hi,

    Thanks for the reply.

    Version I am using is 3.1.9PRO.

    There is nothing in member.html that shows a link to URL aff_member.php - unless it pulls it in from somewhere.

    I just need to locate where the aff_member.php URL link is and the change it to another URL be for the life of me can't see at all where I need to make the change!!

    Anyone know where these "Useful Links" URLs on the "Your Membership Information" (member.php) page are loacted?????
  4. ibcodex

    ibcodex New Member

    Joined:
    Jun 10, 2010
    Messages:
    4
    On further investigation I have found this snippet of code in member_main.html which I think is the code I need to change:-

    Code:
    <h3>#_TPL_MEMBER_USEFUL_LINKS#</h3>
    
    <ul>
    
    <li><a href="{$config.root_url}/logout.php">#_TPL_MEMBER_LOGOUT#</a></li>
    
    <li><a href="{$config.root_url}/profile.php">#_TPL_MEMBER_CH_PSWD#</a></li>
    
    {foreach from=$member_links item=t key=u}
    
    <li><a href="{$u|escape}">{$t}</a></li>
    
    {/foreach}
    
    </ul>
    Looks as though it is pulling the information I need to change from $member_links - but where does that come from so I can locate and change the URL I need to?

    Anyone ideas?
  5. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    To change affiliate links you need to edit aff.inc.php and change this fucntion:
  6. ibcodex

    ibcodex New Member

    Joined:
    Jun 10, 2010
    Messages:
    4

Share This Page