Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Trying to stop spam email


r-a-y
Keymaster

@r-a-y

Hey Jfcarter,

There is no add_action for this function as the changes require manually replacing the existing message button function in the BP member template.

Were you able to get this working before? Or is this the first time you’re trying this?

Anyway, follow these steps:

(1) Make sure you put the bp_send_message_to_friend_button() function in your /wp-content/plugins/bp-custom.php

(2) Replace the bp_send_message_button() function with the newly, created bp_send_message_to_friend_button() in your BP member template.

If you’re using the default BP member template, you have to replace the function in these places:

* /bp-themes/bpmember/activity/just-me.php

* /bp-themes/bpmember/wire/latest.php

* /bp-themes/bpmember/profile/index.php

If you’re using a modified version of the BP member template, you’ll need to manually find each instance of the bp_send_message_button() function and replace it.

Just FYI, I’m no longer using this function as we did indeed wanted users to message non-friends.

Skip to toolbar