How to show Random photos on your members Profile Page "photo gallery" area instead of latest photos.
This is for Boonex Dolphin 6.1x
The fastest and easiest ways to accomplish this would be simply editing the BxDolSharedMedia.php
It's probably a good idea to backup the file before making changes just in case.
Then find and Open:
/inc/classes/BxDolSharedMedia.php
find this function:
function getBlockCode_SharedMedia($iUser = 0) {
$iUser = (int)$iUser;
$aManage = array('medID','medExt','medTitle','medUri');
$max_num = (int)getParam("top_photos_max_num");
$mode = process_db_input( getParam("top_photos_mode") );
$mode = $_GET['sh_'.$this->sType.'Mode'];
if( $mode != 'rand' && $mode != 'top' && $mode != 'last')
$mode = 'last';
Change to:
function getBlockCode_SharedMedia($iUser = 0) {
$iUser = (int)$iUser;
$aManage = array('medID','medExt','medTitle','medUri');
$max_num = (int)getParam("top_photos_max_num");
$mode = process_db_input( getParam("top_photos_mode") );
$mode = $_GET['sh_'.$this->sType.'Mode'];
if( $mode != 'rand' && $mode != 'top' && $mode != 'last')
$mode = 'rand';
Save changes/re-upload.
Refresh profile page a few times to see the results. You should see that the members Gallery Photo's changing in order after each refresh.
This is more apparent when a member has a large number of "Gallery Photo's" uploaded.
Screen Shot Original with Latest:
Screen Shot After with Random: