Search Results for 'notification user id'
-
Search Results
-
Topic: How to email all users
Hi, is there a function to email all users within buddypress? I have the plugin for emailing all group members but not all users and would like this to be a function for Administrators. We have tried using the Notices to all bit but nobody gets an email when these are sent, even where ‘A new site notice is posted’ is ticked under users ‘Email Notification’ settings.
Any ideas?
ps. i have tried searching the forums through this site for others with a similar problem, but the search function doesn’t seem to work, I just get redirected to your http://buddypress.org/?s page each time i try….
Hi, I’m having an issue with BP email notifications:
Let’s say some user mention me on a blog post and I got a notification. Every time someone else reply that answer I got another email notification.
Every time someone else marks that comment using “Comment Rating” plugin I got another notification. Every time someone else edit their comment I got another notification.
Sometimes comments have 20 replies and I got an email notification every time.
Please, any ideas on why this happens? And how can I fix this? Thanks!
(As posted in “Installing Buddypress Forums” Sorry, I didn’t realize I was in the wrong forum.)
Hello, I’ve been looking around for a plugin that will let me allow/deny registration for my BP/WP site.
I am using BP 1.5.5 and WP 3.3,I looked in the core-filters.php and came across the code to send the activation code to the user’s email.
`
/***
* bp_core_filter_user_welcome_email()
*
* Replace the generated password in the welcome email.
* This will not filter when the site admin registers a user.
*
* @uses locate_template To see if custom registration files exist
* @param string $welcome_email Complete email passed through WordPress
* @return string Filtered $welcome_email with ‘PASSWORD’ replaced by [User Set]
*/
function bp_core_filter_user_welcome_email( $welcome_email ) {
/* Don’t touch the email if we don’t have a custom registration template */
if ( ” == locate_template( array( ‘registration/register.php’ ), false ) && ” == locate_template( array( ‘register.php’ ), false ) )
return $welcome_email;// [User Set] Replaces ‘PASSWORD’ in welcome email; Represents value set by user
return str_replace( ‘PASSWORD’, __( ‘[User Set]’, ‘buddypress’ ), $welcome_email );
}
if ( !is_admin() && empty( $_GET ) )
add_filter( ‘update_welcome_user_email’, ‘bp_core_filter_user_welcome_email’ );/***
* bp_core_filter_blog_welcome_email()
*
* Replace the generated password in the welcome email.
* This will not filter when the site admin registers a user.
*
* @uses locate_template To see if custom registration files exist
* @param string $welcome_email Complete email passed through WordPress
* @param integer $blog_id ID of the blog user is joining
* @param integer $user_id ID of the user joining
* @param string $password Password of user
* @return string Filtered $welcome_email with $password replaced by [User Set]
*/
function bp_core_filter_blog_welcome_email( $welcome_email, $blog_id, $user_id, $password ) {
/* Don’t touch the email if we don’t have a custom registration template */
if ( ” == locate_template( array( ‘registration/register.php’ ), false ) && ” == locate_template( array( ‘register.php’ ), false ) )
return $welcome_email;// [User Set] Replaces $password in welcome email; Represents value set by user
return str_replace( $password, __( ‘[User Set]’, ‘buddypress’ ), $welcome_email );
}
if ( !is_admin() && empty( $_GET ) )
add_filter( ‘update_welcome_email’, ‘bp_core_filter_blog_welcome_email’, 10, 4 );// Notify user of signup success.
function bp_core_activation_signup_blog_notification( $domain, $path, $title, $user, $user_email, $key, $meta ) {// Send email with activation link.
$activate_url = bp_get_activation_page() .”?key=$key”;
$activate_url = esc_url( $activate_url );$admin_email = get_site_option( ‘admin_email’ );
if ( empty( $admin_email ) )
$admin_email = ‘support@’ . $_SERVER;$from_name = ( ” == get_site_option( ‘site_name’ ) ) ? ‘WordPress’ : esc_html( get_site_option( ‘site_name’ ) );
$message_headers = “MIME-Version: 1.0n” . “From: “{$from_name}” n” . “Content-Type: text/plain; charset=”” . get_option( ‘blog_charset’ ) . “”n”;
$message = sprintf( __( “Thanks for registering! To complete the activation of your account and blog, please click the following link:nn%1$snnnnAfter you activate, you can visit your blog here:nn%2$s”, ‘buddypress’ ), $activate_url, esc_url( “http://{$domain}{$path}” ) );
$subject = ‘ ‘ . sprintf(__( ‘Activate %s’, ‘buddypress’ ), esc_url( ‘http://’ . $domain . $path ) );// Send the message
$to = apply_filters( ‘bp_core_activation_signup_blog_notification_to’, $user_email, $domain, $path, $title, $user, $user_email, $key, $meta );
$subject = apply_filters( ‘bp_core_activation_signup_blog_notification_subject’, $subject, $domain, $path, $title, $user, $user_email, $key, $meta );
$message = apply_filters( ‘bp_core_activation_signup_blog_notification_message’, $message, $domain, $path, $title, $user, $user_email, $key, $meta );wp_mail( $to, $subject, $message, $message_headers );
do_action( ‘bp_core_sent_blog_signup_email’, $admin_email, $subject, $message, $domain, $path, $title, $user, $user_email, $key, $meta );
// Return false to stop the original WPMU function from continuing
return false;
}
if ( !is_admin() )
add_filter( ‘wpmu_signup_blog_notification’, ‘bp_core_activation_signup_blog_notification’, 1, 7 );function bp_core_activation_signup_user_notification( $user, $user_email, $key, $meta ) {
$activate_url = bp_get_activation_page() . “?key=$key”;
$activate_url = esc_url($activate_url);
$admin_email = get_site_option( ‘admin_email’ );if ( empty( $admin_email ) )
$admin_email = ‘support@’ . $_SERVER;// If this is an admin generated activation, add a param to email the
// user login details
$email = is_admin() ? ‘&e=1’ : ”;$from_name = ( ” == get_site_option( ‘site_name’ ) ) ? ‘WordPress’ : esc_html( get_site_option( ‘site_name’ ) );
$message_headers = “MIME-Version: 1.0n” . “From: “{$from_name}” n” . “Content-Type: text/plain; charset=”” . get_option( ‘blog_charset’ ) . “”n”;
$message = sprintf( __( “Thanks for registering! To complete the activation of your account please click the following link:nn%snn”, ‘buddypress’ ), $activate_url . $email );
$subject = ‘ ‘ . __( ‘Activate Your Account’, ‘buddypress’ );// Send the message
$to = apply_filters( ‘bp_core_activation_signup_user_notification_to’, $user_email, $user, $user_email, $key, $meta );
$subject = apply_filters( ‘bp_core_activation_signup_user_notification_subject’, $subject, $user, $user_email, $key, $meta );
$message = apply_filters( ‘bp_core_activation_signup_user_notification_message’, $message, $user, $user_email, $key, $meta );wp_mail( $to, $subject, $message, $message_headers );
do_action( ‘bp_core_sent_user_signup_email’, $admin_email, $subject, $message, $user, $user_email, $key, $meta );
// Return false to stop the original WPMU function from continuing
return false;
}
if ( !is_admin() || ( is_admin() && empty( $_POST ) ) )
add_filter( ‘wpmu_signup_user_notification’, ‘bp_core_activation_signup_user_notification’, 1, 4 );`
I replaced $user_email, with $admin_email,
it doesn’t seem to work.
did I miss something here?
Any ideas?Thank you

Ps. BP rocks.
Hello, I’ve been looking around for a plugin that will let me allow/deny registration for my BP/WP site.
I am using BP 1.5.5 and WP 3.3,I looked in the core-filters.php and came across the code to send the activation code to the user’s email.
`
/***
* bp_core_filter_user_welcome_email()
*
* Replace the generated password in the welcome email.
* This will not filter when the site admin registers a user.
*
* @uses locate_template To see if custom registration files exist
* @param string $welcome_email Complete email passed through WordPress
* @return string Filtered $welcome_email with ‘PASSWORD’ replaced by [User Set]
*/
function bp_core_filter_user_welcome_email( $welcome_email ) {
/* Don’t touch the email if we don’t have a custom registration template */
if ( ” == locate_template( array( ‘registration/register.php’ ), false ) && ” == locate_template( array( ‘register.php’ ), false ) )
return $welcome_email;// [User Set] Replaces ‘PASSWORD’ in welcome email; Represents value set by user
return str_replace( ‘PASSWORD’, __( ‘[User Set]’, ‘buddypress’ ), $welcome_email );
}
if ( !is_admin() && empty( $_GET ) )
add_filter( ‘update_welcome_user_email’, ‘bp_core_filter_user_welcome_email’ );/***
* bp_core_filter_blog_welcome_email()
*
* Replace the generated password in the welcome email.
* This will not filter when the site admin registers a user.
*
* @uses locate_template To see if custom registration files exist
* @param string $welcome_email Complete email passed through WordPress
* @param integer $blog_id ID of the blog user is joining
* @param integer $user_id ID of the user joining
* @param string $password Password of user
* @return string Filtered $welcome_email with $password replaced by [User Set]
*/
function bp_core_filter_blog_welcome_email( $welcome_email, $blog_id, $user_id, $password ) {
/* Don’t touch the email if we don’t have a custom registration template */
if ( ” == locate_template( array( ‘registration/register.php’ ), false ) && ” == locate_template( array( ‘register.php’ ), false ) )
return $welcome_email;// [User Set] Replaces $password in welcome email; Represents value set by user
return str_replace( $password, __( ‘[User Set]’, ‘buddypress’ ), $welcome_email );
}
if ( !is_admin() && empty( $_GET ) )
add_filter( ‘update_welcome_email’, ‘bp_core_filter_blog_welcome_email’, 10, 4 );// Notify user of signup success.
function bp_core_activation_signup_blog_notification( $domain, $path, $title, $user, $user_email, $key, $meta ) {// Send email with activation link.
$activate_url = bp_get_activation_page() .”?key=$key”;
$activate_url = esc_url( $activate_url );$admin_email = get_site_option( ‘admin_email’ );
if ( empty( $admin_email ) )
$admin_email = ‘support@’ . $_SERVER;$from_name = ( ” == get_site_option( ‘site_name’ ) ) ? ‘WordPress’ : esc_html( get_site_option( ‘site_name’ ) );
$message_headers = “MIME-Version: 1.0n” . “From: “{$from_name}” n” . “Content-Type: text/plain; charset=”” . get_option( ‘blog_charset’ ) . “”n”;
$message = sprintf( __( “Thanks for registering! To complete the activation of your account and blog, please click the following link:nn%1$snnnnAfter you activate, you can visit your blog here:nn%2$s”, ‘buddypress’ ), $activate_url, esc_url( “http://{$domain}{$path}” ) );
$subject = ‘ ‘ . sprintf(__( ‘Activate %s’, ‘buddypress’ ), esc_url( ‘http://’ . $domain . $path ) );// Send the message
$to = apply_filters( ‘bp_core_activation_signup_blog_notification_to’, $user_email, $domain, $path, $title, $user, $user_email, $key, $meta );
$subject = apply_filters( ‘bp_core_activation_signup_blog_notification_subject’, $subject, $domain, $path, $title, $user, $user_email, $key, $meta );
$message = apply_filters( ‘bp_core_activation_signup_blog_notification_message’, $message, $domain, $path, $title, $user, $user_email, $key, $meta );wp_mail( $to, $subject, $message, $message_headers );
do_action( ‘bp_core_sent_blog_signup_email’, $admin_email, $subject, $message, $domain, $path, $title, $user, $user_email, $key, $meta );
// Return false to stop the original WPMU function from continuing
return false;
}
if ( !is_admin() )
add_filter( ‘wpmu_signup_blog_notification’, ‘bp_core_activation_signup_blog_notification’, 1, 7 );function bp_core_activation_signup_user_notification( $user, $user_email, $key, $meta ) {
$activate_url = bp_get_activation_page() . “?key=$key”;
$activate_url = esc_url($activate_url);
$admin_email = get_site_option( ‘admin_email’ );if ( empty( $admin_email ) )
$admin_email = ‘support@’ . $_SERVER;// If this is an admin generated activation, add a param to email the
// user login details
$email = is_admin() ? ‘&e=1’ : ”;$from_name = ( ” == get_site_option( ‘site_name’ ) ) ? ‘WordPress’ : esc_html( get_site_option( ‘site_name’ ) );
$message_headers = “MIME-Version: 1.0n” . “From: “{$from_name}” n” . “Content-Type: text/plain; charset=”” . get_option( ‘blog_charset’ ) . “”n”;
$message = sprintf( __( “Thanks for registering! To complete the activation of your account please click the following link:nn%snn”, ‘buddypress’ ), $activate_url . $email );
$subject = ‘ ‘ . __( ‘Activate Your Account’, ‘buddypress’ );// Send the message
$to = apply_filters( ‘bp_core_activation_signup_user_notification_to’, $user_email, $user, $user_email, $key, $meta );
$subject = apply_filters( ‘bp_core_activation_signup_user_notification_subject’, $subject, $user, $user_email, $key, $meta );
$message = apply_filters( ‘bp_core_activation_signup_user_notification_message’, $message, $user, $user_email, $key, $meta );wp_mail( $to, $subject, $message, $message_headers );
do_action( ‘bp_core_sent_user_signup_email’, $admin_email, $subject, $message, $user, $user_email, $key, $meta );
// Return false to stop the original WPMU function from continuing
return false;
}
if ( !is_admin() || ( is_admin() && empty( $_POST ) ) )
add_filter( ‘wpmu_signup_user_notification’, ‘bp_core_activation_signup_user_notification’, 1, 4 );`
I replaced $user_email, with $admin_email,
it doesn’t seem to work.
did I miss something here?
Any ideas?Thank you

Ps. BP rocks.
So here is the problem and MY solution. Might not work for you.
What I’m using: WP 3.3.1, BP 1.5.4, & CIMY Extra Fields 2.3.7I register users from my WordPress page, NOT my BuddyPress page. So not myurl.com/register BUT I AM USING myurl.com/wplogin.php?action=register
What was happening: CIMY generates a key before BuddyPress generates a key. THEN, Buddypress would send out its own email, but WordPress is looking for the CIMY key to activate the user.
Also, when BuddyPress was sending out the activation email from bp_core_filters.php, NOT bp_members_signup.php. It seems that bp_core_filters.php does not seem to have the function to activate a user, but bp_members_signup.php does.
When I would register users from my BuddyPress page instead of the WordPress page, the activate email would work just fine. The email was also being sent from bp_members_signup.php, NOT bp_core_filters.php. How do I know? I altered the email message in filters.php, but then got a different email when I registered through BuddyPress and not WordPress.
Okay. So what did I do?
bp_core_filters.php was overriding my CIMY activation email. When I disabled BuddyPress, I was able to register users through CIMY and my activation link even said ‘?cimy_key=838494040383830209’ (not a real key, obviously) and not just ‘?key=8393834929282’
Before you do this, save a clean copy of bp_core_filters.php somewhere different, so if this doesn’t work for you, you can put the old file back in without any problems.
I went into bp_core_filters.php and DELETED lines 224-255. This starts with:
?function bp_core_activation_signup_user_notification( $user, $user_email, $key, $meta ) {
$activate_url = bp_get_activation_page() . “?key=$key”;
$activate_url = esc_url($activate_url);
$admin_email = get_site_option( ‘admin_email’ );if ( empty( $admin_email ) )
$admin_email = ‘support@’ . $_SERVER;?Then it ends with, on line 255
?add_filter( ‘wpmu_signup_user_notification’, ‘bp_core_activation_signup_user_notification’, 1, 4 );?
Delete all code between lines 224 and 255. If you have WPMU, above that is the email function for WPMU, in lines 181-222.
Why am I using CIMY and not just extending the profile fields on BuddyPress? I needed to collect address data. It was a requirement to collect address data from the registration. But, it would then display publicly on the profile in BuddyPress. I couldn’t have that. I just wanted the data in WordPress, hidden. Thus, I’m using CIMY.
Also, I use CIMY and hide the buddypress admin bar to strangers. I use the plugin login logout and place the widget in a sidebar to direct to the correct login screen, not the buddypress login screen.
Check it out: http://mediabridges.info
BuddyPress is running but is not handling any registration, activation, etc. But users can still use it.
Running BP 154 with WP 3.3l and amember V4 to manage registration and subscriptions.
Everything is working correctly except for 1 thing… The “settings” menu in the subscribers user profile goes to a blank white page “404?Am I missing a setting or a page?
When it does get working it would be nice if the notifications section of the settings could be made separate from the U and P Profile settings.
Since a thrid party app is handling the egistration/ username and password etc. I’d only like the user to be able to edit their notifications from this menu… Not their U and P: is there a way to do this?
Topic: points as currency.
Hey guys.
I am currently building a website which needs to utilise the points functionality of the Buddypress Achievements plugin (or cubepoints) and turn the points into a currency based system.
Users will place job offers or services in exchange for points (the amount of which can be defined by the “selling” user and accepted/declined by the “purchasing” user).
Points will be awarded upon paid registration of the website, successful transactions and can be purchased as an added bolt on if balance is running low.
I have a couple of ideas about where to begin with this. I was thinking modifying the friend request code, so that job offers can be proposed, accepted and declined, with the amount of points to transact being set by the proposer. The consumer would then have that amount of points deducted when the request is accepted, plus the friend notification could be used to notify the community that a transaction has taken place.
Would this be possible?
Topic: New Message Ajax Notifiction
i am working on vary simple logic to implement a Ajax Notification as new message arrive.
i know there is plugin available and i have also tried some but its not working, i dont know whay and then i decide to write my own code for that.i have added following code in Header.php of my theme
function getMessages(){ $('#user-messages span').load('ajax_messages.php'); } setInterval( "getMessages()", 10000);and in ajax_messages.php i have code
and i have added following code in Widgets using PHP code Widget.
<a id="user-messages"> <span></span> </a>according to me it should work fine but its not. i am getting error
$ is not a functionI am new to WordPress and i don’t know where i am wrong.
Thanks
This just seems obvious… when I send a site wide notice, I want users to get a Notification, letting them know there’s a new notice.
I assumed it would just work this way, given the entire purpose of a notice! Any ideas?
Hey Guys!
I’ve got a big issue, that’s giving me a big headache…
I really really need to customize the buddypress admin bar, but I’m really new with php codes, and I need some help, ’cause I need my buddypress project running this week, and I’m not getting to customize the buddybar…
The customizations I want to do is for let the admin bar like Facebook/G+. So I studied this two bars to have some idea of a new admin bar, so my idea is like that:
I really like WP 3.3 admin bar, but I need to modify some features, like the WP logo and the dropdown menu of this tab, I have some idea of how to modify this part, I want to put another logo in place of WP logo and change all the dropdown menu of this tab to “Privacy Politics” of my social network and another things, I think this is the most easy part, ’cause I need modifications like that (imagine the admin bar):
littlelogo | mylogo | wp-actualization-logo | Central Search Bar | blank space | My acount
dropdown I want this logo to With buddypress with a
with privacy show buddypress search options to bigger
politic info. user’s notifications search members, user’s
Groups, Foruns… avatar.And for last, I need to increase the height of the admin bar.
Is it possible?
Thanks guys!
Hey. I’ve tried to read through the forums here, on WP and over at bbpress. Having a hard time nailing this down.
First off, I do not know php. I am a traditional html/css guy, who decided to try WP. I have installed on my site: WP, buddypress and bbpress. All latest versions. the site is occupykc.net, and the issue I’m hacing is that when new users sign up, they are told they will receive a verification email, but they do not. Also, during the signup it actually says at the bottom of the page `{“error”:[“Invalid domain (www.occupykc.net) for this app”]}`. I assume this is a setting or integration issue. If it’s relevant, google apps / mail are also assigned to this domain.
I’ve seen many mail plugins but am unsure what to set the defaults to, and mail from plugin is many years old. Any suggestions or help, please. I will also have to figure out how to ‘activate’ the members already signed up who haven’t received emails. Thank you


