Private friend list (only visible to individuals)

Hello- this is my first posting within the Elgg community!

I have very limited knowledge of php- I can tweak language files and amend files that have been deprecated, but that's the limit of my expertise at the moment. Elgg is helping me to play with and learn php in a little more detail.

I am currently building a site which is intended for the use of myself, a small circle of friends and their friends too. At present, both the 'public' and logged-in members can view individual friend lists, by visiting www.yoursite.com/friends/username. Which file and what code within that file would I need to amend so that friend lists are only available to individuals, and so that there is no way to view other members' friend lists? What code would I need to remove/add?

I have already searched for the answer to this several times, but the closest I got to an answer was someone posting some code and asking what was wrong with it- the answer was that the code was correct for what was being requested within the code.

If someone can provide me with the answer, this would be most appreciated.

Thanks in advance.

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking