Use linkedin avatar when mystery man is displayed
I’ve managed to setup a linkedin api to sync profiles. If the mystery man is displayed it gets replaced by the user’s linkedin avatar. However, I use the bp_before_profile_edit_content hook to display to linkedin sign in button. Therefor the linkedin avatar is only displayed on the edit page. How can I display the linkedin avatar on all pages? I guess I should use the filter bp_core_fetch_avatar, but I have no idea how.
This is the code so far: http://pastebin.com/3dGdMFeV
Thanks for any suggestions!
You must be logged in to reply to this topic.