button save insted of pedit redirect to another page

Hi, everybody, please help me. I need to be redirected to view profile, when I clic in save button insted of pedit.php (default redirection). How can I do that?

 

Best regards. 

 
Quote · 16 Mar 2012

Do you have a screen capture of the page that has "save" button?

What page are you "saving"?

 

Hi, everybody, please help me. I need to be redirected to view profile, when I clic in save button insted of pedit.php (default redirection). How can I do that?

 

Best regards. 

 

 

Updating my BoonexNerd.net site.
Quote · 16 Mar 2012

Hi, thanks for the reply for my question, but can you please tell me,  In the page pedit.php (this page is the place where the users can to modify theirs profiles), When I clic on the save button from page of edit profile, I need to be redirected to another page like profile.php.

Thanks, again.

 

 

Do you have a screen capture of the page that has "save" button?

What page are you "saving"?

 

Hi, everybody, please help me. I need to be redirected to view profile, when I clic in save button insted of pedit.php (default redirection). How can I do that?

 

Best regards. 

 

 

 

Quote · 16 Mar 2012

Open up pedit.php

Look for (on or about line 141):

 if (!$this -> bAjaxMode or $this->bForceAjaxSave) {

Then add this:

                if (!$this -> bAjaxMode or $this->bForceAjaxSave) {

   $this -> saveProfile();

   $sStatusText = '_Save profile successful';

 

//jt note - redirect after save START

header("Location: index.php"); //jt note - put the page where you want to redirect to

exit;

//jt note - redirect after save END

                }

}

}

Updating my BoonexNerd.net site.
Quote · 16 Mar 2012

 Thank you so much for the answer, It works!!

 

Open up pedit.php

Look for (on or about line 141):

 if (!$this -> bAjaxMode or $this->bForceAjaxSave) {

Then add this:

                if (!$this -> bAjaxMode or $this->bForceAjaxSave) {

   $this -> saveProfile();

   $sStatusText = '_Save profile successful';

 

//jt note - redirect after save START

header("Location: index.php"); //jt note - put the page where you want to redirect to

exit;

//jt note - redirect after save END

                }

}

}

 

Quote · 16 Mar 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.