removing "all" from river dashboard

is it possiable to remove "all" from the river dashboard so that you can only see what your friends update and post?

  • Yes, you have to override/change a view in the riverdashboard to do that. It might be called nav or something like that. I think you'll also have to change the index.php to make the friends option the default.

  •             case 'mine':
                                $subject_guid = $_SESSION['user']->guid;
                                $relationship_type = '';
                                break;
                case 'friends':    $subject_guid = $_SESSION['user']->guid;
                                $relationship_type = 'friend';
                                break;
                default:        $subject_guid = 0;
                                $relationship_type = '';
                                break;

    Is that the default option you're talking about in index?

  • hello, im also interested in this.

    what should i writeinstead of:

    default:        $subject_guid = 0;
                                $relationship_type = '';
                                break;

    to have friends as default? thx

     

  • Is it possible also we can add option in Activity widget which is normally on Dashboard? Guide me if anyone had idea..

  • Juipo

    This comment was removed by an administrator because it contained advertising.

  • Hmmm.. It would be better to check the river dashboard file : NAV.PHP

    $allselect = ''; $friendsselect = ''; $mineselect = '';

    switch($vars['orient']) {

    case '': $allselect = 'class="selected"';

    break;

    case 'friends': $friendsselect = 'class="selected"';

    break;

    case 'mine': $mineselect = 'class="selected"';

    break;

    }

    may be the ' ' is the "all"

  • @Prajwal

    The switch you indicate controls how the tab is displayed when page is opened 

    $allselect = ''; $friendsselect = ''; $mineselect = '';

    switch($vars['orient']) {

    case '': $allselect = 'class="selected"'; //indicates that the tab will open with 'all' selected

    break;

    case 'friends': $friendsselect = 'class="selected"'; //if this was blank and above was 'all' then this will open to friends

    break;

    case 'mine': $mineselect = 'class="selected"';

    break;

    }