I wish to create a default Friends Only album for photos and videos, but photos are the most important.
Each module creates two albums for members and each is set to privacy level 3 (public)
I've altered files in the Photos and Inc modules and changed the database to successfully allow all members access to two additional albums and the Create New Album option is now last on the list
The current configuration of Dolphin encourages members to create a new album for every photo they upload and I wish to stop this.
My upload form now looks like this:
- Profile Photos
- General Photos
- Friends Only Photos
- Cover Photos
- Create New Album . . .
All options with the exception of Create New Album currently have a default privacy level of 3, but Friends Only Photos must be 5.
I'm unable to change this. Alex T supplied this function in a previous and lengthy thread, but I'm not sure how it's meant to work.
function checkDefaultAlbums($iProfileId)
{
$sUri = $this->_oConfig->getUri();
$aAlbums = $this->_oConfig->getDefaultAlbums(true, array('{nickname}' => getUsername($iProfileId)));
foreach($aAlbums as $sAlbum) {
$aAlbumInfo = $this->oAlbums->getAlbumInfo(array('fileUri' => uriFilter($sAlbum), 'owner' => $iProfileId));
if(!empty($aAlbumInfo) && is_array($aAlbumInfo))
continue;
$this->oAlbums->addAlbum(array(
'caption' => $sAlbum,
'owner' => $iProfileId,
'AllowAlbumView' => ($sAlbum == getParam('sys_album_default_name')) ? BX_DOL_PG_HIDDEN : $this->oAlbumPrivacy->_oDb->getDefaultValueModule($sUri, 'album_view'),
), false);
}
}
AlexT said: "All albums have the same default privacy level, if you need different privacy levels for different albums you need custom modification, I would suggest to do this in the following code in inc/classes/BxDolPrivacy.php file"
The original thread is here:
https://www.boonex.com/forums/topic/Modifying-default-photo-album.htm
----------------
I also wish to have Profile Photos as the third item and that's something else I'm struggling with.