How to make a custom add friend link in buddypress
Hi buddypress users,
I would like ask if someone had done this before where a custom link created for adding a friend.
I had installed this plugin “BuddyPress Extended Friendship Request” and need to make a custom link somewhere on the members header template.
What I would like to achieve is to have an “add a friend” link using an icon.
I have tried this code below:
<?php $btn?>" rel="add" title="buddy request" href="<?php global $bp; echo wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() .'/add-friend/' . $_POST['fid'], 'friends_add_friend' ) ?>"
but it didn’t work out.
When i hover the add friend icon I got this link http://mysite.com/all-members/janitor/friends/add-friend/?_wpnonce=c4231b4ca5, but when you click it is redirect me to a blank white page where it should supposed to be a pop-up frame just like on the members directory add a friend button.
Any help would be greatly appreciated. Thanks a lot
- The topic ‘How to make a custom add friend link in buddypress’ is closed to new replies.