Tutorial

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:


Original Latest View


Screen Shot After with Random:


After Random View

 
Written By
Tutorial by: Jeremy LeSarge (AKA Ray)

I am the owner and administrator of DialMe.com. I write Tutorials for Boonex Dolphin as well as tips and resources surrounding website programming and development. I enjoy working with WordPress, SEO, and Web Hosting / Servers. I also maintain a WordPress Blog here on this site where you will find a variety of technology and webmaster resources.

Actions
Sponsored Links
Recommend