PDA

View Full Version : deleting multiple photos


silviu p
12-29-2005, 03:08 PM
ok, i have a big problem.
i tryed to import a folder containing about 50 photos from the control panel. and it worked at first, then i went ahead and made so more changes.. and felt i should import that folder again. only this time, at the end of the process i ended up with a gallery of 3600 photos. with really long names. i've erased the photos with a ftp client. but i don't have access to the control panel of the host so i can't reset de db's !!! i'll have to take each and every one of those 3600 pics and erase it from the pixelpost control panel?!?! that would take ages.
give me a simpler solution, how cand i erase all of them at once?
pls i'm desperate.
thanks in advance

http://ps.prinsea.net
silviu dot ps at gmail dot com

Connie
12-29-2005, 03:35 PM
Silviu,

well I think the simplest solution could be to install PP into another directory and add a prefix to the database-name in pixelpost.php

so the new installation will use new database-tables and this one with the 3600 entries will not be used anymore, but you must not delete that table..

but I must admit it surprises me: to upload to have 50 images resulting in 3600, how did you manage that? It's really impressive...

silviu p
12-30-2005, 10:32 AM
Connie,
First let me thank you for a great ideea, it really helped. I've changed hte db's prefix and it worked (this blog was just started and there were no early posts to be erased in the process).
So I've started brand new. And then I've tryed it again. From the admin panell, gave the path to that folder and update. All hell broke loose again, but this time I have "only" 1600 posts on my blog. It generates really long names, I don't now why or how.
One this's sure I'll never use that function again, I'll upload them manualy and that's that.
Thank you again Connie for helping and A Happy New Year!

Connie
12-30-2005, 10:43 AM
Silviu,

this is such a strange phenomen that I nearly can't believe it,
it never happened to anybody of us..

could you give us the information about server etc. which you find in admin / general info?

I would like to look a little deeper into that strange behaviour ;=)

silviu p
12-30-2005, 02:46 PM
Connie,

I'd give you the info but now it's working so I don't think it would me of much use anyway (new db prefixes and all).
This is what I remeber doing:
imported photos from a folder I had on my hosting account
generated thumbs
changed the path of the image folder from /images to /foto (this is the folder where I stored my photos till now)
generated thimbs again
something didn't quite work so i switched it back
moved the the whole folder of pixelpost on the root (i've changed the path prior to this..maybe this was a mistake too)
imported again
thumbs again
and so on.
Since the last time I wrote you I've discovered there were about 1200 (more or less) photos in /foto too so that would explain why after importing (three tims) I ended up with 3600 posts. Those 1200 in /foto got there when I tryed to make that folder the default one for images I guess.
Anyways, it's been a good thing that this happened, I'll be more careful in the future and learn from my mistakes.. if I cand remember what they were :)
Now it's ok tho, step by step importing!

Connie
12-30-2005, 03:32 PM
well, never try to store the images which PP uses, in another folder than !"images", that is the name for the image folder

but if you want to use copyfolder addon, you must store the images in another folder than "images" because the addon moves the images from your start folder to that "images" folder..
so I can imagine you came into a loop when you added new photos to the images-folder and started the addon from there..

1)
you can use Copyfolder Addon for importing multiple images, but keep the start folder apart from the images folder
2)
after importing the images, you can delete that start folder
3)
never change the names of the folders "images" and "thumbnails"
because these are "reserved names" for PixelPost4)
the option for "path to images" in the admin section is just to fix the path to the images-folder, not the folder itself!

I think, if you follow that rules, you won't run into so many images anymore!

Good luck!

Joe[y]
12-30-2005, 04:26 PM
connie - i disagree - there is no reason why images have to be used in a folder named images? that's why we give the option to change the imagepath! isn't it?

Connie
12-30-2005, 07:15 PM
Joey, sorry,

you mix something. the path to "images" can be midfied because some server configuration is misleading and the script does not find the folder "images"

but the foldername must stay always "images" as it is used as a constante and not in a variable in the code

so renaming the folder will result in a nonfunctional script...