Still fighting this code

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!

http://www.mytikibar.com
Quote · 16 Sep 2014

I don't follow you here; I did not think that Dolphin places any privacy on individual files but only on the album the files are in.

Geeks, making the world a better place
Quote · 16 Sep 2014

Oooppsss! You are right.

It's a category!  Ok, I understand what I am doing wrong now.  LOL

http://www.mytikibar.com
Quote · 16 Sep 2014

That's the closest I've ever seen anyone come to an epiphany without actually achieving it......

Good work! (almost) lol

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 18 Sep 2014

Ha Ha!

I just have to figure out how to make that code check the category of the photo so it doesn't display if it equals a certain category.

 

http://www.mytikibar.com
Quote · 18 Sep 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.