feature video homepage

Hey all,

 

Is there a way to put a feature video block on the homepage?  I searched a bit and found nothing.  Any quick hacks to make this happen?

 

Thanks,

Quote · 10 Aug 2013

Took from here http://www.boonex.com/forums/topic/Featured-Photos-on-Homepage.htm

Changed to work with videos.

require_once(BX_DIRECTORY_PATH_MODULES . 'boonex/videos/classes/BxVideosSearch.php');
$this->oSearch = new BxVideosSearch();
$this->oSearch->aCurrent['restriction']['featured'] = array( 'field' => 'Featured', 'value' => '', 'operator' => '=', 'paramName' => 'featured' );
$this->oSearch->aConstants['linksTempl']['featured'] = 'browse/featured';
$aCustom = array( 'per_page' => '8', 'menu_bottom_type' => 'featured', 'wrapper_class' => 'result_block' );
$aCode = $this->oSearch->getBrowseBlock(array('featured' => 1, 'allow_view' => $this->aVisible), $aCustom);
if($this->oSearch->aCurrent['paginate']['totalNum'] > 0)
    return array($aCode['code'], $aCode['menu_top'], $aCode['menu_bottom'], '');

This should most probably work. Give this a shot and let me know.

so much to do....
Quote · 10 Aug 2013
 
 
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.