The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Delete user and posts

2 posters

Go down

In progress Delete user and posts

Post by KarmaKafe November 23rd 2015, 9:43 am

If I delete a user, will all the users post be deleted as well? or what will happen?

And what do I do if I want to delete all of a users post? and can you select to delete a users quotes?

thank you

kind regard Julie
KarmaKafe
KarmaKafe
New Member

Posts : 8
Reputation : 1
Language : danish

http://karmakafe.forumnet.dk

Back to top Go down

In progress Re: Delete user and posts

Post by Ace November 23rd 2015, 9:47 am

KarmaKafe wrote:If I delete a user, will all the users post be deleted as well? or what will happen?

And what do I do if I want to delete all of a users post? and can you select to delete a users quotes?

thank you

kind regard Julie

Hi.

If you delete a user his messages won't be deleted. Basically, what will happen is a post like this one: https://help.forumotion.com/t94433-#608868 where the profile will be a Guest.

If you haven't deleted the user, we can automatically delete all of his posts by using an automatic JS. I can't, however, delete particularly only the quotes that he made.

Regards.
Ace
Ace
Forumember

Posts : 250
Reputation : 49
Language : Portuguese & English

http://ajuda.forumeiros.com/u39577

Back to top Go down

In progress Re: Delete user and posts

Post by KarmaKafe November 23rd 2015, 9:55 am

Ace wrote:
KarmaKafe wrote:If I delete a user, will all the users post be deleted as well? or what will happen?

And what do I do if I want to delete all of a users post? and can you select to delete a users quotes?

thank you

kind regard Julie

Hi.

If you delete a user his messages won't be deleted. Basically, what will happen is a post like this one: https://help.forumotion.com/t94433-#608868 where the profile will be a Guest.

If you haven't deleted the user, we can automatically delete all of his posts by using an automatic JS. I can't, however, delete particularly only the quotes that he made.

Regards.

Ok, and what is "automatic JS" is it something I can do myself or?
KarmaKafe
KarmaKafe
New Member

Posts : 8
Reputation : 1
Language : danish

http://karmakafe.forumnet.dk

Back to top Go down

In progress Re: Delete user and posts

Post by Ace November 23rd 2015, 3:06 pm

Hello,

Yes it is. Create a new HTML page and use the following code:

Code:
<script> var version_forum=0 </script>
<script>function killall(c,a,b){c=c.replace(/(^\s*|\s*$)/g,"");var e=["#page-body span.postdetails b a","#main-content .search .postbody h2.h3 a","#main-content .posthead h2 a","#main-content .postbody-head h3 a"][version_forum];a=a||0;b=b||9E15;$.get("/spa/"+encodeURIComponent(c),function(d){d=$(e,d).filter(function(){return/^\/t[1-9][0-9]*(p[1-9][0-9]*)?-[^#]*#[1-9][0-9]*$/.test($(this).attr("href"))}).each(function(){var a=+$(this).attr("href").substr($(this).attr("href").indexOf("#")+1);if(a>b){return b=0,!1}b=a;$.post("/post","p="+b+"&mode=delete&confirm=1")}).length;a+=d;b?0==d?0==a?alert(" There are no messages to be deleted "):alert(a+" message"+(1<a?"s":"")+" posted by "+c+" have been deleted"+(1<a?" ":"")):setTimeout(function(){killall(c,a,b)},500):alert("You are not authorized to use this tool")})};</script>
<input /><input type="button" onclick="killall(this.previousSibling.value)" value="Delete messages" />

var version_forum=0

0 = phpbb2
1 = phpbb3
2 = punbb
3 = invision

Replace it with your forum version!

Then, access this HTML page, type the username in it and press Delete. Depending on the volume of messages to be deleted, this code might take a while to process so just wait until the alert confirms that the messages have been deleted. Important to notice that you must be an administrator to erase every message (avoid conflicts with permissions). Smile

I recommend you to erase this HTML page when you're done. And in case you need it in the future, just create it again. Smile

Regards.
Ace
Ace
Forumember

Posts : 250
Reputation : 49
Language : Portuguese & English

http://ajuda.forumeiros.com/u39577

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum