After migrating
quake101
Joined: 2007-02-27
Posts: 13 |
![]() |
How do I update user albums to point to the user albums that where imported? Gallery version = 2.2-rc-1 core 1.1.26 |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
imported from where/what? -------------- |
|
quake101
Joined: 2007-02-27
Posts: 13 |
![]() |
I imported all my user albums from coppermine. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
there's no feature to do that with a few clicks. see: - i'd go to site admin -> useralbum. change the "when to create" setting to "when first accessed." i guess you don't need step 1, you have those albums already. you'll have to look up the album ids and user ids and you can then map them by inserting a row in the g2_PluginParameterMap table. GalleryCoreApi::setPluginParameter('module', 'useralbum', 'albumId', $albumId, $user->getId()); which translates into this SQL: -------------- |
|
quake101
Joined: 2007-02-27
Posts: 13 |
![]() |
Thank you, I manually updated the database. Now my user's albums are correct! |
|