forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: Phantek on May 15, 2005, 09:39:12 pm

Title: Batch add - wrong user quota
Post by: Phantek on May 15, 2005, 09:39:12 pm
I just used the batch add to include some files that a user on my gallery has uploaded.  Everything went well and all the photos were properly added to the user's album.  However, when I click on "users" in my admin options, it shows those files as being uploaded by my account.  In other words, it shows the total of the file sizes as being part of my quota, not the user's.  I want these photos to be included as part of the quota for the user who uploaded them.  Is there any way to do this?
Title: Re: Batch add - wrong user quota
Post by: kegobeer on May 15, 2005, 10:05:03 pm
Not that I'm aware of.  The batch add process is an admin feature, that's why the images show up as yours.  I guess you could use phpMyAdmin to manually edit the pictures table and change the owner from you to your member.
Title: Re: Batch add - wrong user quota
Post by: Phantek on May 15, 2005, 10:10:51 pm
Thanks, I'll give that a shot then.

Do you happen to know of a link to another topic which helpfully points me towards the right spot in the database to do this?  If not, no worries... I'll poke around phpMyAdmin.  Thanks.
Title: Re: Batch add - wrong user quota
Post by: Tranz on May 15, 2005, 10:11:35 pm
Before poking around the database, make sure to back it up.
Title: Re: Batch add - wrong user quota
Post by: kegobeer on May 15, 2005, 11:02:05 pm
You're the first to ask about this - there aren't any posts to refer.  You'll have to change owner_name and owner_id.
Title: Re: Batch add - wrong user quota
Post by: Phantek on May 15, 2005, 11:50:38 pm
Thanks for the reminder, TranzNDance.  I suppose that would be a good idea.

And kegobeer, I guess I should feel special for being the first.  Either that, or troublesome. 
Title: Re: Batch add - wrong user quota
Post by: Phantek on May 16, 2005, 02:50:17 pm
Okay, I did it and it worked.  Clearly, it's not preferrable.  But at least it works.