Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'notification user id'

Viewing 25 results - 51 through 75 (of 768 total)
  • Author
    Search Results
  • Natalie
    Participant

    I’ve been trying to filter only the Activity Directory stream to show only a specific activity item type (in this case, it’s “new_product_page”, which I created with the help of the codex section on post types).

    I successfully managed to achieve this with the following code:

    function bpfr_filtering_activity( $retval ) {
    if ( bp_is_page( 'activity' ) ) {
    	// activities to filter on, comma separated
    	$retval['action'] = 'new_product_page, ';
    	$retval['max'] = '50';
    }		
    		return $retval;
    	}	
    add_filter( 'bp_before_has_activities_parse_args', 'bpfr_filtering_activity' );

    Although eventually I started to notice some errors where users were getting notification URLs (e.g. “John commented on one of your updates”) where the notification URLs weren’t appending the comment identifier at the end (e.g. /activity/p/762/?rid=310#acomment-780), instead ending prematurely with only the users referrer ID (e.g. /activity/p/762/?rid=310).

    This means the notification URLs would take you to the commented user’s profile, rather than the specific comment.

    After removing the above code from filtering the activity directory, suddenly all of the notification URLs issues went away and everything appeared to work flawlessly.

    I recall a wordpress developer once stating that is is advised NOT to block activity_comment and activity_update activities, because it will cause errors in BuddyPress.

    What I am wondering is if this is true? And, if there is a way to filter the Activity Directory to show only a specific post type (e.g. new_product_page) without it leading to errors elsewhere in BP? Is there a correct way to do it?

    knowmates
    Participant

    Hello,

    is it possible to inform every user when an admin/author posted a new post?

    We hid the WP admin bar to participants so we want to show the notification with the little bell.

    Best regards

    #320464
    tarunweb1
    Participant

    Hello Guys,

    I am creating a post subscription. When any user subscribe to any post I want to send them notifications about comments and post activities. I am adding custom notifications to buddypress. Notifications are adding but in frontend the title of notification is not showing. I checked many forums but did not find any solution.

    Below is my code:

    
    public function __construct() {
          
          add_filter( 'bp_notifications_get_registered_components', array($this,'custom_filter_notifications_get_registered_components'),20 );
          add_filter( 'bp_notifications_get_notifications_for_user', array($this,'custom_format_buddypress_notifications'), 10, 7 );
          add_action( 'wp_insert_comment', array($this,'bp_custom_add_notification'), 99, 2 );
       }
    
    For custom component
    
    public function custom_filter_notifications_get_registered_components( $component_names = array() ) {
     
           // Force $component_names to be an array
           if ( ! is_array( $component_names ) ) {
               $component_names = array();
           }
        
           // Add 'custom' component to registered components array
           array_push( $component_names, 'custom' );
        
           // Return component's with 'custom' appended
           return $component_names;
       }
    
    For notification formatting
    
    public function custom_format_buddypress_notifications( $content, $item_id, $secondary_item_id, $total_items, $format = 'string', $action, $component ) {
         	   
             if ( 'custom_action' === $action ){
               $comment = get_comment( $item_id );
            
               $custom_title = $comment->comment_author . ' commented on the post ' . get_the_title( $comment->comment_post_ID );
               $custom_link  = get_comment_link( $comment );
               $custom_text = $comment->comment_author . ' commented on your post ' . get_the_title( $comment->comment_post_ID );
        
               // WordPress Toolbar
               if ( 'string' === $format ) {
                   $data_to_return = apply_filters_ref_array( 'custom_filter', '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_title ) . '">' . esc_html( $custom_text ) . '</a>', $custom_text, $custom_link );
                   
        
               // Deprecated BuddyBar
               } else {
                   $data_to_return = apply_filters_ref_array( 'custom_filter', array(
                       'text' => $custom_text,
                       'link' => $custom_link
                   ), $custom_link, (int) $total_items, $item_id, $secondary_item_id );
               }
               
             return $data_to_return;     
          } else{
             return $action;
          } 
       }
    
    For adding notification
    
    public function bp_custom_add_notification( $comment_id, $comment_object ) {
     
          $subscribed_user =  get_post_meta( $comment_object->comment_post_ID , 'subscribed_user',true ); 
          
          if(!empty($subscribed_user) && is_array($subscribed_user)){
             for ($i=0; $i < count($subscribed_user); $i++) { 
          		 if ( bp_is_active( 'notifications' ) ) {
                      bp_notifications_add_notification( array(
                         'user_id'           => $subscribed_user[$i],
                         'item_id'           => $comment_id,
                         'component_name'    => 'custom',
                         'component_action'  => 'custom_action',
                         'date_notified'     => bp_core_current_time(),
                         'is_new'            => 1,
                       ) );
          		 }
             }
          }   
       }
    
    

    Please suggest best possible way to fix this issue.

    Thank You

    #320358
    Anonymous User 18296540
    Inactive

    100% bug in POT/PO files or notification system. It is not possible to translate the contents of activation emails. Only the fragments remain translated, but the greater part (no error was made) remains in English. This applies to phrases such as:

    1)
    Thanks for registering!

    To complete the activation of your account and site, go to the following link: {{{activate-site.url}}}.

    After you activate, you can visit your site at {{{user-site.url}}}.

    2)
    Thanks for registering!

    To complete the activation of your account and site, go to the following link: {{{activate-site.url}}}

    After you activate, you can visit your site at {{{user-site.url}}}.

    3)
    Thanks for registering!

    To complete the activation of your account, go to the following link and click on the ‘Activate’ button: {{{activate.url}}}

    If the ‘Activation Key’ field is empty, copy and paste the following into the field – {{key}}

    4)
    Thanks for registering!

    To complete the activation of your account, go to the following link and click on the Activate button:
    {{{activate.url}}}

    If the ‘Activation Key’ field is empty, copy and paste the following into the field – {{key}}

    5)
    Your account was activated successfully! You can now log in with the username and password you provided when you signed up.

    6)
    Your account was activated successfully! You can now log in with the username and password you provided when you signed up.

    #320158
    pooriaarab
    Participant

    Hi Shane,

    Thanks for the quick reply and it actually worked! Thank you 🙂

    The sidebar shows for a specific user type now but it shows up in the wrong location. I tried the code in different places but it’s in the middle of the profile now and want it to be on the left side like the normal sidebar for user profile.

    The first part of the code is the simplified version you mentioned and the css styling. The rest is the remaining of the loop on that page. I suppose the code should go somewhere in there:

    </div><!-- #item-body -->
                <?php
                $member_type = bp_get_member_type( bp_displayed_user_id() );
           if ( $member_type == 'club' ) {?>
               <div id="secondary" class="widget-area sm-grid-1-1 no-padding-top" role="complementary">
                   <div class="bb-sticky-sidebar">
                       <?php dynamic_sidebar( 'club_sidebar'); ?>
                   </div>
               </div>
           <?php
            }
           
           ?>
       <?php
                    
                if ( ( !isset($bp_nouveau_appearance['user_nav_display']) || !$bp_nouveau_appearance['user_nav_display'] ) && is_active_sidebar('user_activity') && bp_is_user_activity() ) {
    
    				ob_start();
    				dynamic_sidebar('user_activity' );
    				$sidebar = ob_get_clean();  // get the contents of the buffer and turn it off.
    				if ( trim( $sidebar ) ) { ?>
    					<div id="user-activity" class="widget-area" role="complementary">
    						<div class="bb-sticky-sidebar">
    							<?php dynamic_sidebar( 'user_activity' ); ?>
    						</div>
    					</div><?php
    				}
    			}
              
    			if ( ( !isset($bp_nouveau_appearance['user_nav_display']) || !$bp_nouveau_appearance['user_nav_display'] ) && is_active_sidebar( 'profile' ) && !bp_is_user_settings() && !bp_is_user_messages() && !bp_is_user_notifications() && !bp_is_user_profile_edit() && !bp_is_user_change_avatar() && !bp_is_user_change_cover_image() && !bp_is_user_front() && $profile_cover_width == 'full' ) {
    
    			    ob_start();
    	            dynamic_sidebar('profile' );
    	            $sidebar = ob_get_clean();  // get the contents of the buffer and turn it off.
    				if ( trim( $sidebar ) ) { ?>
    					<div id="secondary" class="widget-area sm-grid-1-1 no-padding-top" role="complementary">
    						<div class="bb-sticky-sidebar">
    							<?php dynamic_sidebar( 'profile'); ?>
    						</div>
    					</div>
    					<?php
    				}
    			}
    			?>
    		</div>
    
    	</div><!-- // .bp-wrap -->
        	<?php if ( isset($bp_nouveau_appearance['user_nav_display']) && $bp_nouveau_appearance['user_nav_display'] &&  is_active_sidebar( 'profile' ) && !bp_is_user_settings() && !bp_is_user_messages() && !bp_is_user_notifications() && !bp_is_user_profile_edit() && !bp_is_user_change_avatar() && !bp_is_user_change_cover_image() && !bp_is_user_front() && $profile_cover_width != 'default' ) { ?>
    			</div>
    
    			<?php
    			ob_start();
    			dynamic_sidebar('profile' );
    			$sidebar = ob_get_clean();  // get the contents of the buffer and turn it off.
    			if ( trim( $sidebar ) ) {
    				?>
    				<div id="secondary" class="widget-area sm-grid-1-1 no-padding-top" role="complementary">
    					<div class="bb-sticky-sidebar">
    						<?php dynamic_sidebar( 'profile'); ?>
    					</div>
    				</div>
    				<?php
    			}
    			?>
    

    This is a screenshot of where the sidebar is appearing:

    Certificates is in the middle. How can it be in the place of cart?

    -How can I move the sidebar (Certificates) to where the left sidebar (Cart) is?

    -And how can I repeat this process for 3 different user types? 3 custom sidebars for 3 user types.

    -I was not sure what “ob_start()” and “bp_nouveau_appearance” were that appear in the beginning of the other sidebar code. How can I add them to the custom sidebar? Are they even necessary?

    Appreciate the support and the community around BuddyPress

    #320143
    pooriaarab
    Participant

    Hi,

    I’m trying to add a custom sidebar (for the widgets) for different user types. We have 3 different user types as “Member”, “Instructor”, and “Facilitator”. For these 3 different user types, we want 3 different sidebars. So, as you would go on Appearance -> Widgets you can see 3 sidebars and you can add the widgets to and they will ONLY appear for that specific user type.

    I managed to register the sidebar in the functions.php in the Childs Theme but was not sure how to call it in the BuddyPress > Members > Single > Home.php. I know I have to use bp_get_member_type() and if conditional to make it and call it using dynamic_sidebar(). Though I tried it and as the code is in the loop, it does not work.

    This is the code in the home.php which I assume I should include it in:

    if ( ( !isset($bp_nouveau_appearance['user_nav_display']) || !$bp_nouveau_appearance['user_nav_display'] ) && is_active_sidebar( 'profile' ) && !bp_is_user_settings() && !bp_is_user_messages() && !bp_is_user_notifications() && !bp_is_user_profile_edit() && !bp_is_user_change_avatar() && !bp_is_user_change_cover_image() && !bp_is_user_front() && $profile_cover_width == 'full' ) {

    ob_start();
    dynamic_sidebar('profile' );
    $sidebar = ob_get_clean(); // get the contents of the buffer and turn it off.
    if ( trim( $sidebar ) ) { ?>
    <div id="secondary" class="widget-area sm-grid-1-1 no-padding-top" role="complementary">
    <div class="bb-sticky-sidebar">
    <?php dynamic_sidebar( 'profile'); ?>
    </div>
    </div>
    <?php
    }
    }

    I am using BuddyBoss theme.

    benofinil
    Participant

    Hello all,

    I’ve looked throught the forum and many plugins, and I can not solve this problem which seems “so simple” to me !

    How to configure an email sent to the administrator each time a registration is done ?

    Let me explain :
    My community system is based on pre-registered users in a database.
    So, when a user registers on my site, he receives an email (originally, the wordpress email with the activation link) telling him that his account is being verified by the administrator.
    Then, the account is in the user pending system, and the administrator can activate or not this account manually.
    If the account is validate, the user will receive a welcoming message, etc.

    BUT, I would like to receive an email informing me that a user has registered, ie who has completed the registration form BUT has not yet validated his account. However, the default wordpress email is only sent to the administrator when the account is validate.

    It’s really exhausting to check permanetly if a user is in the pending system, in order to validate or refuse its account…

    Hope someone could help me…
    Thanks

    #319864
    soberstoner
    Participant

    I am still experiencing this issue and have found no possible solutions. I would like to add that email notifications are also not being sent. I have checked if notifications are working by using a notification widget and viewing them there, on the subsite. Users are not being notified of new notifications.

    lynnapp
    Participant

    Hi,
    I have been using the below code, So when someone clicks on the profile of an association it will redirect to the products tab.
    All is well and I can use the other tabs to navigate around except when I click on the activities tab. It takes me to the products tab users cannot see the associations (role) activity stream.

    I removed this code and it worked fine so it is some where here. I have this in the child-theme/buddypress-nouveau/members/single/home.php page

    WP Version 5.7.2 PHP 7.4.12

    	$displayed_user =  new WP_User( bp_displayed_user_id() );
    
    	if  ( ( in_array( 'associations', $displayed_user->roles, true ))   &&  
    		(strpos($_SERVER['REQUEST_URI'], "my-products") == false)  &&
    		(strpos($_SERVER['REQUEST_URI'], "front") == false)  &&
    		(strpos($_SERVER['REQUEST_URI'], "profile") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "activity") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "friends") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "my-donations") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "notifications") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "messages") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "groups") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "location") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "invite-anyone") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "settings") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "w-my-account") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "store-manager") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "articles") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "media") == false) &&
    		(strpos($_SERVER['REQUEST_URI'], "item-header-content") == false) 
    		) 
     
    	{
     //is assoc and is not already redirected to products or other profile links
    	$currenturl =  $_SERVER['REQUEST_URI'];
        	$urlto = $currenturl."my-products";
    ?>
            <script>
    	window.location.replace("<?php echo($urlto); ?>");
    	</script>
    <?php	
    
      	} else {  //  just load
    ?>
    

    Thank you for helping with this

    #319111
    vincenzon617
    Participant

    How do I edit the activity stream? I would like to remove the “favouriting, and @mentions, all with full RSS feed and email notification support” capabilities from my site. So ideally the users will not receive email notifications and they cannot be mentioned in a comment.

    #316907
    lynnapp
    Participant

    in my child theme I have added this to the members/single/parts/item-nav

            <label class="toggle" for="toggle">☰ <span>Menu</span></label>
            <input class="toggle" id="toggle" type="checkbox">
    
    <nav class="<?php bp_nouveau_single_item_nav_classes(); ?>" id="object-nav" role="navigation" aria-label="<?php esc_attr_e( 'Member menu', 'buddypress' ); ?>">
    	<?php if ( bp_nouveau_has_nav( array( 'type' => 'primary' ) ) ) : ?>
    		<ul>
       <?php bp_nav_menu(); ?> 
    		</ul>
    	<?php endif; ?>
    </nav>
     

    I have removed the submenu form all the other page fronts
    So this is the problem

    1. The loop for the sub-menus is
    a. Putting the profile menu items under a new submenu under settings
    (this submenu )

    	<ul class="sub-menu">
    		<li id="public-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/#item-header-content">View</a></li>
    		<li id="edit-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/edit/#item-header-content">Edit</a></li>
    		<li id="change-avatar-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/change-avatar/#item-header-content">Change Profile Photo</a></li>
    		<li id="change-cover-image-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/change-cover-image/#item-header-content">Change Cover Image</a></li>
    	</ul>

    Here is the source codes for the menus while looking at looking at my own profile not as admin.

    So I was wondering if the walker argument could help with this, but I could not find any documentation on that part.
    Could you point me to where or how to get the profile submenu items under the profile li and not as a sub sub of settings?

    <nav class="main-navs no-ajax bp-navs single-screen-navs user-nav-tabs tabbed-links horizontal users-nav" id="object-nav" role="navigation" aria-label="Member menu">
    		<ul>
       <div class="menu-bp-container"><ul id="menu-bp" class="menu"><li id="front-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/front/#item-header-content">Home</a>
    <ul class="sub-menu">
    	<li id="public-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/front/#item-header-content">View</a></li>
    </ul>
    </li>
    <li id="xprofile-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/profile/#item-header-content">Profile</a></li>
    <li id="activity-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/activity/#item-header-content">Activity</a>
    <ul class="sub-menu">
    	<li id="just-me-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/#item-header-content">Personal</a></li>
    	<li id="activity-mentions-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/mentions/#item-header-content">Mentions</a></li>
    	<li id="activity-favs-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/favorites/#item-header-content">Favorites</a></li>
    	<li id="activity-friends-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/friends/#item-header-content">Friends</a></li>
    	<li id="activity-groups-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/groups/#item-header-content">Groups</a></li>
    </ul>
    </li>
    <li id="friends-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/friends/#item-header-content">Friends <span class="count" style="cursor: pointer;">1</span></a>
    <ul class="sub-menu">
    	<li id="friends-my-friends-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/friends/#item-header-content">Friendships</a></li>
    	<li id="requests-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/friends/requests/#item-header-content">Requests</a></li>
    </ul>
    </li>
    <li id="notifications-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/notifications/#item-header-content">Notifications <span class="count" style="cursor: pointer;">1</span></a>
    <ul class="sub-menu">
    	<li id="notifications-my-notifications-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/notifications/#item-header-content">Unread</a></li>
    	<li id="read-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/notifications/read/#item-header-content">Read</a></li>
    </ul>
    </li>
    <li id="invite-anyone-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/invite-anyone/#item-header-content">Send Invites</a>
    <ul class="sub-menu">
    	<li id="invite-new-members-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/invite-anyone/#item-header-content">Invite New Members</a></li>
    	<li id="sent-invites-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/invite-anyone/sent-invites/#item-header-content">Sent Invites</a></li>
    </ul>
    </li>
    <li id="settings-personal-li" class="menu-parent current-menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/settings/#item-header-content">Settings</a>
    <ul class="sub-menu">
    	<li id="general-personal-li" class="menu-child current-menu-item"><a href="http://localhost/wordpress/members/athlete-lynn/settings/#item-header-content">General</a></li>
    	<li id="notifications-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/notifications/#item-header-content">Email</a></li>
    	<li id="profile-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/profile/#item-header-content">Profile Visibility</a>
    	<ul class="sub-menu">
    		<li id="public-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/#item-header-content">View</a></li>
    		<li id="edit-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/edit/#item-header-content">Edit</a></li>
    		<li id="change-avatar-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/change-avatar/#item-header-content">Change Profile Photo</a></li>
    		<li id="change-cover-image-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/change-cover-image/#item-header-content">Change Cover Image</a></li>
    	</ul>
    </li>
    	<li id="invites-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/invites/#item-header-content">Group Invites</a></li>
    	<li id="data-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/data/#item-header-content">Export Data</a></li>
    	<li id="delete-account-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/delete-account/#item-header-content">Delete Account</a></li>
    </ul>
    </li>
    <li id="groups-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/groups/#item-header-content">Groups <span class="no-count">0</span></a>
    <ul class="sub-menu">
    	<li id="groups-my-groups-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/groups/#item-header-content">Memberships</a></li>
    	<li id="invites-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/groups/invites/#item-header-content">Invitations</a></li>
    </ul>
    </li>
    </ul></div> 
    		</ul>
    </nav>
    #316925
    lynnapp
    Participant

    in my child theme I have added this to the members/single/parts/item-nav
    <label class=”toggle” for=”toggle”>☰ <span>Menu</span></label>
    <input class=”toggle” id=”toggle” type=”checkbox”>

    <nav class=”<?php bp_nouveau_single_item_nav_classes(); ?>” id=”object-nav” role=”navigation” aria-label=”<?php esc_attr_e( ‘Member menu’, ‘buddypress’ ); ?>”>
    <?php if ( bp_nouveau_has_nav( array( ‘type’ => ‘primary’ ) ) ) : ?>

      <?php bp_nav_menu(); ?>

    <?php endif; ?>
    </nav>

    I have removed the submenu form all the other page fronts
    So this is the problem

    1. The loop for the sub-menus is
    a. Putting the profile menu items under a new submenu under settings
    (this submenu )

    	<ul class="sub-menu">
    		<li id="public-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/#item-header-content">View</a></li>
    		<li id="edit-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/edit/#item-header-content">Edit</a></li>
    		<li id="change-avatar-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/change-avatar/#item-header-content">Change Profile Photo</a></li>
    		<li id="change-cover-image-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/change-cover-image/#item-header-content">Change Cover Image</a></li>
    	</ul>

    Here is the source codes for the menus while looking at looking at my own profile not as admin.

    So I was wondering if the walker argument could help with this, but I could not find any documentation on that part.
    Could you point me to where or how to get the profile submenu items under the profile li and not as a sub sub of settings?

    <nav class="main-navs no-ajax bp-navs single-screen-navs user-nav-tabs tabbed-links horizontal users-nav" id="object-nav" role="navigation" aria-label="Member menu">
    		<ul>
       <div class="menu-bp-container"><ul id="menu-bp" class="menu"><li id="front-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/front/#item-header-content">Home</a>
    <ul class="sub-menu">
    	<li id="public-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/front/#item-header-content">View</a></li>
    </ul>
    </li>
    <li id="xprofile-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/profile/#item-header-content">Profile</a></li>
    <li id="activity-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/activity/#item-header-content">Activity</a>
    <ul class="sub-menu">
    	<li id="just-me-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/#item-header-content">Personal</a></li>
    	<li id="activity-mentions-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/mentions/#item-header-content">Mentions</a></li>
    	<li id="activity-favs-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/favorites/#item-header-content">Favorites</a></li>
    	<li id="activity-friends-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/friends/#item-header-content">Friends</a></li>
    	<li id="activity-groups-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/activity/groups/#item-header-content">Groups</a></li>
    </ul>
    </li>
    <li id="friends-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/friends/#item-header-content">Friends <span class="count" style="cursor: pointer;">1</span></a>
    <ul class="sub-menu">
    	<li id="friends-my-friends-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/friends/#item-header-content">Friendships</a></li>
    	<li id="requests-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/friends/requests/#item-header-content">Requests</a></li>
    </ul>
    </li>
    <li id="notifications-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/notifications/#item-header-content">Notifications <span class="count" style="cursor: pointer;">1</span></a>
    <ul class="sub-menu">
    	<li id="notifications-my-notifications-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/notifications/#item-header-content">Unread</a></li>
    	<li id="read-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/notifications/read/#item-header-content">Read</a></li>
    </ul>
    </li>
    <li id="invite-anyone-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/invite-anyone/#item-header-content">Send Invites</a>
    <ul class="sub-menu">
    	<li id="invite-new-members-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/invite-anyone/#item-header-content">Invite New Members</a></li>
    	<li id="sent-invites-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/invite-anyone/sent-invites/#item-header-content">Sent Invites</a></li>
    </ul>
    </li>
    <li id="settings-personal-li" class="menu-parent current-menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/settings/#item-header-content">Settings</a>
    <ul class="sub-menu">
    	<li id="general-personal-li" class="menu-child current-menu-item"><a href="http://localhost/wordpress/members/athlete-lynn/settings/#item-header-content">General</a></li>
    	<li id="notifications-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/notifications/#item-header-content">Email</a></li>
    	<li id="profile-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/profile/#item-header-content">Profile Visibility</a>
    	<ul class="sub-menu">
    		<li id="public-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/#item-header-content">View</a></li>
    		<li id="edit-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/edit/#item-header-content">Edit</a></li>
    		<li id="change-avatar-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/change-avatar/#item-header-content">Change Profile Photo</a></li>
    		<li id="change-cover-image-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/profile/change-cover-image/#item-header-content">Change Cover Image</a></li>
    	</ul>
    </li>
    	<li id="invites-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/invites/#item-header-content">Group Invites</a></li>
    	<li id="data-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/data/#item-header-content">Export Data</a></li>
    	<li id="delete-account-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/settings/delete-account/#item-header-content">Delete Account</a></li>
    </ul>
    </li>
    <li id="groups-personal-li" class="menu-parent"><a href="http://localhost/wordpress/members/athlete-lynn/groups/#item-header-content">Groups <span class="no-count">0</span></a>
    <ul class="sub-menu">
    	<li id="groups-my-groups-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/groups/#item-header-content">Memberships</a></li>
    	<li id="invites-personal-li" class="menu-child"><a href="http://localhost/wordpress/members/athlete-lynn/groups/invites/#item-header-content">Invitations</a></li>
    </ul>
    </li>
    </ul></div> 
    		</ul>
    </nav>
    Coequipier.com
    Participant

    I have a BuddyPress social networks in a multi network WordPress install (WordPress multisite), thanks to LH Buddypress Multi Network plugin.

    Everything is up to date.

    How can I prevent people from accessing to a profile page from another blog?

    For example :
    teacherSite, teacherUser
    studentSite, studentUser

    I have restricted access to site for non-member.
    teacherUser can only connect on teacherSite.
    And he can’t see in the directory other users from others blogs.

    If studentUser knows the teacherUser username or if he finds or tests…

    He can go to studentSite.domain.com/members/teacherUser/, and he can see the profile of teacherUser even though teacherUser is not linked to studentSite.

    Fortunately, there is no information (because everything else is well segregated) except the name and the gravatar.

    But he can still make a connection request or send him a private message!
    teacherUser will not see any notification on teacherSite. But he will potentially receive an email which will redirect him to studentSite without being able to connect to it.

    How to avoid this?

    If you know, you are a master!

    #318447
    honoluluman
    Participant

    Hello,

    I am trying to create 2 functionalities and i would like to ask for your help please.

    1. Trying to get all users with WP_User_Query that have not been active for last 60 days

    // Get the contributors and administrators who haven't logged in for 60 days
        $args = array( 
        'role__in' => array( 'contributor', 'administrator' ),
    	'meta_key'     => 'last_activity', // this is a meta_key storing the last time the user was logged in by buddypress in 'Y-m-d H:i:s' format
    	'meta_query' => array( 
            array(
                'key' => 'last_activity',
                'value' => date('Y-m-d H:i:s', strtotime( "-60 days" )), // what am i doing wrong? 
                'compare' => '<',
                'type' => 'DATE' // Let WordPress know we're working with date
                )
            )
        );
    
        $remind_users = new WP_User_Query( $args ); 

    -What am i doing wrong on the comparison?

    2. Send en email notification to specific users when there is a sidewide notice on our website.

    function important_notification() {
        
        $notification = '' . bp_get_message_notice_text( $notice->message ) . '';
    
        $args = array(
        'meta_key'     => '_is_featured'
        );
        
    
        $members = get_users( $args );
        foreach( $members as $member ) {
        $user_id = $member->ID;
        $member_account = bp_core_get_user_domain( $user_id );
        
        $first_name = $member->first_name;
    
        $email_subject = 'Important information';
    
        $message = sprintf( 'Hello %1$s,' , $first_name ) . "<br><br>"; 
       
        $message .= sprintf( 'We have an important information for you:' ) ."<br><br>"; 
        $message .= sprintf( '<i>%1$s</i>' , $notification ) ."<br><br>";
        $message .= sprintf( 'Please login <a href="%1$s" target="_blank">to your account</a> to remove the information if you want.' , $member_account ) ."<br><br>";
        
    
        
        wp_mail( $member->user_email, $email_subject, $message );
        }
    }
    add_action(  'xxxxxxxx',  'important_notification');

    -Will the $notification = '' . bp_get_message_notice_text( $notice->message ) . ''; get the message text of the sidewide notice?
    -In which action could i hook this function in order to send an email when admin will publish a sidewide notification?
    add_action( ‘xxxxxxxx’, ‘important_notification’);

    Thank you very much for your time.

    #318069
    Mike Witt
    Participant

    We seem to be talking past each other. I’m looking in the WP usermeta table. I’m having trouble identifying the buddypress entries which control notifications. I’m not talking about a table that starts with bp_ I’m talking about entries in usermeta with a meta_key that starts with bp_ (sorry, I guess I wasn’t clear about that).

    Maybe looking for meta_keys with bp_ is not the right way to find what I’m after. But if there is any documentation that describes how notification status is stored I would just like to see it. If this is a case where I have to simply read the code, so be it. I was just hoping for a quick pointer to exactly where I could look in the database to find out what BP notifications a user has turned on.

    Again, sorry if I didn’t make that clear.

    songdove
    Participant

    I don’t remember where I unchecked it now, but thankfully, my admin bar does not show for logged-in users. However, as I search around for notification methods that work on the activity wall (otherwise you don’t see that you had any till you visit your own profile), most are throwing notifications up in the admin bar! I tried out Buddy Bell, but it caused an error with the site-wide activity feed, so I removed that. What automatic notification plugins are out there that will alert the user to new notifications no matter where they are on the site? I don’t like the idea of being forced to visit my profile to see if I have any notifications. Particularly due to the fact that activity in private groups doesn’t even reach the site-wide activity feed. I need a notification alert that works site-wide.

    MikeAlan
    Participant

    Is it possible to add ‘notification counters’ to the relevant tabs ie: Groups, Members, Activity, Friends, Notifications etc in a Buddypress secondary menu. They appear in the default Buddypress menu but are not replicated in a secondary menu.

    I’ve tried using:
    function my_counter_nav_menu($menu) {

    if ( ! is_user_logged_in() ) {
    return $menu;
    }

    $user_id = bp_loggedin_user_id();
    $user_url = bp_loggedin_user_domain();

    $friends_url = $user_url . bp_get_friends_slug() . ‘/’;
    $msg_url = $user_url . bp_get_messages_slug() . ‘/’;
    $notify_url = $user_url . bp_get_notifications_slug() . ‘/’;
    $notify_url = $user_url . bp_get_groups_slug() . ‘/’;

    ob_start();
    ?>

  • friends”><span class=”notifications_icons” ><i class=”fas fa-user-friends” style=”font-size:17px;”></i></span><span class=”my_bubble_notify”><?php echo friends_get_friend_count_for_user( $user_id );?></span>
  • messages”><span class=”notifications_icons”><i class=”fas fa-envelope” style=”font-size:17px;”></i></span><span class=”my_bubble_notify”><?php echo bp_get_total_unread_messages_count( $user_id );?></span>
  • notifications”><span class=”notifications_icons”><i class=”fas fa-bell” style=”font-size:17px;”></i></span><span class=”my_bubble_notify”><?php echo bp_notifications_get_unread_notification_count( $user_id );?></span>
  • groups”><span class=”notifications_icons”><i class=”fas fa-users” style=”font-size:17px;”></i></span><span class=”my_bubble_notify”><?php echo bp_get_total_group_count( $user_id );?></span>
  • <?php
    $menu_items = ob_get_clean();
    $menu = $menu . $menu_items;
    return $menu;
    }
    add_filter( ‘wp_nav_menu_items’, ‘my_counter_nav_menu’ );

    but this only adds them all to the bottom of the menu and not the individual tabs.

    I have created a guest login to view a relevant page
    User name: Guest
    Password: Guest-192
    Please navigate to https://elmfieldschoolalumni.uk/members/me/groups

    The light blue menu is the one created by BuddyPress, to show notifications and the dark blue one is the secondary menu, the one to be used in the end product.

    Any help with this would be very much appreciated.

#317650
Jing
Participant

We have a question regarding the BP Rest API.

We are building a mobile app, in which forum is a key function. BP Rest API is used in our WordPress site that powers this app.

When the forum a user subscribes to has new reply or new topic, the user will receive a notification.

We would like the user click on the notification and be redirected to the forum new forum.

To achieve this on the mobile app, we need message ID to redirect the user to the right screen. We are using BP Rest API. How to obtain the message ID? Please advise.

#317647
nomadsland
Participant

hello, good evening,

I am using buddypress with bbpress and I have a little problem: when I get a notification where a user mentioned me; I click on the notification and buddypress redirects me to my profile / activity / mention whereas I would like buddypress to redirect me directly to the post.

Does anyone have the solution?

#317502
bibblybob
Participant

I have the same problem. No email is triggered when a new user registers. Any idea what to do? This pretty much will ruin any chances of getting sign ups.

I’ve integrated a mailer (eg. Sendgrid) and other emails are going out ok such as comment notifications. But no activation email for a user who wants to sign up.

Any help appreciated!

#317380
varkoff
Participant

Project Details :
– WordPress version : 5.5.3
– BuddyPress version : 6.3.0
– Website Link : https://microfarmap.dev-local.com/
– Other plugins I use : Advanced Custom Fields PRO, Advanced Custom Fields: JSON, bbPress, bbPress – Moderation Tools, BuddyForm Premium, BuddyForm Advanced Custom Fields, BuddyForm Hook Fields, BuddoForm Members Premium, BuddyPress Username Changer, Custom Post Type UI, LoginPress, Paid Memberships Pro, Progress Map, List & Filter, User Role Editor …

Hello,
I have been updating a WordPress website that was made by others, I might lack some information.

BuddyPress works like a charm except for a few features :

– From the user profile, we can send friendship requests. As a new user, I sent a friendship request to my admin account. I did receive the notification on my admin profile, but the Friends tab says there is no friend requests pending. It just doesn’t display theme on my customized Understrap theme.

– Switching to WordPress Twenty Twenty One theme does solve the issues. Switching to Understrap parent theme does switch the issue. There seems to be a problem with my custom theme.

Under this custom there, there is a /buddypress/ directory with template pages and loops. The buddypress/members/single/friends/requests-loop.php file was not modified, it’s the default one. That’s where I checked first.

I also checked in the plugin files directly, under plugins/buddypress/bp-friends/bp-friends-functions.php but did not find a clue.

After some research, I found out that only users that have an active ‘ Paid Memberships Pro ‘ subscription can send friend requests, or atleast their friend requests appear.

I also installed the ” BuddyPress Integration ” plugin from Paid Memberships Pro website, in which there is an option to allow non-registered users to send friend requests, but it did not solve the issue.

Please if you need more details or even an access, do not mind asking.

#317262
lusidave
Participant

Hi,

I have a wp + BP installation where users do not get email notifications when a private message is being sent (all other emails notifications are ok).

can you help me please ?

thanks a lot

David

#316736
lynnapp
Participant

Hi, I have a site with no functions. the only plugin activated is buddy press,

so when it loads the object for the nav after the bp-wrap div it has

<nav class=”main-navs no-ajax bp-navs single-screen-navs horizontal users-nav” id=”object-nav” role=”navigation” aria-label=”Member menu”>

I had the site with custom themes and functions and removed everything to try and find out where it was getting hung up.

Is there something else I can trouble shoot this with to find out why it does not load with Ajax – I thought that should be the default

WP is 5.6
Theme twenty twenty-one 1.1
php 7.4
Buddy Press info Version 7.1.0
Active components Community Members, Extended Profiles, Account Settings, Friend Connections, Private Messaging, Activity Streams, Notifications, User Groups
Active template pack BuddyPress Nouveau 7.1.0 ( I have tried with bp legacy also )
Toolbar No
Account Deletion Yes
Community Members: Profile Photo Uploads Yes
Community Members: Cover Image Uploads Yes
Extended Profiles: Profile Syncing Yes
User Groups: Group Creation Yes
User Groups: Group Photo Uploads Yes
User Groups: Group Cover Image Uploads Yes
Activity Streams: Post Comments Yes
Activity Streams: Activity auto-refresh Yes

#315753
phy9pas
Participant

I think I may have spotted a bug in the notifications that are raised for a nested reply.
In
bbpress/includes/extend/buddypress/notifications.php
LINE 165


// Notify the immediate reply author if not the current reply author
	if ( ! empty( $reply_to ) && ( $author_id !== $reply_to_item_id ) ) {
		$args['user_id']           = $reply_to_item_id;
		$args['secondary_item_id'] = $topic_author_id;
		bp_notifications_add_notification( $args );
	}

I believe the secondary_item_id here should be $author_id.
Otherwise:
user1 writes the topic
user2 replies to the topic
user3 replies to user2

This will add a notification for user2 with user1 as the author, where as it should have a notification for user2 with user3 as the author.

The fix is to change this line to


$args['secondary_item_id'] = $author_id;

Would love to know if I’ve misunderstood the logic here, or if this is a genuine bug.

Thanks

Pete

#313790
Unknown
Participant

Some of my users encounter this statement “”There has been a critical error on your site.”, when they create groups. Although when they refresh it and click on their profile the group is created. This is the error found.
[11-Sep-2020 07:12:01 UTC] PHP Fatal error: Uncaught Error: Class ‘PHPMailer’ not found in /srv/htdocs/wp-content/plugins/buddypress/bp-core/classes/class-bp-phpmailer.php:91
Stack trace:
#0 /srv/htdocs/wp-content/plugins/buddypress/bp-core/bp-core-functions.php(3233): BP_PHPMailer->bp_email(Object(BP_Email))
#1 /srv/htdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-notifications.php(365): bp_send_email(‘groups-invitati…’, 102044344, Array)
#2 /srv/htdocs/wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-invitation-manager.php(55): groups_notification_group_invites(Object(BP_Groups_Group), 102044344, 102044348)
#3 /srv/htdocs/wp-content/plugins/buddypress/bp-core/classes/class-bp-invitation-manager.php(197): BP_Groups_Invitation_Manager->run_send_action(Object(BP_Invitation))
#4 /srv/htdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-functions.php(1718): BP_Invitation_Manager->send_invitation_by_id(1178)
#5 /srv/htdocs/wp-content/plugins/buddypress/bp-groups/actions/create.php(139): groups_send_invites(Array)
#6 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(287): groups_action_create_group(”)
#7 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#8 /wordpress/core/5.5.1/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#9 /srv/htdocs/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(353): do_action(‘bp_actions’)
#10 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(287): bp_actions(”)
#11 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#12 /wordpress/core/5.5.1/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#13 /srv/htdocs/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(430): do_action(‘bp_template_red…’)
#14 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(287): bp_template_redirect(”)
#15 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#16 /wordpress/core/5.5.1/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#17 /wordpress/core/5.5.1/wp-includes/template-loader.php(13): do_action(‘template_redire…’)
#18 /wordpress/core/5.5.1/wp-blog-header.php(19): require_once(‘/wordpress/core…’)
#19 /wordpress/core/5.5.1/index.php(17): require(‘/wordpress/core…’)
#20 {main}
thrown in /srv/htdocs/wp-content/plugins/buddypress/bp-core/classes/class-bp-phpmailer.php on line 91

I hope someone can help me with this. This is a link to my site https://getaprofessor.com/

Viewing 25 results - 51 through 75 (of 768 total)
Skip to toolbar