Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'notification user id'

Viewing 25 results - 126 through 150 (of 768 total)
  • Author
    Search Results
  • amilapriyankara16
    Participant

    Hi there,

    I was trouble shooting already hosted live website which is already setup buddy press wall.

    BuddyPress – Version 4.1.0
    BuddyBoss Wall – Version 1.3.2
    BuddyBoss Media – Version 3.2.2
    BuddyPress Activity Filter – Version 2.0.0
    Wordpress – Version 4.9.6

    And user can post on there friend profile and see the posted on user wall. But when mentioned user wall doesn’t display it. Any idea what will causing this issue.

    But the wall post will notify and notification will be redirect site-wide-activity page display posts on that page, not on their wall.

    #302663
    Venutius
    Moderator

    Ah yes, slight correction required:

    <?php $args = array(
        'links'  => array(
    	bp_get_the_notification_mark_link( bp_displayed_user_id() )
    	)
    );?>
    #302662
    hthornhillhww
    Participant

    thanks for your help, I have got the page to only show the unread link but now when you hover over the link, it wont work as the format of the link is wrong, do you know why?

    This is the link before (top) and after (bottom)

    https://www.dropbox.com/s/zoiencz9qbweanr/links%20before%20and%20after%20change.jpg?dl=0

    and this is my code

    <?php $args = array(
    						'links'  => array(
    						bp_get_the_notification_mark_link( $user_id )
    						)
    						);?>
    						
    						<td class="notification-actions"><?php bp_the_notification_action_links( $args ); ?></td>
    #302661
    Venutius
    Moderator

    You are welcome.

    When you get to edit the file you will see something like this:

    <?php bp_the_notification_action_links(); ?>

    The extra code will need to go within a set of PHP tags just like the function call is.

    So your code should end up looking something like this:

    <?php $args = array(
        'links'  => array(
    	bp_get_the_notification_mark_link( $user_id )
    	)
    );?>

    place this in a new line before the modified function call:

    <?php bp_the_notification_action_links( $args ); ?>

    #302654
    Venutius
    Moderator

    It looks like the function bp_the_notification_action_links() accepts $args that would allow you to remove the delete link. So you could overload your `members/single/notifications/notifications-loop.php file to include something like the following:

    $args = array(
        'links'  => array(
    	bp_get_the_notification_mark_link( $user_id )
    	)
    );

    and add this to the function call: bp_the_notification_links( $args )

    Something like that looks like it would work, not tested it though.

    #302614
    mikeavena
    Participant

    I’m trying to create a theme with a messages notification/box in the header. So far, everything works fine for regular users. However, if logged in as an administrator, bp_has_message_threads() will return nothing, even if the user has messages. This only happens on non-profile pages – if you navigate to a user profile (buddypress page), the message appear as expected. My best guess is the profile pages are executing some function that I’m not? Here’s the loop I created:

    if(bp_has_message_threads(array('max' => 5)))
    							{
    								// TODO: put buttons 'mark all as read' and 'go to inbox'
    								
    								while(bp_message_threads())
    								{
    									bp_message_thread();
    									printf('<div class="dropdown-divider"></div>');
    									printf('<a href="%1$s" class="dropdown-item">%2$s...<br>From: %3$s</a>',
    											bp_get_message_thread_view_link(),
    											bp_get_message_thread_excerpt(),
    											wp_strip_all_tags(bp_get_message_thread_from()));
    								}
    								
    								printf('<div class="dropdown-divider"></div>');
    								printf('<a href="%1$smessages" class="dropdown-item">See all messages...</a>', bp_loggedin_user_domain());
    							}
    							else
    							{
    								// If users has no unread messages, tell them and give a link to their full inbox
    								printf('<a href="%1$smessages" class="dropdown-item">You have no messages</a>', bp_loggedin_user_domain());
    							}
    #302593
    drstrats
    Participant

    Hi
    I’m using BuddyPress and upon registration of users, the email notifications are sent using the hosting server which lands 100% of the times at spam folder.
    to solve this I’ve installed the WP Mail SMTP plugin but this it didn’t affect BuddyPress Smtp settings.
    Please someone with a solution to solve this.
    Thanks

    #302279
    dietcheese
    Participant

    I am attempting to integrate BuddyPress into a custom plugin.

    I would like to take certain BuddyPress sections (like Messages and Notifications) and give access to those forms so that a logged in user can compose messages, read/delete notifications, on my custom pages – not using the default BuddyPress pages (/messages/, /notifications/, etc), but using my custom pages.

    What’s the best way of approaching this? I’ve looked at endpoints, shortcodes, and Buddyforms but I’m not having much luck yet.

    #302271
    kandersson78
    Participant

    Users names do not appear when letters are typed after @

    The mention “works” notification wise but the autosuggest (I guess this is what it’s called) doesn’t.

    Looking in Chrome Console I have an error:

    Uncaught SyntaxError: Invalid or unexpected token mentions.min.js?ver=4.1.0:13

    /wp-content/plugins/buddypress/bp-activity/js/mentions.min.js?ver=4.1.0

    The error icon is shown at the end of line 13:

    11 var i={
    12 delay:200,hideWithoutSuffix:!0,insertTpl:”@${
    13 ID
    14 }

    The console also says that (no error icon there though):

    JQMIGRATE: Migrate is installed, version 1.4.1 jquery-migrate.min.js?ver=1.4.1:2

    /wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1

    Varun Dubey
    Participant

    @datenfresser You can find them inside user meta
    http://prntscr.com/m7gdur
    To set default values you can check previous thread

    Email notification default settings

    #302168
    Venutius
    Moderator

    One aspect I forgot was if the user is not logged in, ths would fix that:

    const notificationsCounter = document.getElementById('ab-pending-notifications');
    const notificationsIndicator = document.getElementById('wp-admin-bar-bp-notifications');
    
    function counterChange() {
    	if (notificationsCounter.innerText == '0') {
    		notificationsIndicator.style.display = 'none';
    	} else {
    		notificationsIndicator.style.display = 'block';
    	}
    }
    
    if (notificationCounter){
        notificationsCounter.addEventListener('change', counterChange);
    }
    counterChange();
    #283047
    mutoha
    Participant

    Is there a function to branch pages?

    Currently I am supplementing that function with the following code.

    $arr = explode( '/', $_SERVER['REQUEST_URI'] );
    if ( isset($arr[1]) && $arr[1] === 'members' ) :
    
    	if( is_user_logged_in() ) :
    		
    		if( bp_loggedin_user_id() == bp_displayed_user_id() ) :
    		
    			if( ( $arr[3] === '' || $arr[3] === 'activity' || $arr[3] === 'profile' || $arr[3] === 'following' || $arr[3] === 'followers' ) && $arr[4] != 'following' && isset($arr[3]) ) :
    				echo 'hello';
    
    			elseif( $arr[3] === 'forums' ) :
    				echo 'hello';
    
    			elseif( $arr[3] === 'bp-messages' || $arr[3] === 'settings' || $arr[3] === 'notifications' || $arr[3] === 'following' ) :
    				echo 'hello';
    		
    			endif;
    			
    		else:
    			
    			if( ( $arr[3] === '' || $arr[3] === 'activity' || $arr[3] === 'profile' || $arr[3] === 'following' || $arr[3] === 'followers' ) && isset($arr[3]) ) :
    				echo 'hello';
    										
    			elseif( $arr[3] === 'forums' && isset($arr[3]) ) :
    				echo 'hello';
    			
    			endif;	
    			
    		endif;
    
    	else:
    
    		echo 'guest';
    
    	endif;
    	
    endif;	

    But It’s not cool..
    Please inform me if you have a better method to solve the problem than the one previously mentioned.

    #282749
    rahulsavsani
    Participant

    I have real estate theme. I want web hook notifications such that when a user applies for a property on my site, notification with property details and applicant details should be sent to the owner of that property. Is it possible with buddypress notifications? And If yes, please guide me through the steps.

    #282717
    mrditt
    Participant

    As you know, with Buddypress users see an email whenever someone sends them a message and they are offline. We have asked repeatedly to your support if Cometchat overrides BP’s direct messaging function at the basic pricing tier? Because Cometchat email notifications are according to your pricing menu are only available to the highest tier Enterprise pricing and that would cost $12,000 US per year! This functionality is something that Buddypress already does, free, so if CometChat ove rides this functionality then we cannot pay you $12,000 to get it back. Are we missing something? We have tried to ask your support this question but have not received a response. Thank you.

    kaneesha
    Participant

    Hi there,

    So i’ve managed it with a mix of my initial code which i posted firstly and your permalink, so i’ve changed basically this:

    $notif = '<span class="noticecount">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span>';

    to this:

    $notif = '<a href="' . bp_get_notifications_unread_permalink() . '"><span class="noticecount"><i class="noticecounttitle">Notifications</i>'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a>

    Ok so far so good, but this alchemy failed badly with my unread messages version.
    I tested bp_get_messages_permalink(), or bp_get_unread_messages_permalink() and basically the wierdest combinations one can imagine but nothing worked.

    I’ve searched then here the BP froums plus additionally stack overflow but it seems there are so many techniques to link stuff that i’m utterly lost here.

    There were also permalink tags with the term slug this and slug that so i thought i ask here again before my head explodes.

    shanebp
    Moderator

    Suggestion…

    //notification alerts
    function my_nav_menu_notif_counter( $menu, $args ) {      
    	if (!is_user_logged_in()) {
    		return $menu;
    	} else {
    		 if( $args->theme_location == 'primary' ) {	
    			$unread = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );
    			if ( 0 != $unread ) {	
    				$link = '<a href="' . bp_get_notifications_unread_permalink() . '">Notifications '. $unread . '</a>';
    				$notif = '<span class="noticecount">' . $link . '</span>';
    				$menu .= $notif;
    			}
    		}
    	}
    	return $menu;
    }
    add_filter( 'wp_nav_menu_items', 'my_nav_menu_notif_counter', 10, 2 ); 
    kaneesha
    Participant

    Hi,

    first of all i did a search and my coding knowledge is at best “casual” so there were probably solutions to my question inside the search results but since i’m as i said a casual coder at best there is more than just a slight change that haven’t recognized them as solutions … and well now i’m here.

    So please bear with me if possible 🙂

    So i implemented two snippets in my WP theme functions.php, the one shows unread messages and the other one all unread notifications, so far so good! But i’d like to assign both with proper links (clickable urls) to their logical destinations so in this case either to the BP unread messages or BP unread notifications pages.

    Here is my code so far:

    //notification alerts
    function my_nav_menu_notif_counter($menu) {      
            if (!is_user_logged_in())
                    return $menu;
            else
                    $notif = '<span class="noticecount">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span>';
                    $menu = $menu . $notif;
                    return $menu;
    }
    add_filter( 'wp_nav_menu_items', 'my_nav_menu_notif_counter' ); 
    
    //msg notification alerts
    function my_nav_menu_msg_counter($menu) {      
            if (!is_user_logged_in())
                    return $menu;
            else
                    $notif = '<span class="noticecount2">'. bp_get_total_unread_messages_count( bp_loggedin_user_id() ) .'</span>';
                    $menu = $menu . $notif;
                    return $menu;
    }
    add_filter( 'wp_nav_menu_items', 'my_nav_menu_msg_counter' ); 

    So what magic is it actually to set the links properly?

    Thank you in advance :))

    #282090

    In reply to: Problem with hotmail

    josuesantana
    Participant

    Hola, tengo el mismo el problema que @doshermanastuciudadhoy no llega el email de confirmación a los dominios hotmail…
    Al eliminar el código del archivo bp-core.filters.php la web peta, tambien es cierto que yo tengo la versión 3.2.0… este es el código:

    	// Add 'List-Unsubscribe' header if applicable.
    	if ( ! empty( $tokens['unsubscribe'] ) && $tokens['unsubscribe'] !== wp_login_url() ) {
    		$user = get_user_by( 'email', $tokens['recipient.email'] );
    
    		$link = bp_email_get_unsubscribe_link( array(
    			'user_id'           => $user->ID,
    			'notification_type' => $email->get( 'type' ),
    		) );
    
    		if ( ! empty( $link ) ) {
    			$headers['List-Unsubscribe'] = sprintf( '<%s>', esc_url_raw( $link ) );
    		}
    	}
    
    	return $headers;
    }
    add_filter( 'bp_email_get_headers', 'bp_email_set_default_headers', 6, 4 );

    Podrías ayudarme?

    #281822
    Anonymous User 16484011
    Inactive

    Hi !

    Prashant,

    Thanks again.

    Sorry for delay in reply because I want experiments on your above article.

    I read the whole third part of your above link. But it’s for making a plugin. I tried direct the changes to a demo wordpress installation php files but it’s not works for me. I mashed up because I haven’t core developer.

    Can any other things or plugin solve my problem ?

    I found on net about the same problem’s solution. I got the plugin pie for the same.

    In this plugin I am able to add forgot password page template. Just go to pie register-> Notification -> Select tab User notification-> select template from dropdown “Password reset request”.

    But after user fill password reset form when they click …
    1) User got a link with token. I don’t want this ? I send just only token without link like otp.
    2) After clicking user must redirect to page where they can paste the key which they received.
    3) After pasting the key I have two options…
    A) Either user redirect to create a new password and confirm password page.
    B) OR user got a new password via mail which auto generated by site to their registered mail id.

    Thanks and Regards

    knowitallninja
    Participant

    Hi,

    I have created a custom page with a single subnav item using the code below:

    function profile_tab_achievements() {
          global $bp;
     
          bp_core_new_nav_item( array( 
            'name' => 'Achievements', 
            'slug' => 'achievements', 
            'screen_function' => 'achievements_screen', 
            'position' => 100,
            'parent_url'      => bp_loggedin_user_domain() . '/achievements/',
            'parent_slug'     => $bp->profile->slug,
            'default_subnav_slug' => 'awards'
          ) );
      
    }
    add_action( 'bp_setup_nav', 'profile_tab_achievements' );
    
    function profile_subnav_awards() {
      bp_core_new_subnav_item( array( 
            'name' => 'Awards',
            'slug' => 'awards',
            'parent_url' => bp_loggedin_user_domain() . '/achievements/',
            'parent_slug' => 'achievements',
            'screen_function' => 'achievements_screen'
      ) );
    }
    add_action( 'bp_setup_nav', 'profile_subnav_awards' );

    I would like the subnav of this page to have a Order By Dropdown, much like exists in the groups & notification pages. I cannot find any guide on how to add this to the subnav menu though. Can anyone help? I mean just to add the drop down. I think I can probably figure out the sorting myself once I have the dropdown added.

    #279290
    CometChat
    Participant

    I would love for you to give CometChat a try! It readily integrates with BuddyPress websites. All it takes is under 10 minutes to set chat up and running on your website.

    Unlike other chat solutions, CometChat’s chat functionalities is not restricted to just text chat. Instad it offers voice chat, video chat (both, one on one and group), emojis and stickers, push notifications, email notifications, offline messaging, in built writeboards and whiteboards, in built monetisation features (enabling you to earn money while users chat on your website), auto friend list synchronisation, phone login, social login and so much more!
    The above features come at no extra cost! These are included in the pricing tiers you decide to opt for.

    CometChat is free to try. You can give it a test drive to see if it fits your requirements.

    P.S. Apologise for the incomplete reply above!

    #279275
    tsortore
    Participant

    Here is my theme and a list of plugins, most of which came with the premium theme. There have been no complaints I’ve found of the groups not working “out-of-the-box” with this theme.

    *** These were the only plugins that did NOT come with the theme.

    Theme: WOffice
    Active Plugins:

    • Akismet Anti-spam
    • All in one WP Migration
    • BP xProfile Location ***
    • BuddyPress
    • Buddypress Xprofile Fields Custom Css Classes ***
    • DP Pro Event Calendar
    • Eonet Live Notifications
    • File Away
    • GamiPress
    • LocateAnything ***
    • Slider Revolution
    • Unyson
    • User Role Editor ***(suggested and tested compatible plugin)
    • Wise Chat
    • WP ERP
    • WP ERP – PDF Invoice
    • WP Bakery Page Builder

    Still no luck getting group creation working.

    Thanks for your response! Any ideas?

    #279231
    Prashant Singh
    Participant

    Please try this code:

    add_action('wp_footer','ps_remove_delete_button');
    function ps_remove_delete_button(){
    	if(!current_user_can('manage_options')){
    		?>
    		<script type="text/javascript">
    		jQuery(document).ready(function(){
    			jQuery('.notifications .delete').hide();
    			jQuery('.notifications .confirm').each(function() {
    			    if (jQuery(this).text() == 'Delete')
    			        jQuery(this).hide();
    			});
    		});
    		</script>
    		<?php
    	}
    }

    Please check if body tag has class ‘notifications’.

    Thanks

    #276875
    sitesfromash
    Participant

    Hi. I would love if someone could help me with a few concerns I have regarding emails in relation to BuddyPress Version 3.2.0.

    First, I want to disable email notifications and am wondering if there is code I should put into the functions.php of a child theme or if unchecking the situation in an email template on BuddyPress will be sufficient in not having notifications sent due to such sitauations as mentions and replies.

    Also, I want to disable activation emails and allow my users to be auto-approved. Can anyone tell me the best way to accomplish this?

    I appreciate any assistance that you may be able to provide me.

    mutoha
    Participant

    Umm…It’s difficult.

    This time I solved it as follows.

    (function($){
    
      var url = location.href	
      var urlSplit_notifications = url.split('/')[5];	
    	
      if( urlSplit_notifications == 'notifications' ){
    
        const target = document.getElementById("notifications-user-list");
    
        const observer = new MutationObserver(records => {
          alert('completed!');
        });
    
        const options = {
          childList: true
        };
    
        observer.observe(target, options);
    
        let shouldStopObserving = false;
        if(shouldStopObserving){
          observer.disconnect();
        }	
    		
      }
    	
    })(jQuery);	

    I really appreciate your help in resolving the problem.
    See you whenever.

Viewing 25 results - 126 through 150 (of 768 total)
Skip to toolbar