Welcome to Elgg's documentation

This is the place to find documentation on all aspects of Elgg. If you would like to contribute your own documentation please do; we want this to be a real community effort!

Change “View All Friends” in the side bar menu

From Elgg Documentation

Change "View All Friends" in the side bar menu.

This may view all friends but it goes to the same exact menu item as the "Your Network" in the top toolbar menu so why not have it say the same thing or remove it from the side bar altogether. You can change the "Your Network" in the top toolbar by changing lines 15 and 18 in /mod/friend/lib.php. Let's assume you want to change the side bar menu from "View all Friends" to "Your Network" to match it. To change "View All Friends" in the sidebar menu to "Your Network" open and edit /units/friends/profile_friends.php as follows:

Look at about line 20 for:

"<a href=\"".url."_friends/?owner=$page_owner\">[" . __gettext("View All Friends") . "]</a>"

and it change it to:

"<a href=\"".url."_friends/?owner=$page_owner\">[" . __gettext("Friends/Groups") . "]</a>"

And then go to about line 29 and look for:

"<a href=\"".url.$_SESSION['username']."/friends/\">[" . __gettext("View All Friends") . "]</a>"

and change it to:

"<a href=\"".url.$_SESSION['username']."/friends/\">[" . __gettext("Friends/Groups") . "]</a>"