Cleanup after having used userpics improperly Cleanup after having used userpics improperly
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Cleanup after having used userpics improperly

Started by chrisvva, September 01, 2004, 09:02:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

chrisvva

Ok, I've seen all over this forum how you were never supposed to use the userpics directory for uploading pictures.  I get it.  I don't know why I put them there but since I'm not the only one who did it there must have been something that made it seem like a good reason.

Anyway, I understand now that we absolutely cannot put pics there and have them show up in Batch Add.  The problem is, I need to add photos to an existing album that *is* in there.  What am I supposed to do?  As I understand it, if I move the directories out of userpics, everything will break.

Thanks,
Chris

PS Awesome system, by the way.  Coppermine has been enormously helpful to me.  Thank you!

kegobeer

I think you are confusing the issues a bit here.  "Album" and "directory" aren't the same thing.  You can put your new images in a directory in /albums (for example, /uploads) and then batch add them to any album in your Coppermine gallery.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

if you absolutely think you must have it the way it used to be in cpg1.2.1, with the userpics folder not being invisble for the batch-add process, you can undo the modification that was made to searchnew.php in cpg1.3.x to prevent the userpics from being displayed. Attention: this is not recommended at all, you will have to live with whatever error messages and "funny" behaviours coppermine will display if you do this modification. Use it at your own risk, don't say we didn't warn you. Here goes the "dangerous" modification: edit searchnew.php, find        if (is_dir($CONFIG['fullpath'] . $folder . $file) && substr($file,0,1) != "." && strpos($file,"'") == FALSE && $file != "userpics"  && $file != "edit" ) {and replace with        if (is_dir($CONFIG['fullpath'] . $folder . $file) && substr($file,0,1) != "." && strpos($file,"'") == FALSE  && $file != "edit" ) {Now you will see the pics that have been ftp-uploaded to the userpics folder again, but please understand that it is really, really a bad idea to do this. You were never meant to ftp-upload to the userpics folder, in no coppermine version that ever existed. Honestly.

Joachim

chrisvva

Quote from: kegobeer on September 01, 2004, 11:48:25 PM
I think you are confusing the issues a bit here.  "Album" and "directory" aren't the same thing.  You can put your new images in a directory in /albums (for example, /uploads) and then batch add them to any album in your Coppermine gallery.

Aha!  Thank you, that was very helpful.  I was able to get my photos added.

chrisvva

Joachim, Thank you for the information but I don't really want to do what you're describing.  I'm fine with not putting anything into the userpics directory any more.  What I'd like to do is move all of my files that are already in there OUT of there.

Chris

kegobeer

If you database is working correctly and the images that are in your userpics directory are already added to the database, you can leave them alone and everything will be ok.  There's no real reason to move those images out - if you do you'll have to go through your pictures table and manually change the image locations so Coppermine will know where to look for them.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

chrisvva

Quote from: kegobeer on September 08, 2004, 04:04:34 AM
If you database is working correctly and the images that are in your userpics directory are already added to the database, you can leave them alone and everything will be ok.  There's no real reason to move those images out - if you do you'll have to go through your pictures table and manually change the image locations so Coppermine will know where to look for them.

Ok, I'll leave them alone then.  Thanks!

Chris