“I would like the Members profile to have a contact button which when clicked allows the users to send an email to the member?”
Actually, when a logged-in user sends “Private Message” to another member, the latter receives the message in his/her email inbox. Or did you need a contact form for online visitors who are not logged in so they could touch base with any member of your community?
Hi Thanks for the reply.
Yes i will need non members to be able to contact a member without being logged into the website. I was aware off the private message as you pointed out but i really need non logged in users to be able to fill out a contact form and send to a members profile email address.
I need exactly the same – any progress on this?
@ultimateuser @sameast I hacked together a widget in my functions.php using the Grunion Contact Form
`function custom_buddypress_member_contact($args) {
global $bp;
extract($args); // Make before_widget, etc available.
echo $before_widget;
echo $before_title . __(‘Contact Me’,TEMPLATE_DOMAIN) . $after_title;
echo do_shortcode(‘[contact-form widget=2 to=”‘.$bp->displayed_user->userdata->user_email.'” subject=”(‘ . get_option( ‘blogname’ ) . ‘) question” show_subject=”yes” ]’);
echo $after_widget;
}
wp_register_sidebar_widget(‘BuddyPress_Contact_Form’, ‘BuddyPress Contact Form’, ‘custom_buddypress_member_contact’, array(‘description’ => ‘BuddyPress Member Contact Form’));
`
Thanks @israelwebdev
I am quite a beginner. Could you explain how to integrate this code into Buddypress? EG where to paste it in functions.php
Do you have a working example on your site?
@israelwebdev
Are you able to give support on above?