Author Topic: redirect to member.php?action=showprofile&user_id=id after edit the profile  (Read 23746 times)

0 Members and 1 Guest are viewing this topic.

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
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

Offline boatman9999

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
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?

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
well I go back again to member_editprofile.html thatīs why i'm asking

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
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")
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

TheOracle

  • Guest
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']."");


Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Thank you oracle this works right :D
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more