Sorry i was busy with my exams. Here it is
Add two block and put the name on it whatever you like. Now go to phpmyadmin and put this FUNC field for 2 blocks.
NewMembers
RecentActivity
Respectively for respective blocks. Now open templates/base/script/BxBaseIndexPageView.php and in the bottom put this just after the function "getMembers"
function getBlockCode_NewMembers() {
return $this->getMembersCustom('latest');
}
function getBlockCode_RecentActivity() {
return $this->getMembersCustom('activity');
}
function getMembersCustom($sMode = 'latest', $iLimit = 8) {
switch($sMode) {
case 'activity':
$sSort = 'ORDER BY `DateLastNav` DESC';
$sBlockName = 'Activity';
break;
case 'latest':
$sSort = 'ORDER BY `DateReg` DESC';
$sBlockName = 'Latest';
break;
default:
$sSort = '';
}
$sqlLJoin = '';
$sqlCondition = "WHERE `Status` = 'active'";
$iCount = (int)db_value("SELECT COUNT(`Profiles`.`ID`) FROM `Profiles` $sqlLJoin $sqlCondition");
$aData = array();
$sPaginate = '';
if ($iCount) {
$iNewWidth = BX_AVA_W + 6;
$iLimit = (int)$iLimit;
$iPages = ceil($iCount / $iLimit);
$iPage = empty($_GET['page']) ? 1 : (int)$_GET['page'];
if ($iPage > $iPages)
$iPage = $iPages;
if ($iPage < 1)
$iPage = 1;
$sqlFrom = ($iPage - 1) * $iLimit;
$sqlLimit = "LIMIT $sqlFrom, $iLimit";
$sqlQuery = "SELECT * FROM `Profiles` $sqlLJoin $sqlCondition $sSort $sqlLimit";
$rData = db_res($sqlQuery);
$iCurrCount = mysql_num_rows($rData);
$aOnline = array();
while ($aData = mysql_fetch_assoc($rData)) {
$sCode .= '<div class="featured_block_1" style="width:' . $iNewWidth . 'px;">';
$aOnline['is_online'] = $aData['is_online'];
$sCode .= get_member_thumbnail($aData['ID'], 'none', true, 'visitor', $aOnline);
$sCode .= '</div>';
}
$sCode = $GLOBALS['oFunctions'] -> centerContent($sCode, '.featured_block_1');
if ($iPages > 1) {
$oPaginate = new BxDolPaginate( array('page_url' => BX_DOL_URL_ROOT . 'index.php', 'count' => $iCount, 'per_page' => $iLimit, 'page' => $iPage, 'per_page_changer' => true, 'page_reloader' => true, 'on_change_page' => 'return !loadDynamicBlock({id}, \'index.php?' . $sBlockName . 'Mode=' . $sMode . '&page={page}&per_page={per_page}\');', 'on_change_per_page' => ''));
$sPaginate = $oPaginate -> getSimplePaginate(BX_DOL_URL_ROOT . 'browse.php');
}
} else {
$sCode = MsgBox(_t("_Empty"));
}
return array($sCode, '', $sPaginate);
}
Clear cache and done.
Hope it helps. Good luck :)
so much to do....