@brainiacwebdesigns
10 years, 7 months ago
I have a “Profile” button on my menu and would like dropdown boxes under it to pop up allowing someone to edit their profile or upload an avatar straight from there. The problem is that the url is something like
http://realvets.com/veterans/dugfunny/profile/change-avatar/
with dugfunny being my username.
so how do i swap out the username for whatever code is needed to plug in the username of the user who is currently logged in and clicking the link?
Thanks!
@shanebp
try: <a href="<?php echo bp_loggedin_user_domain() ?>profile/change-avatar">Avatar</a>
<a href="<?php echo bp_loggedin_user_domain() ?>profile/change-avatar">Avatar</a>
so in just html form, like in the example above, it would look liiiiiiike….
The goal is to put it on my menu. Not sure how to do that with what you gave me.
Thanks a ton for your help sir!
http://www.realvets.com/profile/change-avatar
?
If that was what you were thinking, it doesn’t seem to work.