This code displays latest photos on the home page.
require_once(BX_DIRECTORY_PATH_MODULES . 'boonex/photos/classes/BxPhotosSearch.php');
$oMedia = new BxPhotosSearch();
$aVisible[] = BX_DOL_PG_ALL;
if ($this->iMemberID > 0)
$aVisible[] = BX_DOL_PG_MEMBERS;
$aCode = $oMedia->getBrowseBlock(array('allow_view'=>$aVisible), array('menu_top'=>true, 'sorting' => getParam('bx_photos_mode_index'), 'per_page'=>(int)getParam('bx_photos_number_index')));
return array($aCode['code'], $aCode['menu_top'], $aCode['menu_bottom'], $aCode['wrapper']);
The problem is, if it's a public album, but a private photo, it still shows the photo.
How do I make it so this only displays public photos?
Thanks!