MOD: Random Display in Homepage Member Block
This mod will make the block of members on your homepage display only members with pictures, and will do so in ramdom order so it changes each time. This will have the effect of making your site seem bigger than it actually is.
--------------------------
Random Display in Homepage member blockfiles to edit \templates\base\scripts\ BxBaseIndexPageView.phplook for this code around line 322// top menu and sorting
$aModes = array('last', 'top', 'online');
change it to // top menu and sorting
$aModes = array('last', 'top', 'rand', 'online');find this code around line 337 case 'last':
if ($sMode == $sMyMode)
$sqlOrder = " ORDER BY `Profiles`.`Couple` ASC, `Profiles`.`DateReg` DESC";
$sModeTitle = _t('_Latest');
break;add this code bellow it case 'rand':
if ($sMode == $sMyMode)
$sqlOrder = " ORDER BY `Profiles`.`Couple` ASC, `Profiles`.`Avatar` <> 0 DESC, RAND()";
$sModeTitle = _t('_Random');
break;
around line 326 you need to change the display order $sMode = (in_array($_GET[$sBlockName . 'Mode'], $aModes)) ? $_GET[$sBlockName . 'Mode'] : $sMode = 'last';change that 'last' to rand
-------------------
upgradefiles to edit \templates\base\scripts\ BxBaseIndexPageView.php
find this code (done in step above I think) case 'rand':
if ($sMode == $sMyMode)
$sqlOrder = " ORDER BY `Profiles`.`Couple` ASC, RAND()";
$sModeTitle = _t('_Random');
break; change it to
case 'rand':
if ($sMode == $sMyMode)
$sqlOrder = " ORDER BY `Profiles`.`Couple` ASC, `Profiles`.`Avatar` <> 0 DESC, RAND()";
$sModeTitle = _t('_Random');
break;
find this code $sMode = (in_array($_GET[$sBlockName . 'Mode'], $aModes)) ? $_GET[$sBlockName . 'Mode'] : $sMode = 'last';change that 'last' to rand