Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'notification user id'

Viewing 25 results - 226 through 250 (of 768 total)
  • Author
    Search Results
  • #265440
    yurycat
    Participant

    I have no idea why when users register on my platform (after installing BuddyPress), they do not receive any notification email. Does anyone know how to fix it?

    #265408
    Johninbc
    Participant

    I administer two social sites and both are asking of there is any way to remove notifications of people joining the group and who made friends with whom… It is plugging up the group notification area and users are getting annoyed.
    I have searched for appropriate plugins and found a few but all are depreciated and mess up the site.
    Wordpress 4.7.3
    Buddypress 2.8.2
    Bbpress 2.5.12

    I found a code hack for the functions.php but it can’t be used in the child “guideline” theme. When added to the child, I lose admin pages. code snippet below

    // Remove (hide) various activities from streams.
    function my_hidden_activities($a, $activities) {
    //if admin we want to know
    //if (is_site_admin())
    // return $activities;

    $nothanks = array(“new_blog_post”, “created_group”, “joined_group”, “new_member”, “friendship_created”, “activity_liked”);

    foreach ($activities->activities as $key => $activity) {
    if (in_array($activity->type, $nothanks, true)) {
    unset($activities->activities[$key]);
    $activities->activity_count = $activities->activity_count-1;
    $activities->total_activity_count = $activities->total_activity_count-1;
    $activities->pag_num = $activities->pag_num -1;
    }
    }

    // Renumber the array keys to account for missing items.
    $activities_new = array_values( $activities->activities );
    $activities->activities = $activities_new;

    return $activities;
    }
    add_action(‘bp_has_activities’, ‘my_hidden_activities’, 10, 2 );

    The author suggests adding to functions.php but without using the child theme the code would be lost after an update. It also broke the site… Even after reverting the changes, the menu and page formatting was gone.

    Is there any way that is up to date to filter what activity is reported on the group wall?

    #265360
    dalipekez
    Participant

    when i got a comment on a update that i made in Sitewide Activity
    (its actually woocommerce product post)

    ( then i get a notification _”commented on one of your updates- when i click on it, it just redirects me to users profile toppage. i never know on what he actuelly commented.

    i try to use Activity Comment notifier-wich has the right notifiacion link( when click onit it redirects me to actual conversation)

    but the problem is now i have double notification( 2 notification for same comment) 1 from buddypress itself 1 from plugin. how can i solve my link problem?

    #265344
    dalipekez
    Participant

    you can use like that,for me its working- but downside is all new products will be associated as posts in the activity stream. Can you tell me if you have also issue if somebody comments on activity stream at your posted product or any other activity, that notification you will get then click on it it will redirect you to activity of user who posted but not the actual conversation?

    anyway.. here is the function i use in php function

    add_filter ( ‘bp_blogs_record_post_post_types’, ‘activity_publish_custom_post_types’,1,1 );
    function activity_publish_custom_post_types( $post_types ) {
    $post_types[] = ‘product’;
    return $post_types;
    }

    let me know if it works

    cahara
    Participant

    Hey all I’m attempting to modify the content returned by BuddyPress’ default ‘@’ mention notification. I’m using this as part of a custom profile page and would like to modify the “username mentioned you’ text to something more personalized based on post type.

    
    // Change mention output
    function format_mention_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string', $component_action, $component_name, $notification_id) {
        if ( $component_action === 'new_at_mention') { // User mentioned notification
    
            $mentioned_source_type = get_post_type($item_id);
            $username = wl_get_username($secondary_item_id);
            $mention_avatar = wl_get_avatar($secondary_item_id);
            $mention_title = '';
            $mention_text = $username;
    
            if ($mentioned_source_type == 'topic') {
                $mention_title = bbp_get_topic_title( $item_id );
                $mention_text .= ' mentioned you in the forum post ';
                $mention_source_link = ''; // link to topic
            } else if ($mentioned_source_type == 'reply') {
                $parent_topic_id = bbp_get_reply_topic_id( $item_id );
                $mention_title = bbp_get_topic_title( $parent_topic_id );
                $mention_text .= ' mentioned you in their response to the forum post ';
                $mention_source_link = bbp_get_reply_url( $item_id ); // link to reply
            } else if ($mentioned_source_type == 'comment') {
                $comment = get_comment($item_id);
                $mention_text .= ' mentioned you in their comment';
                $mention_source_link = get_comment_link($comment);
    
            } else {
                $mention_avatar = '';
                $mention_title = get_the_title($item_id);
                $mention_text = 'You were mentioned in ';
                $mention_source_link = get_permalink($item_id);
            }
    
            $mention_source_link = wp_nonce_url( add_query_arg( array( 'action' => 'read', 'notification_id' => $notification_id), $mention_source_link ), 'bp_notification_mark_read_' . $notification_id);
    
            // WordPress Toolbar
            if ( 'string' === $format ) {
                $return = apply_filters( 'bp_activity_single_at_mentions_notification', '<a href="' . esc_url( $mention_source_link ) . '" title="New mention">'. $mention_avatar . esc_html( $mention_text ) . '<span class="activity-title">'.$mention_title.'</span></a>', (int) $total_items, $mention_text, $mention_source_link );
    
            // Deprecated BuddyBar
            } else {
                $return = apply_filters( 'bp_activity_single_at_mentions_notification', array(
                    'text' => $mention_text . $mention_title,
                    'link' => $mention_source_link
                ), $mention_source_link, (int) $total_items, $mention_text, $mention_title );
            }
        }
    
        return $return;
    
    }
    add_filter( 'bp_notifications_get_notifications_for_user', 'format_mention_notifications', 100, 8 );
    

    What I’ve tried so far:
    – Changing the priority of the filter
    – Moving my logic into the activity_format_notifications action with various different priorities
    – All of the above in a custom plugin file, bp-custom.php, and my themes’ function.php file

    I’ve used a similar filter for custom notifications and that aspect works great. I just can’t seem to override the default content with my own. My thoughts are that the the filters/actions run too late to be noticed by BuddyPress.

    Many thanks for your help.

    #265159
    Henry Wright
    Moderator

    bp_notifications_get_unread_notification_count( $user_id ) should help. Let us know if you need anything specific.

    m1000
    Participant

    Hello,

    I use simple loop to display user notifications:

    
    if ( $notifications = bp_notifications_get_notifications_for_user( bp_loggedin_user_id(), $format = 'string' ) ) {
    	}
    
    	if ( $notifications ) {
    		$counter = 0;
    		for ( $i = 0, $count = count( $notifications ); $i < $count; ++$i ) {
    			$alt = ( 0 == $counter % 2 ) ? ' alt' : ''; ?>
    			<div class="my-notification<?php echo $alt ?>"><?php echo $notifications[$i] ?></div>
    
    			<?php
    			 $counter++;
    			}
    }
    

    When user click and view any notification it disappears automatically except
    “XX commented on one of your updates” notification. When I switch to a default wp theme and click on this notification it disappears. Both links on both themes are the same, it’s
    activity/p/277/?nid=74#acomment-294

    Why it happens only to one notification? All other notifications works fine.

    #264535
    danbp
    Participant

    Did you tested without any additionnal mail plugin ?
    Have you found this topic ?

    #264220
    deeCT
    Participant

    Hi there,

    Thankyou for the reply.

    The thing is, on your “site wide activity” page –

    The first post here “wrote a new post” looks like a notification that the user wrote a post,
    but it doesnt look like it shows the actual post or text the user posted?

    You have blanked this out, so does it show the actual text that a user posts?
    Do you have a screenshot of this?

    Secondly, Any idea or screenshot of what the activity steam looks like with photos etc using that additional activity plus plugin?

    Thirdly –
    How does admin or anyone we can set moderate what the users post on the “site wide activity” page? ie how do we make this non- automatic and only show once we have approved?

    Do you have a screenshot of what the login/ register page in buddypress looks like?
    ie I want users to register first before they can see the site wide activit ystream

    Thankyou!

    Strothi
    Participant

    Hey guys,

    first of all, awesome forum! I’ve already solved so many of my issues simply by reading the many helpful answers – hence never had the need to post anything myself, but now I’m a bit stuck.

    Here’s what I wanted to do: Put a new profile group in a separate bp profile menu tab and make it visible to both, logged in as well as logged out users. Now, it works perfectly fine, except for the fact that logged out users for some reason get to see my personal profile group under my custom tab instead of the new profile group – which is displayed correctly for me as well as other logged in users.

    Here’s my code:

    /**
    BP Profile Tab Visibility
    */
    
    function bpfr_hide_top_nav() {	
    	
    	if( !is_user_logged_in() ) {	
    
    // bp topnav items to hide	
    		bp_core_remove_nav_item( 'activity' );			
    		bp_core_remove_nav_item( 'friends' );
    		bp_core_remove_nav_item( 'groups' );
    		bp_core_remove_nav_item( 'forums' );
    		bp_core_remove_nav_item( 'media' );
    		bp_core_remove_nav_item( 'docs' );
    		bp_core_remove_nav_item( 'location' );
    	
    
    //bp subnav (my activities, my groups, etc)
    		bp_core_remove_subnav_item( 'activity', 'activity' );
    		bp_core_remove_subnav_item( 'activity', 'friends' ); 
    		bp_core_remove_subnav_item( 'activity', 'favorites' );
    		bp_core_remove_subnav_item( 'activity', 'groups' );
    		bp_core_remove_subnav_item( 'activity', 'mentions' );
    		bp_core_remove_subnav_item( 'activity', 'media' );
    		bp_core_remove_subnav_item( 'activity', 'docs' );
    		bp_core_remove_subnav_item( 'activity', 'comments' );
    
    	}
    }
    add_action( 'bp_ready', 'bpfr_hide_top_nav', 10 );
    
    /**
    BP Tab Order Profile and Tab Rename
    */
    
    function bpex_primary_nav_tabs_position() {
    	buddypress()->members->nav->edit_nav( array( 'position' => 2,	), 'activity' 		);
    	buddypress()->members->nav->edit_nav( array( 'position' => 1, 	), 'profile' 		); 
    	buddypress()->members->nav->edit_nav( array( 'position' => 3,	), 'messages' 	  	);
        buddypress()->members->nav->edit_nav( array( 'position' => 4, 	), 'notifications'	); 
    	buddypress()->members->nav->edit_nav( array( 'position' => 5,	), 'friends' 	  	);
    	buddypress()->members->nav->edit_nav( array( 'position' => 6,	), 'groups' 		);
    	buddypress()->members->nav->edit_nav( array( 'position' => 7, 	), 'forums' 		);
        buddypress()->members->nav->edit_nav( array( 'position' => 8, 	), 'criticalreview'	);
    	buddypress()->members->nav->edit_nav( array( 'position' => 9, 	), 'docs' 		    );
        buddypress()->members->nav->edit_nav( array( 'position' => 10, 	), 'media'	     	);
        buddypress()->members->nav->edit_nav( array( 'position' => 11, 	), 'location'     	);
        buddypress()->members->nav->edit_nav( array( 'position' => 12, 	), 'orders'	     	);
        buddypress()->members->nav->edit_nav( array( 'position' => 13, 	), 'settings' 		);
    }
    add_action( 'bp_setup_nav', 'bpex_primary_nav_tabs_position', 999 );
    
    /**
    Put Critical Review Profile Group in BP Tab
    */
    
    function buddydev_modifyy_user_profile_tab() {
    
    bp_core_new_nav_item( array(
    'name'	=> 'Critical Review',
    'slug'	=> 'criticalreview',
    'screen_function'	=> 'buddydev_screen_profile_data',
    'default_subnav_slug' => 'criticalreview-sub',
    'show_for_displayed_user' => true,
    ));
    
    }
    add_action( 'bp_setup_nav', 'buddydev_modifyy_user_profile_tab', 8 );
    
    function buddydev_screen_profile_data() {
    //filter loop
    add_filter( 'bp_after_has_profile_parse_args', 'buddydev_filter_args_for_profile_group' );
    //load loop
    add_action( 'bp_template_content', 'buddydev_show_profile_group_data');
    
    bp_core_load_template( 'members/single/plugins');
    }
    
    function buddydev_filter_args_for_profile_group( $args ) {
    ///CHANGE IT
    $args['profile_group_id'] = '6'; //Your Profile Group ID Here
    
    return $args;
    }
    //Load the loop 
    function buddydev_show_profile_group_data() {
    $profileslug = bp_get_profile_slug();
    // if ( bp_is_my_profile() ) :
    // echo "Edit under Profile";
    // endif;
    bp_get_template_part( 'members/single/profile/profile-loop' );
    }
    
    function hide_profile_group( $grpid ) {
    if ( is_user_logged_in() && !bp_is_profile_edit() ) {
    $myfield = xprofile_get_field_data( 'Critical Review' );
    $grpid['exclude_groups'] = '6';
    }
    return $grpid;
    }
    add_filter( 'bp_after_has_profile_parse_args', 'hide_profile_group' );
    

    A few comments:

    Most of the essential code is based on this threat. I am not really a coder myself, but usually I understand what the functions are doing.

    For now I commented `// if ( bp_is_my_profile() ) :
    // echo “Edit under Profile”;
    // endif;` out, because if I leave it in, for some reason then also logged-in users only see the personal profile group instead of the Critical Review one?!

    Also, I’m not entirely sure about the use of the last function and its use / relevance, because it doesn’t seem to affect anything. This might however have to do with the fact that in order to avoid duplication of the Critical Review profile group under the actual profile tab, I’ve hidden the profile group via CSS.

    Finally, I’m running the latest WP and BP installs and you can have a look at the described behavior here. Interestingly, as you can see in this instance, the profile fields are actually adjusted to my CSS for the Critical Review profiles group – but the actual content doesn’t show correctly.

    Now, if any of you could help me out, I would highly appreciate it!

    Thank you so much in advance! 🙂

    #264066
    r-a-y
    Keymaster

    1,2,3,4,6 should be left to WordPress plugins as these are specific to WP.

    7, 10 have been discussed as core options. It just takes time for developers and the team to finalize specs and to code as this is all done on a volunteer basis. 10 is hard because it relies on a ton of dependent code that hasn’t been written or finalized yet.

    5 – There’s been some preliminary work on this. See https://github.com/buddypress/bp-types-ui.

    9 – If you’re using WordPress multisite, this should be already available as a WordPress option under “Network Admin > Settings”. Otherwise, this plugin might work, but does the opposite. It restricts signup to email domains that you specify.

    Notifications

    2 should already be in core.
    3 is a good request, but unreliable due to how the notifications data is stored. It would be easy to do for BP core notifications, but notifications generated by plugins could store the user ID differently, making this unreliable.
    4 could be done via a custom template or via a small code snippet.

    #264022
    psnation
    Participant

    There are so many possibilities with Buddypress as it is but there many ways it can be improved. I know it’s a fact of life that we must rely on plugin developers to make our sites unique so I will focus on features already in Buddypress core that could be improved.

    User management and profiles: This really should be developed further for easy user management. I understand many of these have plugin options available but adding to core would be a major improvement for managing large scale sites.

    1. All user management columns should be sortable.
    2. IP address and country should be built in without a plugin.
    3. Add User ID to admin column.
    4. Add ability to moderate with suspend and ban with a period of time and notice.
    5. Add ability to core to easily change member types.
    6. Add last login to core
    7. Add ability for members to block other members.
    8. Add ability to hide profile.
    9. Add ability to block domains from signing up.
    10. Add more privacy settings allowing members to control all aspects of their content.

    Notifications:

    1. Add instant notifications.
    2. Send email on notifications to increase site engagement.
    3. Add user thumbnail image along with notification.
    4. Show day or date on the notification.

    I realize many of these can be accomplished with plugins but some of these really need to be built in core to improve performance and security.

    Random suggestions would be to add more basic features similar to Facebook and Twitter and bring Buddypress up as the go to social network builder. Mentions, search, favorites, likes, autocomplete are in need of an update to be modern.

    It’s my opinion not fact. 🙂

    #263880
    Andrew Tegenkamp
    Participant

    I’m trying to edit my user’s profile so that when they click on “Settings” they go to the “Email” (/settings/notifications/) by default. I found https://codex.buddypress.org/developer/navigation-api/ and am trying to apply that to the default_subnav_slug but must be missing something. Any ideas?

    
    add_action( 'bp_setup_nav', 'bp_edit_subnav_default');
    function bp_edit_subnav_default($data) {
    	global $bp;
    	$new_data = array(
    		'screen_function'     => 'bp_settings_screen_notifications',
    		'default_subnav_slug' => 'notifications',
    	);
    	$bp->members->nav->edit_nav($new_data, 'settings');
    
    }
    
    Henry Wright
    Moderator

    I believe the wp_new_user_notification() function is what you’re looking for. It’s pluggable so you can define your own which will override the original definition:

    function wp_new_user_notification( $user_id, $deprecated = null, $notify = '' ) {
        // Your own code here. Copy and paste the original function's content and then modify if you wish.
    }
    #263832
    charleswaud
    Participant

    Is there an easy way i can setup all members to receive a notification every time a new topic is posted across all of our forums, with a link to view the topic – despite not being involved in the post?

    If so please provide detailed instructions.

    Many thanks,

    Kind regards.

    #263786

    Hi,

    I purchased the intergration of Buddypress into my platform via Geodirectory.

    My website is: http://www.salseros-international.com.

    Registering on my website fail when users try to create an account. When trying, there is a notification that they will get a confirmation email in which they will find a link to activate their account. But they never receive the confirmation email.

    However, when I go to my dashboard and view the ‘all users’ section, I see there are pending subscribers. When I activate their account, I receive the ‘new user registration’ notification per email. But the subscriber does not receive any notification per email.

    I have tested with a mail log and smtp plugin to verify which emails are sent. I also tried to register myself with another email address and indeed I didn’t receive any confirmation email.

    Plus, I have asked my hosting provider and Geodirectory. Both said they could not help further as the issue does not come from the server nor from the script of Geodirectory as they don’t send any confirmation email upon registration. Also, Geodirectory said it is a Buddypress email, so I should ask the Buddypress team.

    Could you please help me?

    Best,
    Beatrice

    #263617
    warezit
    Participant

    Hello!

    I am having an issue with BP, that I caused myself. I intentionally deactivated, then deleted, BP (on a 5 day old site) thinking that I wasn’t going to use it. Then I ran ‘WP Optimize’ which removed all the unused tables from the plugins I had installed, and removed unused transients, etc… This is what caused the problem.

    Some time later, I went to re-install BP – which succeeds with no issues. Here’s where the issues crop up… Next, I went to create a new Group on the BP front-end, and it reports an error:
    There was an error saving group details. Please try again.

    Enabling WP debug mode in “wp-config.php” reports this:

    WordPress database error: [Table 'wordpress.wp_bp_groups' doesn't exist]
    SELECT id FROM wp_bp_groups WHERE slug = 'create'
    WordPress database error: [Table 'wordpress.wp_bp_activity' doesn't exist]
    SELECT id, user_id, date_recorded FROM wp_bp_activity WHERE component = 'members' AND type = 'last_activity' AND user_id IN (1) LIMIT 1
    WordPress database error: [Table 'wordpress.wp_bp_activity' doesn't exist]
    SELECT id, user_id, date_recorded FROM wp_bp_activity WHERE component = 'members' AND type = 'last_activity' AND user_id IN (1) LIMIT 1
    WordPress database error: [Table 'wordpress.wp_bp_activity' doesn't exist]
    SHOW FULL COLUMNS FROM <code>wp_bp_activity</code>
    WordPress database error: [Table 'wordpress.wp_bp_notifications' doesn't exist]
    SELECT * FROM wp_bp_notifications n WHERE user_id IN (1) AND component_name IN ('friends','messages','activity','groups','blogs') AND is_new = 1
    WordPress database error: [Table 'wordpress.wp_bp_messages_recipients' doesn't exist]
    SELECT SUM(unread_count) FROM wp_bp_messages_recipients WHERE user_id = 1 AND is_deleted = 0 AND sender_only = 0
    WordPress database error: [Table 'wordpress.wp_bp_friends' doesn't exist]
    SELECT id FROM wp_bp_friends WHERE (initiator_user_id = 1 OR friend_user_id = 1) ORDER BY date_created DESC
    WordPress database error: [Table 'wordpress.wp_bp_groups_members' doesn't exist]
    SELECT COUNT(DISTINCT m.group_id) FROM wp_bp_groups_members m, wp_bp_groups g WHERE m.group_id = g.id AND m.is_confirmed = 0 AND m.inviter_id != 0 AND m.invite_sent = 1 AND m.user_id = 1
    WordPress database error: [Table 'wordpress.wp_bp_messages_notices' doesn't exist]
    SELECT id FROM wp_bp_messages_notices WHERE is_active = 1

    I have been trying to find a solution for this online, for the last 4+ hours… and I have gotten nowhere… So, I am humbly asking for help here, on how to recreate these tables – WITHOUT DELETING AND RECREATING MY ENTIRE SITE. I have nearly 100 hours into this site so far, and I am NOT starting over. Starting over is NOT an option, so please save everyone’s time and skip suggesting this.

    I have reviewed all of these links, and followed all of their respective directions, when applicable:

    Deleting BuddyPress


    https://buddypress.org/support/topic/reinstall-should-i-delete-old-tables-from-db/

    repair buddypress database


    and, many many many many more links, that I am not going to go back and try to find…

    Any help with this would be great – I’d really like to use BP again… I have seen a number of other people online with this issue, so I know I am not the only one. There has to be some elegant solution to re-create the required SQL tables for the plugin, right?

    I have tried running this, after I reinstalled BP the 4th time (with my TDL inserted, ofc):
    https://xxxxxx.com/wp-content/plugins/buddypress/bp-core/bp-core-update.php?f=bp_update_to_2_7_4
    But, it didn’t seem to do anything…

    Ubuntu 16.04.1
    Apache 2.4.18
    PHP 7.0.13
    WP 4.7.2
    BP 2.7.4
    no other BP extension/plugins have been installed since the 1st time removing BP

    I am more than happy to provide any requested log files!

    Thank you a TON in advance!! I look forward to getting this working again.

    #263461
    Florian Bansac
    Participant

    If there are still people looking for help, I have been trying different things today to:
    -add the notifications counter in menu
    -style differently if 0 notifications or 1+
    -target only the main

    It works for me, maybe you can check from here:

    // filter to target only main menu
    add_filter('wp_nav_menu_items','my_nav_menu_notif_counter', 10, 2);
    
    function my_nav_menu_notif_counter($menu, $args) {
    
    $url = bp_core_get_user_domain(bp_loggedin_user_id()) .'notifications/';
    
    // counter to target unread notifications = 0 or 1+
    $bpnotifcount = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );
    
           // condition: user must be loggedin
           if (!is_user_logged_in())
                    return $menu;
           else
    
                    // condition: only main nav
    		if( $args->theme_location == 'primary' ) {
    
                            // condition: 0 unread notifications
    			if($bpnotifcount == 0) { 
                    	$notif = '<li><a href=" ' .$url. ' ">Notifications <span class="notifmenucount">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a></li>';
    			} else {
                   		$notif = '<li><a href=" ' .$url. ' ">Notifications <span class="notifmenucount countnot0">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a></li>';
    			}
    
            		$menu = $menu . $notif;
            		return $menu;
    		}
    
            	else
    			return $menu;
    
    }

    And CSS

    /*Notifications counter in menu*/
    .notifmenucount {
    border-radius: 25%;
    border: 1px solid #ccc;
    color: #888;
    display: inline;
    margin-left: 1px;
    padding: 2px 6px;
    text-align: center;
    vertical-align: center;
    font-size: small;
    }
    .countnot0 {
    color: #ffff00;
    background: #ff0000;
    border: 1px solid transparent;
    }

    😉

    #263459
    Florian Bansac
    Participant

    I tried all sorts of things on this topic today, I ended up with something that looks like it’s working. Maybe you can try it:

    // filter to target only main menu
    add_filter('wp_nav_menu_items','my_nav_menu_notif_counter', 10, 2);
    
    function my_nav_menu_notif_counter($menu, $args) {
    
    $url = bp_core_get_user_domain(bp_loggedin_user_id()) .'notifications/';
    
    // counter to target unread notifications = 0 or 1+
    $bpnotifcount = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );
    
           // condition: user must be loggedin
           if (!is_user_logged_in())
                    return $menu;
           else
    
                    // condition: only main nav
    		if( $args->theme_location == 'primary' ) {
    
                            // condition: 0 unread notifications
    			if($bpnotifcount == 0) { 
                    	$notif = '<li><a href=" ' .$url. ' ">Notifications <span class="notifmenucount">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a></li>';
    			} else {
                   		$notif = '<li><a href=" ' .$url. ' ">Notifications <span class="notifmenucount countnot0">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a></li>';
    			}
    
            		$menu = $menu . $notif;
            		return $menu;
    		}
    
            	else
    			return $menu;
    
    }

    And CSS:

    /*Notifications counter in menu*/
    .notifmenucount {
    border-radius: 25%;
    border: 1px solid #ccc;
    color: #888;
    display: inline;
    margin-left: 1px;
    padding: 2px 6px;
    text-align: center;
    vertical-align: center;
    font-size: small;
    }
    .countnot0 {
    color: #ffff00;
    background: #ff0000;
    border: 1px solid transparent;
    }

    I hope it helps!

    seppad2016
    Participant

    Hi,

    We’ve been experiencing problematic issues with BP Email notifications.

    As stated on the subject of the post, our BuddyPress installation went ok and each time a new user register. He’s been sent an activation mail (as the situation stated it).

    We are managing group members from the wordpress back-office. Actually, no action (except the registration/login) is performed client-side.

    We (the admin) invite as a member or promote any registered and activated user to any group. This action is performed in the back-office. As stated on the various Email Situations, the recipient should receive an email if the action is performed but this never happens.

    We eventually tried to disable plugins and resetting things but we’re out of luck. We also tried the following plugin BP Default Email Notification Settings Control Version 1.0.1
    to force email notification with no success.

    Thanks for any efficient help,


    Below our configuration:
    WP 4.7.2
    plugins :
    Advanced Custom Fields Pro Version 5.3.3.2
    Beautiful taxonomy filter Version 2.1.0
    BP Default Email Notification Settings Control Version 1.0.1
    BuddyPress Version 2.7.4
    Contact Form 7 Version 4.5.1
    Contact Form DB Version 2.10.26
    Intuitive Custom Post Order Version 3.0.7
    JS & CSS Script Optimizer Version 0.3.2
    mobble Version 1.6
    PDF Image Generator Version 1.5.0
    Theme My Login Version 6.4.6
    WP E-Mail Debug Version 1.1.0
    WP Maintenance Version 2.8.2
    WP Super Cache
    WPBakery Visual Composer
    Yoast SEO

    danbp
    Participant

    Hi,

    BuddyPress doesn’t handle users. It use WP’s user_table and user_meta and his own meta tables (bp_activity_meta or bp_notifications_meta).

    In BP settings, you have an option to sync BP to WP profile’s. And that’s all.

    If you have another plugin who’s is synced with WordPress profiles, guess it will do the same with BP. But, adding a custom member table only for BP usage within WP registration process isn’t a good idea as you probably will have to rewrite a lot of code.

    Members are the heart of BP, but in the sense of “how to show members and let them work together”, not in the way to include/register them to the site.
    BP doesn’t never affect the first step when accessing the WP user registering. This step belongs clearly to WP ONLY. Adding member and meta tables doesn’nt modify that.

    #263255
    Dono12
    Participant

    @slaffik is it possible to add ajax to update notifications when the user marks them as (Read, Unread, Delete) oppose to the page refreshing.The only way it seems for the notification count to go away is by page refreshing or visiting another page. The same situation for all notifications, like Friend Request and Messages. I see you posted a link to the Beta 2.8.0, I was wondering if this was addressed, didn’t see it in the list of updates.

    #263172
    finzend
    Participant

    @pixelpushermama @julia_B did you fix this, or is it still a problem?

    I just upgraded from BuddyPress 2.3.4 to 2.7.4 (WP 4.7.1) but now we seem to have a problem with the mentions. Users used to get an notification-email when they were mentioned in the comments on one of our sites. That doesnt happen anymore. But the emails from private messages or replies on activity-updates do work…

    #263171
    finzend
    Participant

    Hi there,

    We recently updated BuddyPress 2.3.4 to 2.7.4 but we seem to have a problem with the mentions. Users used to get an notification-email when they were mentioned in the comments on one of our sites. That doesnt happen anymore. But the emails from private messages or replies on activity-updates do work, so it seems not a problem with the webserver or something like that.

    I have searched a lot of files/source and it looks like the function bp_activity_sent_mention_email is responsible for these mails, but I cant find this function anywhere.. Does somebody know where I should look to find the problem? Where can i hook into the mention-emails to see whats wrong?

    PS: I also added this code, but that didnt help

    add_action( 'bp_email', function( $email_type, $email_obj ) {
    $email_obj->set_from( "custom@example.com", "Custom Website Name" );
    }, 10, 2 );
    bcanr2d2
    Participant

    Consider this one resolved, I found the function for the OneAll Social Login that fires off after the accounts are created, and it will now send off welcome emails for those that create accounts via the social media logins!

    Thanks for the tip, whilst they didn’t have an example of what I was after, they had plenty showing what function fired off after their account creation.

    In the end, so little code -will put on here for reference.

    add_action( 'oa_social_login_action_after_user_insert', 'oa_social_login_send_welcome_email', 10, 2);
    function oa_social_login_send_welcome_email ($user_data, $identity) {
    //Fire off BuddyPress Welcome email
    $user_id = $user_data->ID;
    bpdev_welcome_user_notification( $user_id);
    }
Viewing 25 results - 226 through 250 (of 768 total)
Skip to toolbar