DeeEmm

Pragmatism in code

Waxing lyrical about life the universe and everything software related since lunchtime 2006.

Dolphin - Redirect users after editing profile

If you would like to redirect users to a different page after editing their profiles, then make the following changes.

Edit

pedit.php

Find...

if( empty( $this -> aErrors[0] ) and empty( $this -> aErrors[1] ) ) { // do not save in ajax mode
                if (!$this -> bAjaxMode or $this->bForceAjaxSave) {
        $this -> saveProfile();
        $sStatusText = '_Save profile successful';

Add underneath...

header("Location: index.php");
exit;

 

It's a bit of a hack, but if the profile save is successful, then it will redirect the user to the index page.

Simply change the page to suit your needs.

/DM

Dolphin - Hide Menu Bar from Guests
Dolphin - Auto membership level on join

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Guest
Saturday, 18 November 2017
If you'd like to register, please fill in the username, password and name fields.

Captcha Image