Redirect after avatar

I tried this for redirecting after adding avatar but it did not work for me. Using 7.1.4, has anyone figured out how to redirect after avatar upload?

http://www.boonex.com/forums/topic/Redirect-after-Avatar-upload.htm

It is automatically redirecting instead of displaying the avatar page

caredesign.net
Quote · 27 Jan 2014

I have this code in a php block and it works as follows. After a person adds an avatar successfully, they get a message with a link to click to go to their account page. How can I put this in a message box that appears at the top like the image attached

after avatar upload.png · 23.1K · 95 views
caredesign.net
Quote · 27 Jan 2014

Scratch all of this, I found out how to get the redirect to work


        if (isset($_POST['set_avatar'])) {
            if (!$this->isAllowedAdd ())
                $aVars = array ('msg' => _t('_bx_ava_msg_access_denied'));
            elseif (!$this->_cropAvatar ())
                $aVars = array ('msg' => _t('_bx_ava_set_avatar_error'));
                else {
header("Location: ../../member.php");
}
            if (!empty($aVars))
                echo $this->_oTemplate->parseHtmlByName ('error_plank', $aVars);
        }

for some reason, I had to put deano's redirect code in a different place.

caredesign.net
Quote · 27 Jan 2014

Someone mentioned on the other post that it does not work if they pick one of the built in avatars instead of uploading one.

I never got back to it to rework it.

https://www.deanbassett.com
Quote · 28 Jan 2014

in my instance, I am not using the default avatars, but I did some code changes in order to change the way the cropping layout is. So, I am guessing that is why things were screwey. But just as an off chance it was for an earlier version of dolphin, as I am using 7.1.4, then someone else may take advantage of your expertise. A lot of great tips and ideas get lost in the shuffle.Cool

caredesign.net
Quote · 28 Jan 2014
 
 
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.