Random member display in profile block

Does anyone know if this mod still works in 7.0.5 - it is the mod that would display only people with pictures in the profile block.  Not sure who did it Lanconshiredates might have done one version, but there may have been another.  Here is the code I have that no longer works:

 

Random Display in Homepage member block

files to edit \templates\base\scripts\ BxBaseIndexPageView.php

look 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

Quote · 11 Feb 2011

http://www.boonex.com/unity/extensions/entry/Display_random_members

Prolaznik

Checking....

Quote · 11 Feb 2011

Ah Prolaznik - of course.  Please let me know what you find out - this is an important mod for me.

Quote · 11 Feb 2011

Looks like it works in 7.0.5...

Quote · 11 Feb 2011

If you have a big community site the "ORDER BY RAND()" function  will delay your musql's queries speed

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 12 Feb 2011

Doesn't work for me in 7.05

Quote · 13 Feb 2011
 
 
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.