ElkArte Community

Project Support => Support => Topic started by: Jorin on June 24, 2016, 03:16:06 am

Title: Re-activate a deleted account
Post by: Jorin on June 24, 2016, 03:16:06 am
A user asked if it is possible to re-activate his deleted account. Is it?

If it is too much work I have no problem with creating a new account for him...
Title: Re: Re-activate a deleted account
Post by: ahrasis on June 24, 2016, 03:27:52 am
I think that is not possible.
Title: Re: Re-activate a deleted account
Post by: Jorin on June 24, 2016, 04:16:01 am
With SMF all posts of deleted users had the same (guest) ID, but the username was still in the database for each post, so it could made happen. Should be possible with ElkArte too, or not? I am not very firm with such things so I need a little help here.
Title: Re: Re-activate a deleted account
Post by: emanuele on June 24, 2016, 04:33:17 am
What you can easily do is create a new account and re-assign all the posts (like in SMF).
Title: Re: Re-activate a deleted account
Post by: Jorin on June 24, 2016, 04:44:31 am
Easily?   :-[   :D
Title: Re: Re-activate a deleted account
Post by: radu81 on June 24, 2016, 05:13:52 am
Quote from: emanuele – What you can easily do is create a new account and re-assign all the posts (like in SMF).

I did this once on my  elkarte forum and I confirm that it works. You will recover all post published, but not private messages and likes
Title: Re: Re-activate a deleted account
Post by: emanuele on June 24, 2016, 05:20:16 am
Yes, personal messages are wiped for good, and likes as well, when the account is deleted.
There is somewhere a discussion about "blocking" the account making it sort of guest, but not delete it in reality. It could be an idea, though personal messages should be deleted anyway IMO.
Title: Re: Re-activate a deleted account
Post by: radu81 on June 24, 2016, 05:26:23 am
Quote from: emanuele – There is somewhere a discussion about "blocking" the account making it sort of guest, but not delete it in reality.
This is similar to facebook accounts. Don't know if worth the effort to implement this into elkarte
Title: Re: Re-activate a deleted account
Post by: meetdilip on June 24, 2016, 05:28:32 am
Can help to deal with annoying members who have strange mood swings.
Title: Re: Re-activate a deleted account
Post by: emanuele on June 24, 2016, 06:38:10 am
Those are usually best left alone. lol
Title: Re: Re-activate a deleted account
Post by: Jorin on June 30, 2016, 02:00:13 am
Quote from: radu81 –
Quote from: emanuele – What you can easily do is create a new account and re-assign all the posts (like in SMF).

I did this once on my  elkarte forum and I confirm that it works.

Can anyone help me with the sql code?
Title: Re: Re-activate a deleted account
Post by: emanuele on June 30, 2016, 03:00:02 am
There is no code to do: you create an account from the admin panel, or the user registers an account (or it is already registered), then you go to:
admin > maintenance > forum maintenance > members
and there you have the "reattribute user posts" section, pick the option you prefer and click "reattribute".
Title: Re: Re-activate a deleted account
Post by: Jorin on June 30, 2016, 03:25:18 am
I didn't know there is such an option!  :o  It worked like a charm! Thank you very much! :)