Adding "My Profile" and "My Messages" to main menu
I want to add the links in topic title to my main menu. Now, I have figured out this is not entirely straightforward to do. (This puzzles me by the way, that it is not available out of the box)
Anyways, I have found out thet `echo bp_loggedin_user_domain();` returns profile link, and `echo bp_loggedin_user_domain().’messages/';` returns link to messages.
My plan was to just create a couple files that use these snippets to redirect directly to the profile/messages page and link to these in menu, and quickly made profileredirect.php and just added the first snippet as a test, something that just ended up with a “Call to undefined function” error message.
I guess the file needs more stuff to be “connected” to Buddypress, but have no idea what.
Would anyone be willing to help me out with a short snippet of code I can cut&paste so the file when opened will just redirect to user profile?
- The topic ‘Adding "My Profile" and "My Messages" to main menu’ is closed to new replies.