Search Results for 'notification user id'
-
AuthorSearch Results
-
August 12, 2011 at 1:43 pm #118275
staurand
MemberSame issue here with BuddyPress 1.2.9 & WP 3.2.1
The problem seems to come from this file :
/buddypress/bp-groups.php
which calls
do_action( 'groups_promoted_member', $user_id, $bp->groups->current_group->id );before the file below is included
/buddypress/bp-groups/bp-groups-notifications.php
that should add the action to add the notification:
add_action( 'groups_promoted_member', 'groups_notification_promoted_member', 10, 2 );Quick fix:
function addGroupNotificationFile($user_id, $group_id)
{
require_once ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' );
}
add_action('groups_promoted_member', 'addGroupNotificationFile', 100, 2);
July 28, 2011 at 2:05 am #117048r-a-y
KeymasterTry this 3rd-party plugin:
July 26, 2011 at 11:30 pm #116981embergermedia
MemberIs this the wrong forum to discuss this idea?
Anybody have any thoughts on this? Thanks
July 6, 2011 at 4:20 pm #115860In reply to: Change default notification settings
mistercyril
ParticipantI found a post written by Boone ( http://bpdevel.wordpress.com/author/boonebgorges/ ) where he says something about replacing all references to “$current_user” with “$bp->displayed_user” in order to allow super admins to have access to user settings.
I am using BuddyPress v.1.2.8 and found this code in bp-core-settings.php…
/***** NOTIFICATION SETTINGS ******/function bp_core_screen_notification_settings() {
global $current_user, $bp_settings_updated;$bp_settings_updated = false;
if ( $_POST ) {
check_admin_referer('bp_settings_notifications');if ( $_POST ) {
foreach ( (array)$_POST as $key => $value ) {
update_user_meta( (int)$current_user->id, $key, $value );
}
}$bp_settings_updated = true;
}add_action( 'bp_template_title', 'bp_core_screen_notification_settings_title' );
add_action( 'bp_template_content', 'bp_core_screen_notification_settings_content' );bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
}function bp_core_screen_notification_settings_title() {
_e( 'Notification Settings', 'buddypress' );
}function bp_core_screen_notification_settings_content() {
global $bp, $current_user, $bp_settings_updated; ?><form action="loggedin_user->domain . BP_SETTINGS_SLUG . '/notifications' ?>" method="post" id="settings-form">
<input type="submit" name="submit" value="" id="submit" class="auto" /><?php
}
Can someone help me out with implementing this?
Thanks,
C.June 24, 2011 at 1:55 pm #115158In reply to: Random member – security query
Marian
ParticipantSo sorry I didn’t see your request for more help. I have my settings to be notified of any @mentions and replies to my forum posts but for some reason I did not receive any notification that you had replied. Not sure if it’s a problem with BuddyPress.org notifications or what.
Anyway, it’s probably too late and you hopefully found a solution already, but I’ll post this here just in case you or anyone else are still looking for a way to disable the random visit menu in the BuddyPress admin bar without disabling the admin bar itself.
Rather than explain the inadequate solution of changing #bp-adminbar-visitrandom-menu display to none in the stylesheet, let me give the function override solution instead:
In your theme’s footer.php file, right BEFORE it says “, add the following code:
`
<?php
if (!is_user_logged_in()) {
remove_action( ‘bp_adminbar_menus’, ‘bp_adminbar_random_menu’, 100 );
}
?>
`
That’s if you want the random visit menu to be removed only for users who are not logged in.If you want it to be removed for all users, whether or not they’re logged in, use this simpler code instead:
`
<?php
remove_action( ‘bp_adminbar_menus’, ‘bp_adminbar_random_menu’, 100 );
?>
`I see that the font for the code I just posted is not clearly legible in places. Please note that the remove_action line ends with a semi-colon ;
HTH

MarianJune 24, 2011 at 12:44 am #115135In reply to: Notification on Profile Update
Steve
ParticipantHi r-a-y,
Almost two months after implementing this I have developed it further and it’s working great! Thanks again for your help.
However, I am struggling to work out how I can implement this same function for status updates in addition to profile updates? Using your code, how would I need to edit it and where would it need to go?
`
function my_update_profile_send( $id ) {
$text = bp_core_get_user_domain( $id );
wp_mail( ‘YOUR ADMIN EMAIL ADDRESS’, ‘Profile Updated’, $text );
}
add_action( ‘xprofile_updated_profile’, ‘my_update_profile_send’ );
`Cheers,
SteveMay 20, 2011 at 12:41 pm #112709In reply to: Emails no longer sending
scrltotara
MemberI tested non-BP emails, like lost password, and got that just fine, so it’s just BP emails not sending. No user signup notifications or group digests at all, when they worked fine last week. I did nothing but upgrade the plugins since.
May 18, 2011 at 7:04 pm #112539pnerger
MemberI also had this problem and went through a deep analysis.
The issue stems from the fact that Bluehost requires that the email be sent from an account that exists on the system. They do this as an anti-spam technique and they require this even if the mail is originating from within the system.
Enter WordPress. PHP uses a mail function mail(). WordPress maps this to wp_mail() and pretty much everyone uses the wp_mail for the plugins within WordPress. This makes sense as it allows customization of WordPress mail at a relatively low cost of performance.
Enter Buddypress. Buddypress places a filter upon wp_mail() such that all email originate from the user ‘noreply’ on the domain such that end users don’t reply to the notifications. Sounds cool.
But remember that Bluehost does not allow email to be sent from non-accounts and that’s the catch.
Using a foreign SMTP does not work for Bluehost blocks those ports. Using local SMTP will work but you need to provide the right setup and credentials. Finally, using mail-from plugin works since it filter’s the Buddyhost filter changing the email from address back to a valid Bluehost email account.
Hopefully, this explains what is happening and you can choose which strategy you want to use to fix the problem.
May 12, 2011 at 5:06 pm #112144In reply to: Hi! I want to make a custom buddybar but..
@mercime
Participant== All I want to do is to hide the “Dashboard” button ==
Know that the “Dashboard” link in adminbar appears for logged-in users who have a role greater than Subscriber on your blog. If you still want to do this then if you don’t have one yet, create a bp-custom.php file, add the code below and upload to wp-content/plugins folder:
`<?php
remove_action( ‘bp_adminbar_menus’, ‘bp_adminbar_thisblog_menu’, 6 );
?>`== have Notifications and buttons like “Edit Profile” etc [in adminbar] ==
Notifications link and “Edit Profile” buttons are already in adminbar for logged-in-users.
May 11, 2011 at 12:45 am #112018embergermedia
MemberPLEASE!!! My users are complaining loudly about this issue. Some of them have nearly a dozen un clearable notifications because of this issue! I can only imagine the chaos that will ensue once the community has been active for a year and they have dozens and dozens of notifications that won’t go away…
And new users can’t find answers to these already answered forum topics!
I think a simple solution would be to not allow forum topics to add to the activity stream. I can do this with a great plugin. But how do I clear all the notifications that users already have?? And besides, this is only a hack. I would like to keep forums updates in the activity stream, to encourage interaction.
Thanks
May 6, 2011 at 11:55 am #111706In reply to: Follow a Blog
Nahum
Participanti did something like this in a real round about way using the Buddypress Followers plugin. I was able to modify to only show the Follow Button on profiles if the profile owned a blog — Note* this will only work where members are only able to have 1 blog. It will not work in case of an admin that has various blogs — I was also able to modify the plugin to only show Blog Posts in the Users “Following” tab activity stream. And finally I was able to put the Follow button in the user blog sidebar. I had to disable the Follow/Following buttons everywhere except for the member profile and their blog.
I like you all have been looking for something like this too. I like the idea of adding notifications for bp and email when someone you follow has added a blog post.
April 28, 2011 at 8:49 pm #111274In reply to: Notifications Number not going away
Brooker
MemberI have 1.2.8 and having the same issue, i took a look into pb-friends.php and the code seems correct…
global $bp;if ( isset( $_GET ) )
bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, $bp->friends->id, ‘friendship_accepted’ );
}
add_action( ‘bp_activity_screen_my_activity’, ‘friends_clear_friend_notifications’ );April 28, 2011 at 6:54 am #111232In reply to: Notification on Profile Update
r-a-y
KeymasterThere’s a `do_action` hook you can use:
`xprofile_updated_profile` (located in /buddypress/bp-xprofile.php.)You could potentially use the wp_mail() function to send an email to the admin with this hook.
Don’t know what a `do_action` is and how to make use of it?
If you’re familiar with a tiny bit of PHP, here’s some articles that will help:
http://www.nathanrice.net/blog/an-introduction-to-wordpress-action-hooks/
https://codex.wordpress.org/Plugin_API#ActionsHere’s something quick you can try:
`function my_update_profile_send( $id ) {
$text = bp_core_get_user_domain( $id );
wp_mail( ‘YOUR ADMIN EMAIL ADDRESS’, ‘Profile Updated’, $text );
}
add_action( ‘xprofile_updated_profile’, ‘my_update_profile_send’ );`Put the code snippet in your theme’s functions.php.
April 16, 2011 at 3:32 pm #110408In reply to: Blog Comments Notifications Plugin
Nahum
ParticipantI think still we’re off base with what I originally asked for.
But that’s ok! All is welcome.In the new WP 3.1 Admin Bar, there is a “Comments” tab that lights up when there is a comment on the blog (i think) — I’m refereing to something like that integreated to bp_core_get_notifications_for_user( $bp->loggedin_user->id ) — to let blog owners on a multisite know that there have been comments made to their blog — the link then goes to edit-comments.php so the user can manage those new comments pending.
*now that i’m revisting this thread, I’m remembering someone around here providing a tweak the bp-admin bar that added a flyout from the Blogs menu that did exactly this, I think. where are you thread!
April 6, 2011 at 5:25 pm #109676In reply to: Admin not receiving New User Registration emails
littletechgirl
ParticipantI am having this same issue. I get the email fine if the new user is created on the WordPress side, but if it is done through BuddyPress I do not get a notification. Any other ideas on this?
April 5, 2011 at 5:35 am #109579In reply to: Buddypress Notifications Manager : My first plugin
stwc
ParticipantThanks for this — a very good idea. Questions:
Does setting various email notifications to disabled just a) set a default for all users or b) make it impossible for them to enable them? If (b), does it hide the option in the user-facing UI?
March 23, 2011 at 3:50 am #108486In reply to: [Resolved] can’t open group page
VirtualityStudio
MemberProblem is visible here: http://www.globalmeditationgroup[dot]com/groups/
Platform 1.1.3 theme
Wordpress 3.1
Buddypress… whatever the newest version is, I installed it through wordpress… so I can’t imagine it would be in the wrong place.I haven’t done anything with multisite.
Plugins:
oh boy… here we go
add new default avatar
askimet
all in one seo pack
autochimp
ban hammer
bbpress integration
bp group hierarchy
bp xtra signup
buddypress
buddypress humanity
comments cleaner
dropdown menu widget
feedburner feedsmith
forum post notification
google analytics for wordpress
google xml sitemaps with multisite support
gravatar signup encouragement
login logger
use google libraries
user spam remover
visitor maps and who’s online
wordpress importer
wp hide dashboard
wp mail fromNot sure what happened… any ideas would be most welcome! Thank you
March 19, 2011 at 2:01 am #108205In reply to: JobRoller + BuddyPress errors
Virtuali
Participant@linkyou, add this to your theme’s css:
`
/* Inherit the default theme styles */
@import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/default.css );/* Inherit the default theme adminbar styles */
@import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css );
`And put this in your functions.php
`// Load the AJAX functions for the theme
require_once( TEMPLATEPATH . ‘/_inc/ajax.php’ );// Load the javascript for the theme
wp_enqueue_script( ‘dtheme-ajax-js’, get_template_directory_uri() . ‘/_inc/global.js’, array( ‘jquery’ ) );// Add words that we need to use in JS to the end of the page so they can be translated and still used.
$params = array(
‘my_favs’ => __( ‘My Favorites’, ‘buddypress’ ),
‘accepted’ => __( ‘Accepted’, ‘buddypress’ ),
‘rejected’ => __( ‘Rejected’, ‘buddypress’ ),
‘show_all_comments’ => __( ‘Show all comments for this thread’, ‘buddypress’ ),
‘show_all’ => __( ‘Show all’, ‘buddypress’ ),
‘comments’ => __( ‘comments’, ‘buddypress’ ),
‘close’ => __( ‘Close’, ‘buddypress’ ),
‘mention_explain’ => sprintf( __( “%s is a unique identifier for %s that you can type into any message on this site. %s will be sent a notification and a link to your message any time you use it.”, ‘buddypress’ ), ‘@’ . bp_get_displayed_user_username(), bp_get_user_firstname( bp_get_displayed_user_fullname() ), bp_get_user_firstname( bp_get_displayed_user_fullname() ) )
);
wp_localize_script( ‘dtheme-ajax-js’, ‘BP_DTheme’, $params );`Should put styles of the buddypress default theme into your theme. I would go into plugins/buddypress/bp-themes/bp-default/_inc/css/default.css and remove all the contents of:
`/* > Global Elements
*/
/* > Admin Bar
*/
/* > Header
*/
/* > Navigation
*/
/* > Container
*/
/* > Sidebar
*/
/* > Content
*/`March 17, 2011 at 6:13 am #108049In reply to: Help Me Delete Stuck Notification…
Pisanojm
ParticipantOk… so @brajesh was able to point be in the right direction on this…
The problem is that I was looking for a user ID of the person that sent the request that was trying to join the group… what I needed to do was SEARCH for my User ID in the wp-bp-notification table… this had the user’s id making the request listed as an ITEM not a userID (as the user ID was mine)…. once I deleted that it went away…
FYI: You can find User IDs in the tables themselves or you can use a plugin called REVEAL ID to find IDs in the WordPress back end…
https://wordpress.org/extend/plugins/reveal-ids-for-wp-admin-25/Thanks Brajesh!
February 14, 2011 at 11:51 pm #105425In reply to: Hide Notification Settings
pcwriter
ParticipantTo remove the notifications subnav item, add the following snippet to your functions.php file:
`function remove_notifications_subnav(){
global $bp;
if ( $bp->current_component == $bp->settings->slug ) {
bp_core_remove_subnav_item($bp->settings->slug, ‘notifications’);
}
}
add_action( ‘wp’, ‘remove_notifications_subnav’, 2 );`This is a simple function taken from this post by @mariochampion
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-remove-and-add-items-in-bp_get_displayed_user_nav/?topic_page=2&num=15#post-71265Hope this helps!
February 4, 2011 at 8:56 pm #104632In reply to: Profile Fields show on email to admin?
r-a-y
KeymasterYou need to override the new user admin email function:
https://codex.wordpress.org/Function_Reference/wp_new_user_notificationThen you need to call on some BuddyPress functions to grab the xprofile data.
xprofile_get_field_data() (located in bp-xprofile.php) will help.
—
If all this is foreign to you, short answer is “it’s possible, but requires coding”
January 21, 2011 at 1:13 am #103479In reply to: How to move adminbar links to sidebar?
calvinhsu
Participant@acaps2007
What I’ve found finally:(It’s based on this article:
http://easyoutsource.com/blog/how-to-code-a-custom-adminbar-in-buddypress/)So if you just set your adminbar to be hidden in css rather than completely disable it in the
wp-config.php, you could useto call the notification menu.If you’ve completely disabled adminbar, then use the following code instead(it’s copied from bp-core-adminbar.php):
<?php global $bp; if ( !is_user_logged_in() ) return false; echo '<li id="bp-adminbar-notifications-menu"><a>loggedin_user->domain . '">'; _e( 'Notifications', 'buddypress' ); if ( $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { ?> <span></span> <?php } echo '</a>'; echo '<ul>'; if ( $notifications ) { $counter = 0; for ( $i = 0; $i < count($notifications); $i++ ) { $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; ?> <li></li> <?php $counter++; } } else { ?> <li><a href="loggedin_user->domain ?>"></a></li> <?php } echo '</ul>'; echo '</li>'; ?>And as I have found out, the js effect (what you called the “mouse over” effect) is dealt automatically by
bp-themes/bp-default/_inc/global.jsIn my case, I’m building a child theme of bp-default, so I don’t have to worry about js, just copy and paste css codes from
bp-themes/bp-default/_inc/css/adminbar.cssand adjust selectors accordingly.If you are not building a child theme of bp-default, then maybe you can try search in the global.js and make some copy and past.
Good luck !
January 20, 2011 at 8:21 pm #103461In reply to: Hide General Settings
r-a-y
KeymasterAdd the following to your theme’s functions.php:
`function ray_bp_remove_settings() {
global $bp;// removing the existing settings tab
bp_core_remove_nav_item( $bp->settings->slug );
}
add_action( ‘init’, ‘ray_bp_remove_settings’, 0 );function ray_bp_readd_settings() {
global $bp;// add a new settings tab to use notifications as default tab
bp_core_new_nav_item( array( ‘name’ => __(‘Settings’, ‘buddypress’), ‘slug’ => $bp->settings->slug, ‘position’ => 100, ‘show_for_displayed_user’ => false, ‘screen_function’ => ‘bp_core_screen_notification_settings’, ‘default_subnav_slug’ => ‘notifications’ ) );// bug in bp_core_remove_subnav_item(), we have to hack the screen function so it displays the notifications screen when you land on /settings/
if ( $bp->current_component == $bp->settings->slug && $bp->current_action == ‘general’ )
add_action( ‘wp’, ‘bp_core_screen_notification_settings’, 3 );// add back the subnav notifications tab
$settings_link = $bp->loggedin_user->domain . $bp->settings->slug . ‘/’;bp_core_new_subnav_item( array( ‘name’ => __( ‘Notifications’, ‘buddypress’ ), ‘slug’ => ‘notifications’, ‘parent_url’ => $settings_link, ‘parent_slug’ => $bp->settings->slug, ‘screen_function’ => ‘bp_core_screen_notification_settings’, ‘position’ => 20, ‘user_has_access’ => bp_is_my_profile() ) );
}
add_action( ‘init’, ‘ray_bp_readd_settings’ );`Tested lightly. Encountered a few bugs, but this will work…
January 17, 2011 at 5:41 am #103099In reply to: Admin Bar topics to Nav Bar
Virtuali
Participant— if you want just a nav item for <i>inbox messages</i>, than a simple slug would be easy to add.
If you want the entire notification tab there… same type of thing as before,
function bp_adminbar_notifications_menu() { global $bp; if ( !is_user_logged_in() ) return false; echo '<li id="bp-adminbar-notifications-menu"><a>loggedin_user->domain . '">'; _e( 'Notifications', 'buddypress' ); if ( $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { ?> <span></span> <?phpJanuary 11, 2011 at 6:21 pm #102592In reply to: Admin not receiving New User Registration emails
David Carson
ParticipantThe next thing I’d do is deactivate BuddyPress to see if you’re still not getting new user notifications. If you can’t do this on your live site maybe create a test install in a subdirectory. This would help isolate whether it’s a BP or WP thing. You might want to check out the WordPress forums, too – https://wordpress.org/search/new+user+notification?forums=1
Did you ever get these new user notifications? Or is it something that just started happening recently? Maybe it’s a plugin or customization issue specific to your setup.
-
AuthorSearch Results