Default Tabs on homepage blocks

Hi, is there a way to change the default tabs, for example for members you have lastest | top | online and it defaults to lastest, if I wanted to change this to online how can I do it?

 

I'm sure this question has been asked before, I found it in the below link but the file they talk about editing doesn't seem to exist in 7.06 anymore!

http://www.boonex.com/unity/forums/topic/tags-question-default-tabs.htm

Thanks in advance

Quote · 11 Apr 2011

Hi michaeljdornan

 

i just post the same question few days ago but no one answer :( did u had any luck ?

Quote · 12 Apr 2011

Hi Michael

 

i get it to work u can see it on my site at www.minglewithnewfreinds.com

 

ok so this is what i did make sure u backup that file before u do anything to it :)

open templates/base/scripts

look for this file :BxBaseIndexPageView.php

open it and look for this line:

 

// top menu and sorting

$aModes = array('last', 'top', 'online');

$aDBTopMenu = array();



if (empty($_GET[$sBlockName . 'Mode'])) {

$sMode = 'last';



}

its like line 646

and now u want to change what ever i put in the red

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

if (empty($_GET[$sBlockName . 'Mode'])) {
$sMode = 'online';
} else {

 

 

i hope this will help u and anyone else that u want to do it toke me 3 days to find it but i get it :)

good luck

 

Danny

Quote · 12 Apr 2011

Brilliant Danny... thanks very much :)

 

Michael

Quote · 12 Apr 2011

u very welcome michael

Quote · 12 Apr 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.