This will allow you to show members randomly in the Featured Members Block and the Members Block on Homepage.
Step 1. Edit /templates/base/scripts/BxBaseIndexPageView.php
Find around line 323
$aModes = array('last', 'top', 'online');
And replace with
$aModes = array('rand', 'last', 'top', 'online');
Then to set default display order
Find around line 326
$sMode = (in_array($_GET[$sBlockName . 'Mode'], $aModes)) ? $_GET[$sBlockName . 'Mode'] : $sMode = 'last';
And replace with
$sMode = (in_array($_GET[$sBlockName . 'Mode'], $aModes)) ? $_GET[$sBlockName . 'Mode'] : $sMode = 'rand';
Note (possible values are rand, last, top, online)
Then around line 330 after
switch ($sMyMode) {
insert
case 'rand':
if ($sMode == $sMyMode)
$sqlOrder = " ORDER BY RAND()";
$sModeTitle = _t('Random');
break;
And that's it
But if you wish to have Featured Block show Random and Members Block show Latest follow above instructions then do this:
Around line 327 find:
$sMode = (in_array($_GET[$sBlockName . 'Mode'], $aModes)) ? $_GET[$sBlockName . 'Mode'] : $sMode = 'rand';
And replace with:
$sMode = (in_array($_GET[$sBlockName . 'Mode'], $aModes)) ? $_GET[$sBlockName . 'Mode'] : $sMode = $blorder;
Then around line 323 just before
$aModes = array('rand', 'last', 'top', 'online');
Insert:
if ($sBlockName == 'Featured') {
$blorder='rand';
} else if ($sBlockName == 'Members') {
$blorder='last';
}
________________________________________________________________________________
Regards
Dave....