-
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
-
Thank you very much Leonid for these valuable explanations. Just wonder why you offer this opportunity without effort for featured members and not for new members.
In fact not long ago I noticed this style of view which the big advantage is an obvious gain of space and I noticed a little later that it could even be swept with the finger, a must.
Well, I think it's really great and it would be super cool to include this possibility for all the blocks as far as possible, because we often lack space on a screen and even more on a mobile.
Unless this style of view consumes more resources, why not abuse this great idea? -
Thank you for the suggestion:
-
-