Comment to 'New members in Showcase View'
  • Hi again!

    So, see this method for profiles:

    public function serviceBrowseRecentProfiles ($bDisplayEmptyMsg = false)
    {
    return $this->_serviceBrowse ('recent', false, BX_DB_PADDING_DEF, $bDisplayEmptyMsg);
    }

    and this one for the Albums:

    public function serviceBrowseRecentMedia ($sUnitView = false, $bDisplayEmptyMsg = true, $bAjaxPaginate = true)
    {
    return $this->_serviceBrowse ('recent', array('unit_view' => $sUnitView), BX_DB_PADDING_DEF, $bDisplayEmptyMsg, $bAjaxPaginate, 'SearchResultMedia');
    }

    You may see that in the second case we have the processing of additional parameters. So you need to change serviceBrowseRecentProfiles something like:

    public function serviceBrowseRecentProfiles ($aParams = false)
    {

    if (CHECK_ACTION_RESULT_ALLOWED !== ($sMsg = $this->checkAllowedBrowse()))
    return MsgBox($sMsg);

    bx_import($sClassSearchResult, $this->_aModule);
    $sClass = $this->_aModule['class_prefix'] . $sClassSearchResult;
    $o = new $sClass($sMode, $aParams);

    $o->setDesignBoxTemplateId($iDesignBox);
    $o->setDisplayEmptyMsg($bDisplayEmptyMsg);
    $o->setAjaxPaginate($bAjaxPaginate);
    $o->setUnitParams(array('context' => $sMode));

    if ($o->isError)
    return '';

    if ($s = $o->processing())
    return $s;
    else
    return '';

    }

    and in the code, you will need to process these variables like unit_view