PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old November 18th, 2010, 08:45 PM   #1 (permalink)
Member
Verified Customer
 
Swanny's Avatar
 
Join Date: Jun 2002
Location: Western Canada
Posts: 382
How to delete all comments from a user [spam]

This happens from time to time on my PP Pro installation (phpBB 3 forum integration).

A spammer signs up, doesn't actually post in my forums. But he goes into the photo galleries and spams up 50 or more photos with the same spam comment, complete with spammy links.

Now, here's an example that was brought to my attention today.

One of the 50 comments he's left: Smiling at you - Ford F150 Photos

His PP profile page: Member Profile - Ford F150 Photos

Now.... here's the problem. I click on the PP admin link on his PP profile page, the link titled Delete All User Photos. Now, he doesn't have any photos, but I am able to click in there where I check off Check to delete all comments by this user and click DELETE PHOTOS button.

The problem is it doesn't actually delete his comments. Remember he doesn't have any photos uploaded, but I still expect it to delete his comments, which it doesn't do.

So now I have to manually click each of the 50 photos, and manually delete each comment.

So....
1) Is this normal behavior?
2) Why doesn't the Check to delete all comments by this user option work in this case?
3) Do you guys have any plans in the future to enable spam checking through something like Akismet (available in WordPress)?
4) Can I just delete the comments directly from the PP database, something like DELETE FROM pp_comments WHERE username = 'aguo'? Or does that have negative consequences somewhere else in the DB? That would save me a lot of time!
__________________
My PhotoPost Installations are at:
FordF150.net - Ford Truck Enthusiast Site
FordFlex.net - Ford Flex Enthusiast Site
FordTaurus.net - Ford Taurus Enthusiast Site
FordFusion.net - Ford Fusion Enthusiast Site
Swanny is offline   Reply With Quote
Old November 18th, 2010, 09:24 PM   #2 (permalink)
Member
Verified Customer
 
Swanny's Avatar
 
Join Date: Jun 2002
Location: Western Canada
Posts: 382
I just thought I'd post a quick followup. This issue is not yet resolved. However, I was poking around and saw that you suggested to another PP owner who had a similar problem to upload one photo as that user, and then go back and click the Delete Photos/Comment link.

So... I uploaded a photo as that user who did the spamming. Then I went in and clicked the same Delete link to delete all photos, checked off the box to delete comments... AND it did delete the photos, but did not delete a single comment made by the user.

So now it looks like there might be a bug....?
__________________
My PhotoPost Installations are at:
FordF150.net - Ford Truck Enthusiast Site
FordFlex.net - Ford Flex Enthusiast Site
FordTaurus.net - Ford Taurus Enthusiast Site
FordFusion.net - Ford Fusion Enthusiast Site
Swanny is offline   Reply With Quote
Old November 18th, 2010, 09:26 PM   #3 (permalink)
Member
Verified Customer
 
Swanny's Avatar
 
Join Date: Jun 2002
Location: Western Canada
Posts: 382
OK well I did some poking around in the database. Although it looks like I can use a simple DELETE SQL statement in the comments table, that will not update the pp_photos table. There are two fields (numcom, lastposter) that will be incorrect if I do a manual delete on the comments table.

Help please.
__________________
My PhotoPost Installations are at:
FordF150.net - Ford Truck Enthusiast Site
FordFlex.net - Ford Flex Enthusiast Site
FordTaurus.net - Ford Taurus Enthusiast Site
FordFusion.net - Ford Fusion Enthusiast Site
Swanny is offline   Reply With Quote
Old November 18th, 2010, 09:47 PM   #4 (permalink)
Member
Verified Customer
 
Swanny's Avatar
 
Join Date: Jun 2002
Location: Western Canada
Posts: 382
OK well I can't wait too long. So I went ahead and manually deleted 46 of the 48 spam comments. I left a couple there so you can see what I'm talking about (if it helps).
__________________
My PhotoPost Installations are at:
FordF150.net - Ford Truck Enthusiast Site
FordFlex.net - Ford Flex Enthusiast Site
FordTaurus.net - Ford Taurus Enthusiast Site
FordFusion.net - Ford Fusion Enthusiast Site
Swanny is offline   Reply With Quote
Old November 19th, 2010, 08:17 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
to my knowledge a user needs to have photos to delete comments as thats what the admin thing is used for

anyway if your server has gd2 which most have you can use CAPTCHA images for guests to post.

You can run in admin scan database the ability to rebuild cat counts to update anything you deleted manually.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 20th, 2010, 02:08 PM   #6 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2006
Posts: 28
Can someone give me the SQL for this? I have the same problem. Probably the same spammer. There's an "approve all" in the comments queue in photopost admin cp, but no "remove all" option.
tonmo is offline   Reply With Quote
Old November 20th, 2010, 02:23 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
There is a remove link for every comment displayed there just no mass way to do it.

You can not formulate some query without knowing what your trying to delete from who.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 20th, 2010, 02:29 PM   #8 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2006
Posts: 28
I know the usernames of two users I banned. I know I can delete one at a time, but these two users spammed tons of comments selling shoes, electronics, etc. So is there a query you can suggest that would delete all posts from a specific user?
tonmo is offline   Reply With Quote
Old November 20th, 2010, 03:24 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
well something like this

DELETE FROM pp_comments WHERE username='somename';
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
delete all comments made by a specific user boatdesign Photopost Pro How Do I...? 14 November 4th, 2012 01:47 PM
Spam comments and stats Iann Photopost Pro How Do I...? 5 February 16th, 2009 07:17 AM
Delete all comments by specific user? BobHarbison Photopost Pro How Do I...? 8 May 7th, 2008 05:07 PM
5.5 Delete all Photos & Comments of a user pengrus Photopost Pro Bug Reports 2 November 1st, 2006 06:45 PM
"Delete All User Photos" doesnt remove comments mtha Photopost Pro Bug Reports 10 November 24th, 2005 12:45 AM


All times are GMT -5. The time now is 08:17 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0