Profile Info Editing

This may be a silly question, but how do I get the system to auto-return to the user's profile after they edit the info?  I see under "Moderation" in "Advanced Settings" a checkbox field called "Preserve Profile Status After Profile Info Editing".  It is selected, but I'm not sure what it means.  Thanks for any clarification.

Quote · 9 Nov 2018

Both questions are far from being silly.

I can't answer the first one but also believe it's necessary.

This well hidden document may help you with the second question:

https://www.boonex.com/trac/dolphin/wiki/DolphinAdminMembers

My interpretation is:

If the Preserve Profile status is unticked, any changes a member makes to their profile will be bought to the attention of Admin. Their Status will also change from Confirmed to Approval, giving Admin a chance to read the profile and deal with it as necessary. It will be up to admin to accept or reject the changes. I'm guessing the original profile will continue to appear until the changes are approved. That happens on another site I belong to and it's a great way to ensure members don't fill their profile with spam.

If Preserve Profile Status is ticked, members can make changes to their profile whenever they please and Admin isn't notified. In other words, the profile status will remain Confirmed. This is fine for sites where spam or abuse isn't an issue and members are all trusted.

Quote · 10 Nov 2018

For #1 once you edit and save, it presents you with a message that the update was successful and then leaves you on the edit page.  If you want it to redirect back to the profile page after making an edit, that will require custom code changes.

Geeks, making the world a better place
Quote · 10 Nov 2018

Thank you johnk42 and geek_girl for your explanations.  Your explanation, geek_girl, for question #1 is what I dreaded!  I'm not an experienced coder, but it seems like this should be a simple fix.  Do you know what file/files I should look at for making the possible adjustments?

Quote · 10 Nov 2018

 

Thank you johnk42 and geek_girl for your explanations.  Your explanation, geek_girl, for question #1 is what I dreaded!  I'm not an experienced coder, but it seems like this should be a simple fix.  Do you know what file/files I should look at for making the possible adjustments?

Look at pedit.php; it is located in the root of the site.  Just keep in mind that you don't want to redirect if there are errors ; so look at tying into the successful edit part of editing the profile.

Geeks, making the world a better place
Quote · 11 Nov 2018

Thanks geek_girl!  I'll give it a go and let you know how it works out.

Quote · 11 Nov 2018

 

Hello Stevexyz!

 

I confirm that info from johhn42 and geek girl is correct. Regarding your intention of the profile's editing, the easiest way to do it - add your own redirect to the file pedit.php, right after the following lines:

 

 $this -> oPC -> updateProfile( $this -> aProfiles[0]['Couple'], $aUpd );

}


Just add there something like:


if ($bResult)

{

header ('Location:your URL');

}

Quote · 12 Nov 2018

Got it LeonidS...  Thanks for the details!

Quote · 14 Nov 2018
 
 
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.