Pragmatism in code

Pragmatism in code

Waxing lyrical about life the universe and everything software related since lunchtime 2006.
1 minute reading time (109 words)

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.




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");


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.


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

Related Posts



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

Captcha Image