I'm looking for the source code that determines the order of the Profile menus that appear beneath a users profile picture: Add friend, Report this, etc.
I want to place 'Remove Friend' at the very bottom of the Profile Menu links because members have accidentally clicked this and well, removed friends ; )
Anyone know how I can change the order of profile menu links??
Thanks in advance!
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.
- Jeff Tilson@jrtilson
Jeff Tilson - 0 likes
The view in the profile plugin that displays the remove friend link is: "profile/menu/friendlinks" but that only contains that one link. The view you're after that would determine the order is this one: "profile/icon" You could override that "profile/icon" view and echo the "profile/menu/links" view before the "profile/menu/friendlinks" Theres a guide on the docs.elgg.org for overriding views: http://docs.elgg.org/wiki/Overriding_a_view Hope that helps!
You must log in to post replies.