Profile Page links

Discussion in 'Templates customization' started by sstark, Sep 6, 2010.

  1. sstark

    sstark New Member

    Joined:
    May 31, 2010
    Messages:
    28
    How do I change the "Save Profile" and "Back" buttons on the profile.php page to link to something other than the member.php page?
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Edit the button in the template amember/templates/profile.html

    David
  3. sstark

    sstark New Member

    Joined:
    May 31, 2010
    Messages:
    28
    David,

    Thank you for your response. I was able to change the Back button but not the Save Profile button. I cannot find where to change the link.

    Steve
  4. sstark

    sstark New Member

    Joined:
    May 31, 2010
    Messages:
    28
    Any ideas on how to have the save profile button link to a page other than member.php. I have messed with this for awhile now and cannot make any progress.

    Any ideas would be great. Thanks.
  5. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You need to change redirect in this function inside profile.php:
    PHP:
    function display_saved(){
        global 
    $t$db,$config;
        global 
    $_amember_id,$email_confirmation_required;
        
    $user $db->get_user($_amember_id);
        if(
    $email_confirmation_required){
            
    profile_send_verification_email($user);
        }
        
    html_redirect("member.php"false,
            
    _TPL_PROFILE_SAVED_TITLE_TPL_PROFILE_SAVED_SUCCESS);
    }

  6. sstark

    sstark New Member

    Joined:
    May 31, 2010
    Messages:
    28
    Thank you works great.

Share This Page