Hello,
There is a code that outputs the Featured files.
Files are arranged by date of uploading them to the site.
Please tell me, how they can be put on your site, how to place them in the right sequence to me, for example 1,2,3,4
but not by date.
Featured sounds filter in numerical order 1,2,3,4 how to do it?
require_once(BX_DIRECTORY_PATH_MODULES . 'boonex/sounds/classes/BxSoundsSearch.php');
$this->oSearch = new BxSoundsSearch();
$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'
);
$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'], '');