Adding another album with useralbum module
nmahlin
Joined: 2005-09-26
Posts: 19 |
![]() |
I am currently using the user album module to gives users there own private album. I also would like to be able to give users another album that is viewable by everyone. Looking at the code in UserAlbumHelperClass.class: Quote:
/* Create album.. */ At this point in the function I have the album id of the newly created album. So after the function finishes adding permissions / setting owner / ect. Do I just need to call createAlbum($parentAlbumId, $name, $title, $summary, $description, $keywords) with the $parentAlbumId=$album->getID() being the id of the newly created album? so the code would look something like: Quote:
$name = 'Your Public Album'; In the long run I also want to add some pictures to users albums when it is created. If there is a more efficient way then hacking the useralbum module I am all ears. Thanks in advance |
|
elzorro
Joined: 2006-06-28
Posts: 14 |
![]() |
Hey, Did you ever come up with a solution for this? This is something Im looking to do. Hope you can point me in the right direction. Thanks in Advance |
|
nmahlin
Joined: 2005-09-26
Posts: 19 |
![]() |
Have a look at http://gallery.menalto.com/node/26165. To add items to existing albums you can use a function like: Quote:
function addItemToAlbum($userId,$fileName, $itemName, $title, $summary,$description, $mimeType, $albumId, $symlink) Hope that answered your question. What do you want to do exactly? |
|
nmahlin
Joined: 2005-09-26
Posts: 19 |
![]() |
This thread is recently active and the code is better. |
|