is it possiable to remove "all" from the river dashboard so that you can only see what your friends update and post?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
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?
yes
wait what? how can we do that?
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..
Any idea?
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;
}
- Previous
- 1
- 2
- Next
You must log in to post replies.