How to let the user delete all his posts including his account?

Technical Support
  • Hello,

    when a user deletes his account, his posts still are available.

    ...That can cause problems with the GDPR and especially when the user could theoretically post political and personal data which (especially in Germany) can cause trouble - it would be better if deleted an account, would also delete all his posts. How would that be possible?

  • For a user to delete all content, is not possible. They will need to contact an administrator and you can delete their account from either their account page or ACP -> Manage -> Users.

  • @julian Would it be possible to let a user delete his own account with the posts? Can't it just be just a small js function name change on the Delete account button?

    According the the GDPR and just usability wise, it would be better if the user could delete his posts.

    I'd appreciate it, if you or someone else sends a changed JS file if you got time - Thanks!

Suggested Topics

  • 0 Votes
    4 Posts

    @julian thanks for your reply. I will try to apply your PR directly and see the result.

  • 0 Votes
    2 Posts

    We don't support nested objects. If you really need to store as json strings and parse on the way out.

  • 1 Votes
    5 Posts

    I just managed to make a quick hack which achieves the effect that I wanted. I added the following to the Custom Javascript tab in ACP:

    function showreplies() { $('li[component="post"]').has('a[component="post/parent"]').addClass('hidden'); $('[component="post/replies/open"]').click(); } function noreply(event, data){ if(data.posts.length==1 && data.posts[0].toPid) { // this is a reply to some post var el = $('li[data-pid="'+data.posts[0].pid+'"]'); // newly added post if(el.parent('div[component="post/replies"]').length===0){ // added as a standalone post el.addClass('hidden'); } } $('div[component="post/replies"]').find('a[component="post/reply"], a[component="post/quote"]').addClass('hidden'); } $(window).on('action:ajaxify.end', showreplies); $(window).on('action:posts.loaded', noreply);

    The first line in function showreplies hides those posts which are replies to previous posts, and the second line opens up the replies below the relevant posts. (@baris This was my attempt before I read your answer. Thanks for the pointer to the code! I will try that out).

    I added the handler for action:posts.loaded in order to

    Eliminate Reply and Quote buttons for the replies in order not to generate higher levels of nesting (this is ok for me) After adding a reply to a post, by default it is also added at the end - in order to avoid that I set it to hidden. This does not work so well as the page gets scrolled to the top after that.. - I am not quite sure how to fix it. If I figure it out I'll make an update..
  • 0 Votes
    8 Posts

    @shery11 not yet 🙂 how about you ?

  • 0 Votes
    5 Posts

    @psychobunny just a surguestion. But would if be possible of having this(all the possible config stuff) all documented in the documentation?