How to choose another user How to choose another user
 

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

How to choose another user

Started by ewise, February 26, 2014, 06:20:11 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ewise

Hi,
After uploading photos how to choose another user who would author the photos?
Thank you so much.

gmc

Coppermine sets the owner to the user uploading (or batch adding) the files. Don't know of any interface in Coppermine to change owner...
However it can be quite simple to change the owner of all pics in given album via phpMyAdmin.

You will need some data values from other tables (or more complex SQL)
For example to change owner of all pics in album with aid '3' to user with user_is 8 and cpg table prefix of 'cpg_':
UPDATE cpg_pictures SET owner_id = '8' where aid = '3'

Other criteria can of course be used as appropriate... Always a good idea to backup your databases before updating.

Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money