random order for members block

Does anyone know if there is a way to display the avatars in random order in the member's block.  Remember we used to be able to do that in D6.  Now it just says,  "latest", "top", and "online".  Does anyone know if there is a way to make this happen.

Rob

Quote · 7 Dec 2009

i got this one just give me a few min....

what version is it for ?. & do you want random to be default ?...

Quote · 7 Dec 2009

D7 beta 6

D7 RC2

Quote · 7 Dec 2009

if it's rc2

files to edit \templates\base\scripts

BxBaseIndex.php

around line 322

// top menu and sorting
$aModes = array('last', 'top', 'online');
$aDBTopMenu = array();

change to

// top menu and sorting
$aModes = array('last', 'top', 'rand', 'online');
$aDBTopMenu = array();

around line 337

case 'last':
if ($sMode == $sMyMode)
$sqlOrder = " ORDER BY `Profiles`.`Couple` ASC, `Profiles`.`DateReg` DESC";
$sModeTitle = _t('_Latest');
break;

just below add

case 'rand':
if ($sMode == $sMyMode)
$sqlOrder = " ORDER BY `Profiles`.`Couple` ASC, RAND()";
$sModeTitle = _t('_Random');
break;

that's it :)

Quote · 7 Dec 2009

Does anyone know if there is a way to display the avatars in random order in the member's block.  Remember we used to be able to do that in D6.  Now it just says,  "latest", "top", and "online".  Does anyone know if there is a way to make this happen.

Rob

All random functions where removed from all dolphin's pages because that dolphin more faster!

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 7 Dec 2009

@Prolaznik - Well cool!  thanks for the mod!

@SashaE - could we get it back into D7?  - at least for that block.  It is really boring when people go to the homepage and see the same block of members every time.

Quote · 7 Dec 2009

One more request on this - would it be possible to also make it so this block only displayed members with pictures?  (i.e. not the default avatars).  I think okweb did a mod for this with D6 I could dig up but this would be great to have with D7 also.

Quote · 7 Dec 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.