Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4220
Latest: agolac
New This Month: 1
New This Week: 1
New Today: 0
Stats
Total Posts: 42854
Total Topics: 7464
Most Online Today: 86
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 44
Total: 44

Author Topic: Delete al images but member specific...  (Read 6194 times)

0 Members and 1 Guest are viewing this topic.

Offline MoreBloodWine

  • Member
  • *
  • Posts: 48
    • View Profile
Delete al images but member specific...
« on: July 27, 2008, 05:32:07 pm »
How can I delete all images posted by a specific member ?

Offline MoreBloodWine

  • Member
  • *
  • Posts: 48
    • View Profile
Re: Delete al images but member specific...
« Reply #1 on: July 27, 2008, 05:45:47 pm »
I found the list files thing but I dont wana have to delete a ton of pictures one by one ;-/

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16257
    • View Profile
Re: Delete al images but member specific...
« Reply #2 on: July 27, 2008, 06:09:18 pm »
No easy way you would have to go though the database.

in the gallery_pic table delele all pictures where the id_member = the member id.

Highly recommend making database backups before altering information in the database.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline MoreBloodWine

  • Member
  • *
  • Posts: 48
    • View Profile
Re: Delete al images but member specific...
« Reply #3 on: July 27, 2008, 10:34:24 pm »
No easy way you would have to go though the database.

in the gallery_pic table delele all pictures where the id_member = the member id.

Highly recommend making database backups before altering information in the database.
Any chance on a future update where multiome deletions could be done by say a checkbox method like with posts and stuff.

Offline MoreBloodWine

  • Member
  • *
  • Posts: 48
    • View Profile
Re: Delete al images but member specific...
« Reply #4 on: August 01, 2008, 09:19:18 pm »
No easy way you would have to go though the database.

in the gallery_pic table delele all pictures where the id_member = the member id.

Highly recommend making database backups before altering information in the database.
The id of the member is 44

Coul you write a query for me to run please, would make this alot easier.

Edit: *Points up to his last reply...*

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16257
    • View Profile
Re: Delete al images but member specific...
« Reply #5 on: August 01, 2008, 09:22:39 pm »
DELETE FROM smf_gallery_pic where ID_MEMBER = 44
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline MoreBloodWine

  • Member
  • *
  • Posts: 48
    • View Profile
Re: Delete al images but member specific...
« Reply #6 on: August 09, 2008, 10:06:59 pm »
DELETE FROM smf_gallery_pic where ID_MEMBER = 44
Thx, now that just means that I have to delete the physical pictures themselves.

Edit: Before I run this and make a mess of things is there a way to make that query category specific ?

Basicaly all I want to do is delete all pictures by member 44 but ONLY in category 2
« Last Edit: August 09, 2008, 10:11:24 pm by MoreBloodWine »

Offline mashby

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • ChopPix.com
Re: Delete al images but member specific...
« Reply #7 on: August 09, 2008, 10:32:59 pm »
DELETE FROM smf_gallery_pic where ID_MEMBER = 44 AND ID_CAT = 2

Offline MoreBloodWine

  • Member
  • *
  • Posts: 48
    • View Profile
Re: Delete al images but member specific...
« Reply #8 on: August 10, 2008, 12:18:36 am »
DELETE FROM smf_gallery_pic where ID_MEMBER = 44 AND ID_CAT = 2
Worked like a charm, Ty ;-)

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
1742 Views
Last post August 06, 2011, 02:35:04 pm
by Dylert
0 Replies
2388 Views
Last post January 02, 2012, 04:11:54 pm
by Vincent Volmer
2 Replies
2709 Views
Last post January 23, 2013, 12:01:58 am
by SauloA
7 Replies
4884 Views
Last post February 17, 2014, 06:36:26 pm
by shuban
2 Replies
2314 Views
Last post December 19, 2014, 08:08:57 am
by Jonas1975

+- Recent Topics

Is the PayPal Sandbox still working? by Nicole
June 02, 2023, 06:51:18 am

Question on Completed Listing & Reserve Price by Nicole
June 01, 2023, 06:06:12 pm

[Mod]GDPR Helper by Nicole
May 29, 2023, 11:58:49 pm

RSS Feed Poster Database Error by SMFHacks
May 22, 2023, 06:26:18 pm

Errors With Older Version. by Ken.
May 09, 2023, 05:35:40 pm

Pretty Urls SEO Pro by SMFHacks
May 06, 2023, 03:30:11 pm

New Post Image Upload Error by Mike66
April 28, 2023, 07:30:28 am

Copyright Removal Key by SMFHacks
April 03, 2023, 02:44:28 pm

Converting from Aeva Media by sudhakar
April 02, 2023, 11:09:54 am

Using SMF's Built-in Search Algorithm by shuban
March 27, 2023, 09:15:10 am

Powered by EzPortal