11 months, 4 weeks ago
is it possible to add a “add friend” button to users profiles?
a user is visiting another users profile, and her i want the “add friend” button, i.e. under the profile photo or wherever.
by default the user must go back to “members” page and clic on “add friend” there.
You should be able to add <?php bp_add_friend_button(); ?> to your member template. If you don’t have a member template set-up, check out the Template Hierarchy article which will show you how to create one.
<?php bp_add_friend_button(); ?>
11 months, 3 weeks ago
if i get it right, this code goes to
but do i need to create a function?
because if i just add the above line you posted, the code breaks and gives me a error message on screen when loaded…
sorry, i am not a coder…
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service