4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started 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
-
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?
-
well I go back again to member_editprofile.html thatīs why i'm asking
-
mmm....how about replacing in member.php
$action = "editprofile";
with: $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")
-
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 :
} else {
$update_process = 1;
add right above that line :
header("Location: member.php?action=showprofile&user_id=".$user_info['user_id']."");
Then, find :
$msg = $lang['update_password_success'];
$user_info = $site_sess->load_user_info($user_info['user_id']);
add below :
header("Location: member.php?action=showprofile&user_id=".$user_info['user_id']."");
-
Thank you oracle this works right :D