PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Delete all photos from userids which do not exist anymore (http://www.photopost.com/forum/photopost-pro-how-do-i/135791-delete-all-photos-userids-do-not-exist-anymore.html)

JLuerken March 11th, 2008 10:02 AM

Delete all photos from userids which do not exist anymore
 
Hi Photopost Team,

I deleted several users from my vB Installation and now the gallery pictures of those users don't have an owner anymore.
Changing this one by one is to much work so I am searching for a way to delete all pictures and comments from the pp db from userid's which do not exist in the vb user table anymore.

How can I do this?

Kind regards
jluerken

Chuck S March 11th, 2008 10:31 AM

Are userid's still associated with the photos? If so you can view the photopost profile and select delete all users photos.

JLuerken March 12th, 2008 02:54 AM

Hi Chuck,

I am using vB 3.7 beta 5 and it seems that the deletion function works different there cause the photo's now belong to nobody.

So what I need is an option for pp to check if a photo exist without a userid or with a userid that does not exist in vb anymore and delete the picture

Chuck S March 12th, 2008 08:56 AM

well I doubt there is such a feature and using vb beta would not cause this. You would have needed to run the scan database feature realign username on photos comments to cause this. I do not beleive you can delete photos in bulk belonging to no userid so your only way to do this would be to issue some query in mysql like so to some bogus userid

UPDATE pp_photos SET userid=9999 WHERE userid=0

You could then go to the userid 9999 profile and use the delete all photos function

JLuerken March 12th, 2008 10:37 AM

Hi Chuck, thanks for the fast feedback. I will play around with this.

btw. it sounds like a good Feature request for one of the next versions.

PP Admin Panel should contain a Maintenance option checking for pictures which belong to a non existing userid.
Can you put this on your list for one of the next updates please?

Thanks in advance
jluerken

Chuck S March 12th, 2008 11:02 AM

You can feel free to post suggestions for Michael in the suggestions forum.


All times are GMT -5. The time now is 11:52 AM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97