1
Anonymous
Delete all posts/comments from user
  • 2008/12/10 19:02

  • Anonymous

  • Posts: 0

  • Since:


Just an idea - stems from my just having deleted another 40-odd spam posts about shoes. Why is it alway f*&$ing shoes? Grrrr!!

Anyway..... please can we have a core function that will delete all posts/comment made under a specific uid?

One button.....ZAP!!

2
trabis
Re: Delete all posts/comments from user
  • 2008/12/10 19:40

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I agree in part. Some times users request account deletion and I have to ask them to delete their news entries, photos etc first. News have copyrights and I cannot have them as 'anonymous'.

Problem is that I should not do it in database. News have comments, tags, files, notifications, etc associated and deleting just the news items would leave a lot of trash.

I think that modules should provide an 'on_user_delete' function just has they do for 'on_install', 'on_uninstall'

But, this is not mandatory to be included in the core. A module could be built for this propose. I have the opinion that core should only handle what a module can´t.

3
Anonymous
Re: Delete all posts/comments from user
  • 2008/12/10 19:45

  • Anonymous

  • Posts: 0

  • Since:


Quote:
trabis wrote:

I think that modules should provide an 'on_user_delete' function just has they do or 'on_install', 'on_uninstall'

But, this is not mandatory to be included in the core. A module could be built for this propose. I have the opinion that core should only handle what a module can´t.


I like this idea - much more elegant than my "Nuke the Ba$tard$" approach

4
hipoonios
Re: Delete all posts/comments from user
  • 2010/1/5 14:45

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


+1 on this one. At least a function to select which comments to delete in one go.

Now i'm going to delete 300 comments one by one. Will take a hour or so :/

5
pinchecl
Re: Delete all posts/comments from user
  • 2010/1/5 15:00

  • pinchecl

  • Friend of XOOPS

  • Posts: 193

  • Since: 2005/4/22


I just had to delete spam comments. So I did that in the database by searching the comments related to the userid, select them all and delete them. After that I searched for newsitems releated to the id (none) and then deleted the useraccount. So, some work but not the one by one proces...

6
recupsoft
Re: Delete all posts/comments from user
  • 2010/1/5 15:15

  • recupsoft

  • Friend of XOOPS

  • Posts: 151

  • Since: 2003/10/30


I think it should be a core function (user management)
or at least a module
to erase all the comments from the selected user in all the modules.

I found such spams from registered "users" into all comment sections available (News, SmartSection, MyDownloads, MyLinks...) even with Protector 3.50 (but still with XOOPS 2.0.x not yet 2.4.x).

7
ghia
Re: Delete all posts/comments from user
  • 2010/1/5 19:18

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


The core can't always provide for this user deletion, because every module has its own database tables where info posted by the user is stored.
Comments are a general function and there it could.

I will think about some PHP code to clean up comments per user.

8
mariane
Re: Delete all posts/comments from user
  • 2010/1/5 19:36

  • mariane

  • Theme Designer

  • Posts: 649

  • Since: 2008/1/11


Quote:
Now i'm going to delete 300 comments one by one. Will take a hour or so :/

did you try this module?
https://xoops.org/modules/news/article.php?storyid=5134

this hack is modified by Mowaffak Ali (Arabxoops)http://www.arabxoops.com/uploads/comments_delete.zip
and tested on XOOPS 2.40
the orginal hack is founded by this website
http://www.bluemooninc.biz/~xoops2/modules/mydownloads/singlefile.php?cid=2&lid=53

try them please and let us know the result

9
hipoonios
Re: Delete all posts/comments from user
  • 2010/1/5 19:59

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


I first tried the Tools module. But that was not what I was looking for. It's only good if you have many comments to approve.

But the comments_delete.zip hack was just what I wanted

Thank You mariane!

10
onasre
Re: Delete all posts/comments from user
  • 2010/1/5 20:33

  • onasre

  • Not too shy to talk

  • Posts: 150

  • Since: 2006/8/12


Umm I might Can add that To My next Release of Tools for XOOPS Module . that i Released last Month .

Login

Who's Online

192 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 192


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits