Homepage change default top, latest, random

i

I have three blocks on my index page - blogs, profile pix, and main Image gallery.

They all have tabs for Latest, Top, and Random.

Latest is the default tab for all three.

How can I set it to default to Random?

Please give three sets of instructions if necessary :-)

Thanks

Dan V

Quote · 16 Oct 2008

Hi,

1. For "Blog" setup option do this :


Open "templates/base/scripts/BxBaseIndex.php"

find these strings :

$mode = $_REQUEST['blogs_mode'];
if( $mode != 'rand' and $mode != 'latest' and $mode != 'top' )
$mode = 'latest';

and replace on :

$mode = $_REQUEST['blogs_mode'];
if( $mode != 'rand' and $mode != 'latest' and $mode != 'top' )
$mode = 'rand';

2. For "Profile Photos" setup option do this :

Open "templates/base/scripts/BxBaseIndex.php"

find these strings :

if ( $_GET['Mode_p'] == 'rand' or
$_GET['Mode_p'] == 'last' or
$_GET['Mode_p'] == 'top' )
$mode = $_GET['Mode_p'];
else
$mode = 'last';


and replace on :

if ( $_GET['Mode_p'] == 'rand' or
$_GET['Mode_p'] == 'last' or
$_GET['Mode_p'] == 'top' )
$mode = $_GET['Mode_p'];
else
$mode = 'rand';

We only have a unique modules for dolphin!
Quote · 16 Oct 2008

3. For "Shared Media" setup option do this :

Open "inc/classes/BxDolSharedMedia.php"


find these strings :

$mode = $_GET['sh_'.$this->sType.'Mode'];
if( $mode != 'rand' && $mode != 'top' && $mode != 'last')
$mode = 'last';

and replace on :

$mode = $_GET['sh_'.$this->sType.'Mode'];
if( $mode != 'rand' && $mode != 'top' && $mode != 'last')
$mode = 'rand';

We only have a unique modules for dolphin!
Quote · 16 Oct 2008

Hi

Thanks Alex.

Much appreciated.

I will try it tomorrow.

Dan V

Quote · 17 Oct 2008

Excellent, works perfectly  - thats one for the Dolphin manual ! :-)

Quote · 18 Oct 2008
 
 
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.