4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: ascanio on June 01, 2005, 08:28:16 PM

Title: redirect to member.php?action=showprofile&user_id=id after edit the profile
Post by: ascanio on June 01, 2005, 08:28:16 PM
hi every one is there any way to make a redirect when a user edit his proflie and when he finish editing his profile and press the button go to his profile or member.php?action=showprofile&user_id={user_id}

thanks
Title: Re: redirect to member.php?action=showprofile&user_id=id after edit the profile
Post by: boatman9999 on June 02, 2005, 08:19:51 PM
Hi,

After editing my profile and pressing the button I already automatically go back to the 'user profile' page, so I do not understand your problem.

Can you be please be more specific in what you are trying to do?
Title: Re: redirect to member.php?action=showprofile&user_id=id after edit the profile
Post by: ascanio on June 02, 2005, 09:10:09 PM
well I go back again to member_editprofile.html thatīs why i'm asking
Title: Re: redirect to member.php?action=showprofile&user_id=id after edit the profile
Post by: V@no on June 03, 2005, 01:55:21 AM
mmm....how about replacing in member.php
Code: [Select]
  $action = "editprofile";with:
Code: [Select]
  $action = "showprofile";
  $user_id = $user_info['user_id'];
(there are should be two instances of such line, first one is what u need to replace, the second instance will affect "change password")
Title: Re: redirect to member.php?action=showprofile&user_id=id after edit the profile
Post by: TheOracle on June 03, 2005, 07:56:21 PM
Quote

hi every one is there any way to make a redirect when a user edit his proflie and when he finish editing his profile and press the button go to his profile or member.php?action=showprofile&user_id={user_id}


In your member.php file,

find :

Quote

} else {
    $update_process = 1;


add right above that line :

Code: [Select]

header("Location: member.php?action=showprofile&user_id=".$user_info['user_id']."");


Then, find :

Quote

$msg = $lang['update_password_success'];
$user_info = $site_sess->load_user_info($user_info['user_id']);


add below :

Code: [Select]

header("Location: member.php?action=showprofile&user_id=".$user_info['user_id']."");

Title: Re: redirect to member.php?action=showprofile&user_id=id after edit the profile
Post by: ccsakuweb on May 13, 2007, 11:10:09 AM
Thank you oracle this works right :D