Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'comment notification'

Viewing 25 results - 101 through 125 (of 329 total)
  • Author
    Search Results
  • #247575
    Henry Wright
    Moderator

    Earlier today I added the following to my functions.php file:

    add_filter( ‘bp_activity_do_mentions’, ‘__return_false’ );

    No @mention emails were generated since then. As soon as I commented that code out, within 5-10 minutes thirteen @mention email notifications went out – all with links to content that is years old (pre-import).


    @reedy
    something custom is running which is causing bp_activity_do_mentions to execute. Did you say you deactivated all of your plugins and custom code? If so, then I suspect the importer is still active. I’m not familiar with it, because it’s bbPress-based but the guys over at that forum should be able to tell you how to deactivate it.

    #247570
    reedy
    Participant

    I installed WP Crontrol and saw nothing out of the ordinary:

    ws_plugin__s2member_auto_eot_system__schedule
    _cron_zencache_cleanup
    bp_activity_akismet_delete_old_metadata
    wp_maybe_auto_update
    wp_version_check
    wp_update_plugins
    wp_update_themes
    akismet_scheduled_delete
    wp_scheduled_delete
    wp_scheduled_auto_draft_delete

    Earlier today I added the following to my functions.php file:

    add_filter( 'bp_activity_do_mentions', '__return_false' );

    No @mention emails were generated since then. As soon as I commented that code out, within 5-10 minutes thirteen @mention email notifications went out – all with links to content that is years old (pre-import).

    I’ve therefore put the filter back into functions.php and can only assume I’ll have to do without the @mention functionality of buddypress.

    I appreciate everyone’s help up to this point.

    #247534
    reedy
    Participant

    I deactivated all other plugins and code snippets in functions.php (none of which are related to buddypress) and users are still getting spammed with these emails. How on earth can I stop this from happening? I am getting so many complaints I just don’t know how to handle this.

    Maybe I just need to comment out the notification emails and just remove the functionality entirely? This is driving me (and thousands of people) crazy.

    Furthermore, I am concerned that I’m going to get into trouble under the UK’s anti-spam laws.

    #245547
    Henry Wright
    Moderator

    @venutius you’ll need to ensure the activity, groups and notification components are all activated. Of course, BuddyPress also needs to be installed.

    Within a group, if you create an activity update or comment with the text @group, everyone in that group will get a web notification. The same goes for @mod, but in that case only moderators within that group will get a notification.

    #245022
    VeeLow
    Participant

    https://bbpress.org/forums/topic/problem-with-forum-reply-notifications/

    sorry, Shane–Henry’s been in both places so I figured he knew the deal–

    (also, the comment from JJJ on the github code Henry links upthread seems pertinent)

    –and thanks for the php; I will test it on my test site…

    #244418
    danbp
    Participant

    When you mention a member in a blog comment, that member is informed of that on is profile notification screen and via the notif bubble in user menu (top right under howdy). But no mail is send in this case.

    May be related topics:
    https://buddypress.org/support/topic/no-notifications-for-mentions-in-comments/
    https://buddypress.org/support/topic/notifications-component-fixing-custom-templatestemplates/

    Also:

    bp_notifications_add_notification

    #244300
    danbp
    Participant

    Anything related to notifications is in /buddypress/bp-notifications/ folder.

    Best place to see commented BP code in a glance is
    http://hookr.io/plugins/buddypress/#index=a

    #244254
    djsteveb
    Participant

    @nithin270 – any changes you make for search spiders is going to take weeks (at minimum) before they are reflected in the search results.

    I suggest doing some robots.txt additions (will list mine below) – however realize that long ago google made a decisions that even if your robots.txt says to disallow crawling something, if another page on the web links to your subpage that is blocked by robots.txt, it will still show the url in the search results – but have a description something like “this sites robots.txt prevents google from displaying description of this result”.

    There has been debate about that decision, but it is what it is.

    The only way to really prevent a page showing up in results is to hide it behind a password (like htpasswd) – however google does normally remove results if that page (or header info of images) includes “noindex” in the head of the page (there is a tricky way to add this to images – it was pointed out to me in the google webmaster forums)

    given that bp pages like members are kind of pseudo pages, using something like yoast (currently as far as I know) – will not give you an option to add noindex, nofollow to your member pages..

    you may be able to modify the code I got from wpmudev that checks “if is member page, then add meta description as…” –
    ( http://premium.wpmudev.org/forums/topic/bp-meta-tite-description-for-groups-and-members-pages#post-806736 )
    to… also check “if is members page” – then add “meta name=”robots” content “noindex, nofollow”..
    (something like that)

    that should remove your members pages next time google crawls your site and the crawlers send the info back to the main algo/index..

    I think there is a way to log into google webmaster tools if you have claimed /verified your site and click on urls to ask the big G to remove them as well. (I have not messed with that stuff in a while )

    I also suggest adding a robots.txt file similar to this:

    Disallow: */activity/p/*
    Disallow: /docs/
    Disallow: *send-invites*
    Disallow: */groups/*members*
    Disallow: */groups/*media*
    Disallow: *widget-title*
    Disallow: *members/*activity*
    Disallow: *members/*notifications*
    Disallow: *members/*friends*
    Disallow: *members/*groups*
    Disallow: *members/*docs*
    Disallow: *members/*media*
    Disallow: *acpage*
    Disallow: *messages*
    Disallow: *friends*
    Disallow: *settings*
    Disallow: /*/comment-page*
    Disallow: *register*
    Disallow: *login*
    Disallow: *profile*
    Disallow: *admin*
    Disallow: *includes*
    Disallow: *content*

    to prevent some other quirky indexing issues with bp.

    If your member profile stuff is sacred, then I would hunt the forums here for what others have been messing with that prevents profile info from being displayed if a user is not logged in… as there are plenty of indexing spiders that will not follow the robots.txt or robots index rules in <head> – in fact some specifically look for these things and purposely crawl and scrape stuff that is blocked –

    Disclaimer: I am not an expert, not a real coder. Research these things with other sources, your situation may vary.

    #243617
    shadow_boi
    Participant

    okay, i tried the following:

    tag user in BuddyPress Activity, user could receive notification
    tag user in bbpress forum post/comment, user could not receive notification

    it seems like tagging user in forum does trigger notification, can anyone here confirm if this is expected behaviour?

    if i want to trigger notification when user is tagged in forum post/comment, what should i do? thanks

    #243321
    chicho1969
    Participant

    okay, This is almost done, but is really rare, not everything works as it should.
    First of all, this is not a pluggin, I am writing all these code in bp-functions.php in my bududdypress folder within my theme folder. (this may be my problem).
    Step by step:
    1st Problem setup globals is not working as it espected:

    define( 'BP_NOTIFIER_CELBIRTHDAY_SLUG', 'celbirthday_notifier' );
    function celbirthday_notifier_setup_globals () {
    	global $bp, $wpdb;
    	$bp = buddypress();
    	
    	$bp->celbirthday_notifier = new stdClass();
    	$bp->celbirthday_notifier->id = 'celbirthday_notifier'; //I asume others are not going to use this is
    	$bp->celbirthday_notifier->slug = BP_NOTIFIER_CELBIRTHDAY_SLUG;
    	$bp->celbirthday_notifier->notification_callback = 'celbirthday_notifier_format_notifications'; //show the notification
    	
    	$bp->active_components[$bp->celbirthday_notifier->id] = $bp->celbirthday_notifier->id;
    
    	do_action( 'bp_setup_globals' );
    }

    This function is not doing nothing unless I call it directly:
    celbirthday_notifier_setup_globals ();
    I Know this is not the proper way, but it is the only way I found to make it run.
    Does anyone know why it does not work properly?

    Continue with the notification:

    //Format notifications
    function celbirthday_notifier_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
     if ( 'new_birthday' === $action ) {
    	if ( (int) $total_items > 1 ) {
    	      
    	    if ( 'string' === $format ) {
    			$famoso_name =  get_the_title( $secondary_item_id );
    			return apply_filters( 'celebrities_multiple_verifications_notification','Say Happybirthday to '.$famoso_name);	  
    		  }
          } else {	 
          if ( 'string' === $format ) {  //falta definir $famoso_link y mas 
    	   $famoso_name =  get_the_title( $secondary_item_id );
    	  	return apply_filters( 'celebrities_single_verifications_notification','Say Happybirthday to '.$famoso_name);
             // $return = apply_filters( $filter, '<a href="' . esc_url( $famoso_link ) . '" title="birthday anounce">' . esc_html( $text ) . '</a>', (int) $total_items, $text, $famoso_link );
    		// $message = apply_filters( 'bp_activity_at_message_notification_message', $message, $poster_name, $content, $message_link, $settings_link );
    
    	} } }
     do_action( 'celbirthday_notifier_format_notifications', $action, $item_id, $secondary_item_id, $total_items ); 
    return false; }

    ok, this format function is working right, although I have to do some more work. After it, I have two more functions (mark and delete notifications) wich are also working fine.

    //mark notification
    function celebrities_mark_screen_notifications() {
    	global $bp;
    	
    	bp_notifications_mark_notifications_by_item_id( $bp->loggedin_user->id, $bp->celbirthday_notifier->id, 'new_birthday', $secondary_item_id = false, $is_new='0');
    }
    add_action( 'bp_notifications_screen', 'celebrities_mark_screen_notifications' ); 

    and…

    function celbirthday_notifier_remove_screen_notifications() {
    	global $bp;
    	
    	bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, $bp->profile->slug, 'new_birthday' );
    }
    add_action( 'bp_notifications_screen', 'celbirthday_notifier_remove_screen_notifications' );
    add_action( 'xprofile_screen_display_profile', 'celbirthday_notifier_remove_screen_notifications' );
    

    As I say, this works fine, but a I am not sure if I need the second “add_action” (xprofile screen).
    And finally, to add notification I use this code (which is not working):

    //Adding notification
    function buddypress_celebrities_add_notification() 
    {    
    if ( bp_is_active( 'notifications' ) )
     {  
    
    	$fecha_act = date("Y-m-d");
    	$res_birth = $wpdb->get_results( "SELECT wp_best_favs.user_id, wp_postmeta.post_id
    					FROM wp_best_favs
    					LEFT JOIN wp_postmeta ON ( wp_postmeta.post_id = wp_best_favs.celeb_ID ) 
    					WHERE (
    					wp_postmeta.meta_key =  'fecha_na')
    					AND (DAY(  <code>wp_postmeta</code>.<code>meta_value</code> ) = DAY(  '$fecha_act' ))					
    					AND (MONTH(  <code>wp_postmeta</code>.<code>meta_value</code> ) = MONTH(  '$fecha_act' ))
    					");
    			$res_birth = array_filter($res_birth);  
    			$matriz = objectToArray($res_birth);  //I use this function to convert objet array to simple array
    			if(count($matriz)==0) 
    			{ 
    				// está vacío 
    			}  else { 
    				global $wpdb;
    				$bp = buddypress();
    				$current_time = bp_core_current_time();
    				foreach ($matriz as $v1) {
    					
    					$famoso_id = $v1[post_id];
    					$receiver_user_id = $v1[user_id];
    						
    				$args = array(
    					'user_id'           => $receiver_user_id,
    					'item_id'           => $famoso_id,
    					'secondary_item_id' => $famoso_id,
    					'component_name'    => $bp->celbirthday_notifier->slug,
    					'component_action'  => 'new_birthday',
    					'date_notified'     => $current_time,
    					'is_new'            => 1,
    	       				 );
    			 bp_notifications_add_notification( $args );
    		}
    	}
     } 
    } 
    do_action( 'bp_init', 'buddypress_celebrities_add_notification' ); 

    So this is my bigger problem:
    Add notifications (function buddypress_celebrities_add_notification()) is not working.
    I am pretty sure this is because I am not hooking properly, but I tried so many hooks and none of it did work.
    I Know the code is fine because if I comment the two first lines and the two last lines (so I run the code not as a function) the notifications are being added to database.

    Anyone can help me, to find a proper hook, or just pointing me in the right direction.
    Thanks in advance.

    #243155
    chicho1969
    Participant

    Thanks for reply.

    Yes I read those articles (…and much more), but still not understanding, Sorry about it, thus I am asking for help.

    I don,t understand what do you mean with use a function name twice:
    (// do_action( ‘setup_globals’ ); This is commented) ,

    is this a better way to do it?:

    function sr_notifications_test_setup_globals () {	
    	global $bp, $current_blog;
    	$bp->sr_notifications_test = new stdClass();
    	$bp->sr_notifications_test->id = 'sr_notifications_test';
    	$bp->sr_notifications_test->slug = 'sr_notifications_test';
    	$bp->sr_notifications_test->notification_callback = 'sr_format_notifications_test'; 
    	$bp->active_components[$bp->sr_notifications_test->id] = $bp->sr_notifications_test->id;
    	do_action( 'sr_notifications_test_setup_globals ' );
    }
    add_action( 'bp_notification_settings', 'sr_notifications_test_setup_globals ' ); 
    

    Anyway, what I understood is that I have to write those 3 functions to make my custom notifications works:
    1.- setup_globals
    2.- format_notifications (called from set_up_globals, notification_callback)
    If Iunderstood you´, the filter I have to use is bp_notifications_get_notifications_for_user
    3.- _add_notification

    is this the right way?

    #242012
    creativesinside
    Participant

    This is my code:

    <?php while ( bp_the_notifications() ) : bp_the_notification();
    
    $user_id = $bp->notifications->query_loop->notification->secondary_item_id;
    //bp_notifications_mark_notification(bp_get_the_notification_id(),false);
     ?>
    <?php 
                                $messageId = buddypress()->notifications->query_loop->notification->item_id;
                                $message = messages_get_message($messageId);
                                $image = null;
                                if ($message) {
                                    $title = apply_filters( 'bp_get_message_thread_from', bp_core_get_userlink( $message->sender_id ) );
                                    if ($message->subject == "comment on your post") {
                                       $title .= " commented on your post";
                                    } elseif ($message->subject == "like your post") {
                                       $title .= " liked your post";
                                    } else {
                                       $title = null;
                                    }
                                    
                                    $image = bp_messages_get_meta($messageId, 'images');
    				$obj = bp_notifications_get_notification( $id ); 
                                }
                             ?>

    And the echo:

    <div><a href="/pins/<?php echo $obj->item_id; ?>">VIEW</a></div>

    #242003
    creativesinside
    Participant

    We hooked into a liking plugin and wp-comments to include notifications for activity on those two actions.

    Then the notifications are coming in Ajax to a flyout window. 😀

    #241042
    milenushka
    Participant

    Hi @imath, thank you so much for writing back. For some reason I didn’t get the notification, and was depressed over the site for a month. Today I decided to finally face the issue again, and what a nice surprise!

    So my code is:

    add_filter( 'bp_blogs_record_post_post_types', 'inspired_record_more_types' );
    function inspired_record_more_types( $types ) {
         $types[] = 'projects';
         $types[] = 'sfwd-courses';
         $types[] = 'uig_image';
            return $types;
    }
    
    add_filter('bp_blogs_activity_new_post_action', 'record_cpt_activity_action', 1, 3);
    function record_cpt_activity_action( $activity_action,  $post, $post_permalink ) { 
    
       if( $post->post_type == 'projects' ) {
    	$activity_action  = sprintf( __( '%1$s created a new project, %2$s  ', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' );
       }
    if( $post->post_type == 'sfwd-courses' ) {
    	$activity_action  = sprintf( __( '%1$s added a new workshop, %2$s  ', 'buddypress'  ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' );
       }	
    if( $post->post_type == 'uig_image' ) {
    	$activity_action  = sprintf( __( '%1$s added a new image, %2$s  ', 'buddypress'  ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' );
       }
       return $activity_action;
    }
    
    function bbg_record_my_custom_post_type_comments( $post_types ) {
          $post_types[] = 'projects'; 
          return $post_types;
      }
      add_filter( 'bp_blogs_record_comment_post_types', 'bbg_record_my_custom_post_type_comments' );
    
    

    Thank you so much. I really appreciate it.

    #240469
    sylkitt
    Participant

    So Kleo support says Buddypress NEVER had notifications for comments or likes, only for private messages and friend requests. Is that true? Comments and likes are an important part of a social network and my client wants all of them to be fully functional, not only private messages and friend requests.

    #239939
    Osisis
    Participant

    Not sure how to mark this topic resolved, but I’ve decided to go about this in another manner. I followed the BP model and have my admin bar acting in the capacity of a menu and deleted my primary menu. Is working out pretty well thus far. For anyone else that’s interested I

    Removed “howdy, $name” just because to me it screams WP

    function custom_adminbar_welcome() {
    	global $wp_admin_bar;
    
    		$name = wp_get_current_user()->display_name;
    		$avatar = get_avatar( wp_get_current_user()->ID, 28 );
    		$class = $class = empty( $avatar ) ? '' : 'with-avatar';
    
    		$wp_admin_bar->add_menu( array(
                    'id'    => 'my-account',
                    'title' => __('') . $avatar,
    				'class' => $class
    			) 
    		);
    }
    add_action( 'wp_before_admin_bar_render', 'custom_adminbar_welcome' );

    Removed WP links and change logo

    add_action( 'wp_before_admin_bar_render', 'custom_adminbar_welcome' );
    
    function rebranding_wordpress_logo(){
            global $wp_admin_bar;
            //the following codes is to remove sub menu
        $wp_admin_bar->remove_menu('about');            // Remove the about WordPress link
        $wp_admin_bar->remove_menu('wporg');            // Remove the WordPress.org link
        $wp_admin_bar->remove_menu('documentation');    // Remove the WordPress documentation link
        $wp_admin_bar->remove_menu('support-forums');   // Remove the support forums link
        $wp_admin_bar->remove_menu('feedback');         // Remove the feedback link
        $wp_admin_bar->remove_menu('site-name');        // Remove the site name menu
        $wp_admin_bar->remove_menu('view-site');        // Remove the view site link
        $wp_admin_bar->remove_menu('updates');          // Remove the updates link
        $wp_admin_bar->remove_menu('comments');         // Remove the comments link
        $wp_admin_bar->remove_menu('new-content');      // Remove the content link
        $wp_admin_bar->remove_menu('w3tc');             // If you use w3 total cache remove the performance link
     
            //and this is to change wordpress logo
            $wp_admin_bar->add_menu( array(
                'id'    => 'wp-logo',
                'title' => '<img src="http://test.theblackxperience.com/darklogo45.png" />',
                'href'  => __(home_url()),
                'meta'  => array(
                    'title' => __('eQubator'),
                ),
            ) );
            
    }
    add_action('wp_before_admin_bar_render', 'rebranding_wordpress_logo' );

    Moved BP child menus up to make them primary menus

    function make_parent_node( $wp_admin_bar ) {
    
    if ( ! is_user_logged_in() ) {
    		return false;
    	}
    
    	 $wp_admin_bar->add_node( array(
    		'id'     => 'my-account-activity',     // id of the existing child node (New > Post)
    		'title'  => '<span class="ab-icon"></span><span class="ab-item">'._x( '', '' ).'</span>', // alter the title of existing node
    		'parent' => false,          // set parent to false to make it a top level (parent) node
    	)); 
        $wp_admin_bar->add_node( array(
            'id'     => 'my-account-friends',     // id of the existing child node (New > Post)
    		'title'  => '<span class="ab-icon"></span><span class="ab-item">'._x( '', '' ).'</span>', // alter the title of existing node
    		'parent' => false,          // set parent to false to make it a top level (parent) node
    	));    
        $wp_admin_bar->add_node( array(
            'id'     => 'my-account-messages',     // id of the existing child node (New > Post)
    		'title'  => '<span class="ab-icon"></span><span class="ab-item">'._x( '', '' ).'</span>', // alter the title of existing node
    		'parent' => false,          // set parent to false to make it a top level (parent) node
    	));
       
    	$wp_admin_bar->add_node( $args );
    }
    add_action( 'admin_bar_menu', 'make_parent_node', 999 );

    Added CSS to turn the menu items into dashicons

    #wp-admin-bar-my-account-friends .ab-icon:before{
    	font-family: "dashicons" !important;
    	content: "\f307" !important;
    }
    #wp-admin-bar-my-account-messages .ab-icon:before{
    	font-family: "dashicons" !important;
    	content: "\f466" !important;
    }
    #wp-admin-bar-my-account-activity .ab-icon:before{
    	font-family: "dashicons" !important;
    	content: "\f130" !important;
    }
    
    #wpadminbar .quicklinks li#wp-admin-bar-bp-notifications>a:before{
    	font-family: "dashicons" !important;
    	content: "\f319" !important;
    }

    Only problem I’m having now is that for some reason the logo has decided to move itself to the right, but that’s another question for another topic. But hope this helps someone else. admin bar as menu

    #239606

    In reply to: Acoustic signal

    danbp
    Participant

    Get inspired by reading from here
    or try to develop something from here

    #236924
    shanebp
    Moderator

    Got a chance to revisit this…

    Both versions are now components.

    BuddyPress Simple Events in the WP repo.

    BuddyPress Simple Events Pro now has options for an Attending button, list of attendees, and notifications. As well as image support and Group assignment options.

    Re themes: the templates have been tested with included WP themes. If there is an issue with a particular theme, the templates can be overloaded and adjusted as necessary. The layouts are bare-bones, iow. very basic layouts.

    Re comment syncing: unfortunately, comment syncing is broken in BP 2.2.1. See tickets 6306 and 6294

    browserco
    Participant

    Hi Steve, the code above disallows commenting on specific activity types which is not what I wanted. To get rid of those pesky notifications on the activity stream you should use this code in your theme’s functions.php file:

    function filtering_activity_default( $qs ) {
    if ( empty( $qs ) && empty( $_POST ) ) {
    $qs = ‘action=activity_update';
    }
    
    return $qs;
    }
    add_filter( ‘bp_ajax_querystring’, ‘filtering_activity_default’, 999 );

    I got the code from this thread.

    I hope it works out for you!

    danbp
    Participant

    Two snippets to do this (hopefully). The first has a fixed position (latest by default), the second let’s you choose the position.

    function my_nav_menu_notif_counter($menu) {      
            if (!is_user_logged_in())
                    return $menu;
            else
                    $notif = '<li>Notif '. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</li>';
                    $menu = $menu . $notif;
                    return $menu;
    }
    add_filter( 'wp_nav_menu_items', 'my_nav_menu_notif_counter' );
    
    See comment how to apply a position
    function my_nav_menu_positioned_notif_counter( $items, $args ) 
    {
        if( $args->theme_location == 'primary' ) // only for primary menu
        {
            $items_array = array();
            while ( false !== ( $item_pos = strpos ( $items, '<li', 3) ) )
            {
                $items_array[] = substr($items, 0, $item_pos);
                $items = substr($items, $item_pos);
            }
            $items_array[] = $items;
            array_splice($items_array, 0, 0, '<li>Notif '. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</li>'); // 0,0 is first position, 1,0 is second, etc
    
            $items = implode('', $items_array);
        }
        return $items;
    }
    add_filter('wp_nav_menu_items','my_nav_menu_positioned_notif_counter', 10, 2);

    Reference: https://developer.wordpress.org/reference/hooks/wp_nav_menu_items/

    Henry Wright
    Moderator

    Like the comment count, I’m not sure there’s anything for mentions either. The function responsible for outputting the count you currently see for ‘unseen’ mentions is bp_activity_format_notifications(). It accepts 5 parameters, one of them being $total_items. That variable is what’s used when outputting the text “You have X new mentions”.

    But again, to my knowledge, there isn’t currently anything available ‘stand-alone’ that will do the job for you.

    Hope this helps?

    Henry Wright
    Moderator

    Ah right! That seems to be quite an old resource, goes back to BuddyPress 1.5, I think.

    Yeah, bp_activity_get_comment_count() will return the comment count for a particular activity item.

    Sounds like you’re looking for a ‘notification’ count for activity comments? So for example, if I comment on an activity you’ve posted, the count will be 1. If two people comment on an activity you’ve posted, the count will be 2. At some point in time, you log in and view these which results in the count being reset to 0. Is that what you’re looking for? If so, as far as I know, there’s nothing like that available currently. You could always open a request on Trac asking for the functionality to be added?

    Ref: https://buddypress.trac.wordpress.org/

    Henry Wright
    Moderator

    Hey @mcpeanut

    bp_friend_get_total_requests_count(), bp_notifications_get_unread_notification_count() and messages_get_unread_count() are actually functions. I do believe each returns a count. Regarding comments, are you looking for a function that gets the comment count?

    mcpeanut
    Participant

    I have been customizing the way my notifications are shown and have split them out from the main notifications bubble, so far i have managed to do this via these hooks/filters

    bp_friend_get_total_requests_count
    bp_notifications_get_unread_notification_count
    messages_get_unread_count

    Now i don’t know the ones that relate specifically to the comment notifications a user receives when someone replies or comments on their status update etc, any ideas?

    #236675
    briggsy326
    Participant

    @danbp

    Thanks for the response. 🙂 Makes sense.

    Is there anyway to do it though so it does happen? Some kind of code I could create? I have seen it work on another site where @mentions in post comments do give a notification but no idea how they did it…

Viewing 25 results - 101 through 125 (of 329 total)
Skip to toolbar