Preserve comments of deleted members

Hi, 

 

I seem to have had this working a few months ago. Can't really remember changing anything tthough, just thought it was typical... but how can I make it so that any comments on videos and photos are left behind when a user deregisters or is deleted? 

 

I can see old comments like this from months ago and they show up as [deleted member] (the anonymous lang key which I set for this) but I have no idea how I got them to stay...

 

Would love someone to point me in the right direction as I know it works...

 

Thanks!

Quote · 18 Oct 2012

Does anyone recall a thread about this?

Quote · 22 Oct 2012

I would like to have this as well.  Hunting for Dolphin information is worst than a needle in a haystack.

Geeks, making the world a better place
Quote · 22 Oct 2012

It is pretty tricky sometimes eh?

Quote · 23 Oct 2012

no thoughts on this one yet eh? Is there not a class that has a list of actions to perform when a user unregistered or is deleted?

Quote · 26 Oct 2012

I had a test user to comment on this.  I guess there are two schools of thought on this; that when a user quits all of their content, including comments, should be deleted.  The other is that to preserve the continuity of the comments; and how does this affect replies left for comments that the deleted user left; are they removed as well, is that comments that are part of the public stream should be left intact.  Of course the user's profile comments are excluded since that is part of the user's profile page.

Geeks, making the world a better place
Quote · 26 Oct 2012

Ideally it would be like phpbb and when you delete someone you would have the option as to whether their stuff was deleted too. That way if it was a spammer you could choose yes and if it was some other reason no. 

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 27 Oct 2012

 

I had a test user to comment on this.  I guess there are two schools of thought on this; that when a user quits all of their content, including comments, should be deleted.  The other is that to preserve the continuity of the comments; and how does this affect replies left for comments that the deleted user left; are they removed as well, is that comments that are part of the public stream should be left intact.  Of course the user's profile comments are excluded since that is part of the user's profile page.

 I'm with the 2nd school of thought :) While I agree that the user show be able to remove all their content, if they've commented on other content, their interactions should remain, but be left anonymous or a specific indicator that this comment belongs to a user that has been deleted/unregistered.

 

What frustrates me... is that I somehow has this working just fine... a long time ago... and I can't recall doing anything explicit to make this happen... see attached screenshot

 

preserved.jpg · 64.3K · 182 views
Quote · 27 Oct 2012

 

 

 I'm with the 2nd school of thought :) While I agree that the user show be able to remove all their content, if they've commented on other content, their interactions should remain, but be left anonymous or a specific indicator that this comment belongs to a user that has been deleted/unregistered.

 

What frustrates me... is that I somehow has this working just fine... a long time ago... and I can't recall doing anything explicit to make this happen... see attached screenshot

 

I wonder if it was something that was in previous releases and it changed during an an upgrade?   At any rate, perhaps someone will come along that has some knowledge on this to help out.

Geeks, making the world a better place
Quote · 27 Oct 2012

I've never upgraded. Started at 7.0.9 from the get go...

Quote · 27 Oct 2012

 

I've never upgraded. Started at 7.0.9 from the get go...

Then I would look at what mods you have added; then perhaps upgraded.  Or, it may have been a database thing that changed.  I know that a member left my test site and all comments they left on others' profile comments were deleted as well; oh, I am on 7.0.9 as well.

Geeks, making the world a better place
Quote · 29 Oct 2012

Well, I always hated the way Fb deletes comments/posts when the user is gone and breaking the threads and any meaningful dialogue, apart from the messages where they at least left the previous messages (probably because they didn't know how to delete them as well lol?).

 

So IF anyone knows how to keep deleted comments there perhaps with the label deleted user, I would kiss and wash your feet... maybe... :))

 

I had a test user to comment on this.  I guess there are two schools of thought on this; that when a user quits all of their content, including comments, should be deleted.  The other is that to preserve the continuity of the comments; and how does this affect replies left for comments that the deleted user left; are they removed as well, is that comments that are part of the public stream should be left intact.  Of course the user's profile comments are excluded since that is part of the user's profile page.

 

Quote · 30 Oct 2012

bumping this. Still trying to figure this one out!

 

Anyone?

Quote · 22 Nov 2012

It would help to know the code that does the job of removing a member and thus deleting the comments.  Then we could hack the code to either skip the part where it removes the comments or create a check for if we want to do that or not..  That would be a start.

Geeks, making the world a better place
Quote · 23 Nov 2012

It would be nice eh...

Quote · 5 Dec 2012

In 7.0.9 what you guys and gals are looking for is in /inc/admin.inc.php ....

 

Search for "function profile_delete($ID)" and then look for this:

 

 

    // delete all comments in all comments' systems, this user posted

    $oCmts->onAuthorDelete($ID);

 

If you delete those two lines all the comments should stay.. I'm not sure what they will show for the username or avatar though. It might be the same for 7.1 but I'm not 100% positive.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 5 Dec 2012

mscott, THANKS! I commented out the ONE line:

    //$oCmts->onAuthorDelete($ID);

And when the user is deleted... their comments stayed on the video's and photos (don't use the other's but I'm assuming they would there as well). The avatar that is used for them is the visitor_small.gif.
 
Thanks again!
Quote · 6 Dec 2012

Great; now if someone could help us with the collapsed replies.....

Geeks, making the world a better place
Quote · 6 Dec 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.