Help with PHP blocks - Display on homepage file/photo folders only

Hi,

I am trying to output on the homepage the contents of a file folder. I have a Content Block 'Public Files' on the homepage but am trying to only display files in a certain folder (on the homepage).

For the 'Public Photos', I only want the photos folders themselves to be linked from there, not the actual photos.

I have installed Deanos Tools 1.8.3 allowing me to edit/add PHP blocks. Below is the code for each - can I change the output from here?

Public Files Block:

$aVisible[] = BX_DOL_PG_ALL;
 if ($this->iMemberID > 0)
$aVisible[] = BX_DOL_PG_MEMBERS;
 return BxDolService::call('files', 'get_files_block', array(array('allow_view'=>$aVisible), array('menu_top'=>true, 'sorting'=>getParam('bx_files_mode_index'),'per_page'=>getParam('bx_files_number_index'))), 'Search');

Public Photos Block:

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']);

 

Thanks in advance for any help you can offer.

Quote · 9 Aug 2011
 
 
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.