Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'notification user id'

Viewing 25 results - 201 through 225 (of 1,091 total)
  • Author
    Search Results
  • #271212
    Florian Bansac
    Participant

    Hi,

    The term “Notifications” is included in the output of the $notif variable, as you can see here:

                            // condition: 0 unread notifications
    			if($bpnotifcount == 0) { 
                    	$notif = '<li><a href=" ' .$url. ' ">Notifications <span class="notifmenucount">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a></li>';
    			} else {
                   		$notif = '<li><a href=" ' .$url. ' ">Notifications <span class="notifmenucount countnot0">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a></li>';
    			}

    There must be something in your WP theme preventing it to display, which you should modify.

    Alternatively you may surround the “Notifications” mention in the function $notif with <span></span> tags, to which you can add your own css class or style, like this:

                            // condition: 0 unread notifications
    			if($bpnotifcount == 0) { 
                    	$notif = '<li><a href=" ' .$url. ' "><span class="your-notif-style">Notifications</span> <span class="notifmenucount">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a></li>';
    			} else {
                   		$notif = '<li><a href=" ' .$url. ' "><span class="your-notif-style">Notifications</span> <span class="notifmenucount countnot0">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a></li>';
    			}
    #271158
    orribu
    Participant

    Ah, forgot to answer these:

    • WordPress ver. 4.9.4
    • BuddyPress ver. 2.9.3
    • Installation: Runs in main directory (public_html)
    • Upgraded from WordPress ver. — I’m going to guess 4.9.3?
    • Yep, WP was working fine. It still is, I just recovered it from a pretty bad PHP error. (disclaimer, I have NO idea how to PHP)
    • Upgraded from bbPress 2.9.2
    • Other Plugins: Akismet 4.0.3; bbpress 2.5.14; Blackhole for Bad Bots 1.8; Comment Mention Notifications 1.0.0; Custom Sidebars 3.1.2; Fancybox for WordPress 3.0.13; Jetpack 5.8; MailChimp 4.1.15; Maintenance 3.6.1; SiteOrigin Page Builder 2.6.2; Patreon for WordPress 2.6.2; Responsive Menu 3.1.13; Shortcodes Ultimate 5.0.3; SiteOrigin CSS 1.1.5; SiteOrigin Widgets Bundle 1.11.4; UpdraftPlus – Backup/Restore 1.14.4; User Role Editor 4.4; WooCommerce 3.3.3; WooCommerce Services 1.11.0; WordPoints 2.4.1; WP Super Cache 1.5.9; Yoast SEO 6.3.1
    • Parent Theme: Rose
    • I’ve uploaded the Rose theme and made a child theme. I’ve also altered wp-config.php to allow Multisite functionality.
    • bbp-custom.php– I made one now! There are no functions.
    • Hosted through BlueHost.
    • Server OS: More than likely Linux (Apache).

    Recent errors:

    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162

    Anonymous User 13302461
    Inactive

    As an admin and people @mention me a lot on bbpress, I’m getting a ton of emails when people keep quoting a post that I was mentioned in.

    Please can we disable mentions when they are inside a quote? THe person has already been notified when the OP did the mention. Please remove this bombardment of emails when users keep quoting the OP.

    Thank you. Also I have no option in my profile settings (on my website) about mentions, so I cannot even disable email notifications. Maybe as I have activity stream disabled?

    Gomle
    Participant

    First of all, a big thank you to all contributors for this useful and traight out mindblowing software! And for free! Wow! :

    In general I am not much of a coder, but I can understand some, and I have two questions:

    QUESTION 1.
    About buddypress bubble notification (not email) when there is a bbpress answer to a topic you either started or are subscribed to:
    – This does not work on my new site – should it? As buddypress and bbpress are so welded together, it would surprise me if this “bubble notification on forum replies” is not thought about before, but if it isn’t – what would I want to do, to notify users via the bubble when someone replies to a topic they either started or subscribed to?
    – I have enabled the notification addon in buddypress, and I reveive emails, it just doesn’t notify via the bubble.

    QUESTION 2.
    When a new member register, and is active – either in bbpress or in buddypress / groups or updates his profile or something else – he is still not visible under sitewide activity: New members. This does not work on a clean install of newest wordpress, newest buddypress and whatever theme. I’ve tested many.

    Is this a bug, or do I have to do something to the settings to make this work?

    patrick321
    Participant

    Hello,

    I’m creating a gifting system for my website. When user sends gift to another user, receiver should receive a notification.

    Here’s what I tried:

    gift class:

    
    <?php
    class tbtPoklon {
    
        public function init() {
    
            add_filter( 'bp_notifications_get_registered_components', array($this, 'add_component') );
            add_filter( 'bp_notifications_get_notifications_for_user', array($this, 'display_notification'), 10, 5 );
    
        }
    
        public function get_gifts() {
    
            global $wpdb;
            $gifts = json_decode(json_encode($wpdb->get_results("SELECT * FROM tbt_pokloni")), True);
    
            return $gifts;
        }
    
        public function get_gift($gift_id) {
    
            global $wpdb;
            $gift_data = json_decode(json_encode($wpdb->get_results("SELECT * FROM tbt_pokloni WHERE gift_id = {$gift_id}")), True);
    
            return $gift_data[0];
    
        }
    
        public function add_component( $component_names = array() ) {
    
    		if ( ! is_array( $component_names ) ) {
    			$component_names = array();
    		}
            array_push( $component_names, 'tbtPoklon' );
            return $component_names;
    
        }
    
        public function display_notification( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
        
    	    if ( 'tbtPoklonPoslan' === $action ) {
            
                $senderName = bp_core_get_user_displayname( $item_id );
    	    	$custom_title = $senderName." ti je poslao/la poklon! otvori...";
    	    	$custom_link  = "#";
    	    	$custom_text = $custom_title;
    
                if ( 'string' === $format ) {
    	    		$return = apply_filters( 'tbtPoklon_filter', '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_title ) . '">' . esc_html( $custom_text ) . '</a>', $custom_text, $custom_link );
                }
                else {
    	    		$return = apply_filters( 'tbtPoklon_filter', array(
    	    		    'text' => $custom_text,
    	    		    'link' => $custom_link
    			    ), $custom_link, (int) $total_items, $custom_text, $custom_title );
                }
                
    		    return $return;
    	    }
    	
        }
    
        public function send_notification( $sender, $reciever, $gift ) {
            
        	bp_notifications_add_notification( array(
                'user_id'           => $reciever, // Gift reciever
                'item_id'           => $sender, // Gift sender
                'secondary_item_id' => $gift, // Gift ID
    	    	'component_name'    => 'tbtPoklon',
    	    	'component_action'  => 'tbtPoklonPoslan',
    	    	'date_notified'     => bp_core_current_time(),
    	    	'is_new'            => 1,
            ) );
    	
        }
    }
    

    calling send_notification method:

    
    <?php
    function test_notification() {
    	$class = new tbtPoklon();
    	$class->init();
    	$class->send_notification(17 /* sender */, 1 /* receiver */, 5 /* gift id */);
    }
    test_notification();
    

    I get this error: [13-Feb-2018 21:59:06 UTC] Table ‘prefix.n’ doesn’t exist za upit SELECT * FROM n WHERE user_id IN (1) AND item_id IN (17) AND secondary_item_id IN (5) AND component_name IN (‘tbtPoklon’) AND component_action IN (‘tbtPoklonPoslan’) AND is_new = 1 koji je postavio/la require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), include(‘/themes/kleo-child/functions.php’), sendtestnot, tbtPoklon->send_notification, bp_notifications_add_notification, BP_Notifications_Notification::get

    I hope you could help me. Thanks, regards.

    #270680

    In reply to: Problem with hotmail

    JC
    Participant

    Outllook.com are blocking the emails because of this:

    if ( ! empty( $tokens['unsubscribe'] ) && $tokens['unsubscribe'] !== site_url( 'wp-login.php' ) ) {
    	$user = get_user_by( 'email', $tokens['recipient.email'] );
    
    	$headers['List-Unsubscribe'] = sprintf(
    		'<%s>',
    		esc_url_raw( bp_email_get_unsubscribe_link( array(
    			'user_id'           => $user->ID,
    			'notification_type' => $email->get( 'type' ),
    		) ) )
    	);
    }

    If yoy remove this if statement activation mails are sent. This code is located at buddypress/bp-core/bp-core.filters

    It’s a new commit, that’s why it worked in previous versions.

    To sum up, if you are using BuddyPress 2.9.3, users with Microsoft accounts will not receive the activation email.

    #270679
    JC
    Participant

    First sorry for my spelling in the above messages.

    Outllook.com are blocking the emails because of this:

    if ( ! empty( $tokens['unsubscribe'] ) && $tokens['unsubscribe'] !== site_url( 'wp-login.php' ) ) {
    	$user = get_user_by( 'email', $tokens['recipient.email'] );
    
    	$headers['List-Unsubscribe'] = sprintf(
    		'<%s>',
    		esc_url_raw( bp_email_get_unsubscribe_link( array(
    			'user_id'           => $user->ID,
    			'notification_type' => $email->get( 'type' ),
    		) ) )
    	);
    }

    If yoy remove this if statement mails activation mails are sent. This code ir located ad buddypress/bp-core/bp-core.filters

    It’s a new commit, that’s why it worked in previous versions.

    To sum up, if you are using BuddyPress 2.9.3, users with Microsoft accounts will not receive the activation email.

    I hope this get fixed in the next version.

    Carsten Lund
    Participant

    Hi there, thanks for your respond. The reason why I want to see my profile, is more a matter of having BP components like messages and notifications visible at all times, without adding them to the theme menu.

    Another strange ting is BP’s redirection to the activity page, when activity component is active. Why does BP not allow users decide which page should be the landing page, when viewing own, and others profile?
    And why do I need to install a third part plugin to have my profile as landing page after login?

    valerietst
    Participant

    Hello everyone. I really need some help here.
    So I’ve had issues with not receiving (and users not receiving) notification emails before. I’ve done the whole deactivating plugins to see what is not compatible, I’ve repaired emails under TOOLS. I’ve even uninstalled and reinstalled BuddyPress and bbpress, but for whatever reason I cannot fix this problem this time. Also, while trying to fix this problem myself, I realized that if you are using a YAHOO account then you will receive notifications, but it is not working at all for gmail or Texas University email accounts. I became aware of this problem today and it was working perfectly fine last Friday. Please, if someone can help me with this problem it would be greatly appreciated!

    #270281
    arnosr
    Participant

    Hi !
    I recently add a custom notification system for alert of new messages if you add a topic to your favorite.
    For that I hook bp_notifications_get_registered_components, bp_notifications_get_notifications_for_user and bbp_new_reply.

    Everything work well but I have a last problem that I dont arrived to fixe : when I click on my new notifications they don’t disappear by her self. I use bbp_mark_read for generate my notification link but without sucess

    $topic_link = wp_nonce_url(
    add_query_arg(
    array(
    'action' => 'bbp_mark_read',
    'topic_id' => $topic_id
    ),
    bbp_get_reply_url( $item_id )
    ),
    'bbp_mark_topic_' . $topic_id
    );

    Any solution for fix that ?
    Thanks !

    Norman Cates
    Participant

    Hi ya,
    I’m new to BuddyPress.
    WP 4.9.1
    BP 2.9.2
    http://crew.nzin2020.stormin.nz

    I’m looking to get BuddyPress as close to Facebook as I can. Well, largely.

    At the moment, the thing I’m trying to find is how to show what new notifications there are since a member last looked at a new activity list. And ideally be able to show a list of groups the user belongs to, and a little number with how many new posts/notifications there are.

    I’ve been searching around for a few days now for how to do this.

    I feel like this is probably standard and easy, but I just can’t see how to do it…

    Always glad to be pointed to links of course.

    Thanks for any insight!

    Norm

    #269655

    Topic: Hooks problem.

    in group forum Requests & Feedback
    gaurav007
    Participant

    Hi There,

    I am using the buddypress and apppresser plugin in our website. Apppresser plugin is used to convert wordpress web application to mobile application. I want to use buddypress hooks to send push notifications over the friend request and invite to group request trigger but this is not working. I am using the following hooks for the same

    groups_send_invites
    groups_accept_invite
    friends_friendship_accepted
    bp_activity_add_user_favorite
    friends_friendship_requested

    Here is my code which I have written on function.php .

    function action_groups_send_invite( $group_id, $invited_users, $user_id ) {
    // make action magic happen here…
    if ( !is_user_logged_in() )
    return false;
    $message = ‘Hi there some one send your request!’;

    $push = new AppPresser_Notifications_Update;
    $devices = $push->get_devices_by_user_id($invited_users);
    if( $devices ) {
    $push->notification_send( ‘now’, $message, 1, $devices );
    }
    };

    // add the action
    add_action( ‘groups_send_invites’, ‘action_groups_send_invite’, 10, 3 );

    function action_friends_friendship_requested( $friendship_id, $initiator_id, $friend_id ) {
    if ( !is_user_logged_in() )
    return false;

    $recipients = array( $initiator_id );

    $message = ‘Hi there some one send you request!’;

    $push = new AppPresser_Notifications_Update;
    $devices = $push->get_devices_by_user_id( $recipients );

    if( $devices ) {
    $push->notification_send( ‘now’, $message, 1, $devices );
    }

    //apppush_send_notification( ‘friends_friendship_requested’ );
    };

    // add the action
    add_action( “friends_friendship_requested”, ‘action_friends_friendship_requested’, 10, 4 );

    function action_friends_friendship_accepted( $friendship_id, $friendship_initiator_user_id, $friendship_friend_user_id, $friendship ) {
    // // make action magic happen here…
    if ( !is_user_logged_in() )
    return false;

    $recipients = array( $friendship_initiator_user_id );

    $message = ‘Hi there some one accept your request!’;

    $push = new AppPresser_Notifications_Update;
    $devices = $push->get_devices_by_user_id( $recipients );

    if( $devices ) {
    $push->notification_send( ‘now’, $message, 1, $devices );
    }
    //apppush_send_notification( ‘friends_friendship_accepted’ );
    };

    // add the action
    add_action( ‘friends_friendship_accepted’, ‘action_friends_friendship_accepted’, 10, 4 );

    function action_add_user_favorite( $activity_id, $user_id ) {
    // do something

    $recipients = array( $user_id );

    $message = ‘Hi there some one accept your friend request!’;

    $push = new AppPresser_Notifications_Update;
    $devices = $push->get_devices_by_user_id( $recipients );

    if( $devices ) {
    $push->notification_send( ‘now’, $message, 1, $devices );
    }
    }
    add_action(‘bp_activity_add_user_favorite’, ‘action_add_user_favorite’, 1, 2 );

    #269570

    Hello!

    I moved the “Change avatar” and “Change cover” subnavs from the tab “Profile” to “Setting”. It works good, but no content is displayed … I don’t know why, because the function “xprofile_screen_change_avatar” is triggered.

    Does anybody has an idea?

    Here is my code from the functions.php:

    
    function custom_bp_menu_tabs() {
        global $bp;
    
        if ( bp_is_active( 'xprofile' ) ):
            $change_avatar = $bp->bp_options_nav['profile']['change-avatar']->backcompat_nav;
    
            if ( ! empty( $change_avatar ) ) {
                $change_avatar['parent_slug'] = $bp->bp_nav['settings']['slug'];
                $change_avatar['parent_url']  = $bp->loggedin_user->domain . $bp->bp_nav['settings']['slug'] . '/';
                unset( $change_avatar['link'] );
    
                bp_core_remove_subnav_item( $bp->bp_nav['profile']['slug'], $change_avatar['slug'] );
                bp_core_new_subnav_item( $change_avatar );
            }
    
            bp_core_remove_nav_item( 'profile' );
    
            bp_core_remove_subnav_item( $bp->bp_nav['settings']['slug'], 'notifications' );
            bp_core_remove_subnav_item( $bp->bp_nav['settings']['slug'], 'profile' );
        endif;
    }
    
    add_action( 'bp_setup_nav', 'custom_bp_menu_tabs', 9999 );
    
    #269412
    bcanr2d2
    Participant

    I am using WP Mail SMTP to get the mail to send without issues. But it seems to affect this particular email only, I am getting everything else as far as I am aware.

    Here are my current active plugins – There is quite a long list.
    I do use Autoptimize, so not sure if it’s affecting anything.
    One of note, is Social Login, which when logging directs to their site, and redirects back to my site to log the user in via their social network, this is where it falls over and does not send this one email. It manages to send other emails related to the login, but it now gives me an idea to look into the code that sends this social email sign up notification.

    (BuddyDev) BP Auto Login on Activation (1.0.3)
    Advanced Custom Fields (4.4.11)
    Allow Multiple Accounts (3.0.4)
    Autoptimize (2.2.2)
    BP Profile Message UX Free (1.5)
    BP xProfile Location (1.2)
    BP XProfile WordPress User Sync (0.6.4)
    BuddyDev Username Availability Checker (1.1.1)
    BuddyExtender (1.0.1)
    BuddyPress (2.7.4)
    BuddyPress Member Type Generator (1.0.3)
    BuddyPress Security Check (2.1.2)
    BuddyPress Simple Terms And Conditions (1.3)
    BuddyPress Xprofile Custom Fields Type (2.6.3)
    BuddyPress Xprofile Member Type Field (1.0.4)
    BuddyPress XProfile Validate with RegEx (0.1.2)
    Cherry Parallax Plugin (1.1.0)
    Cherry Plugin (1.2.8.1)
    Child Theme Configurator (2.1.2)
    Conditional Profile Fields for BuddyPress (1.1.9)
    Contact Form 7 (4.6)
    Contact Form 7 – Dynamic Text Extension (2.0.1)
    Contact Form 7 Conditional Fields (1.0)
    Contact Form 7 Get and Show Parameter from URL (0.9.7)
    Contact Form 7 Honeypot (1.10)
    Contact Form 7 Modules: Hidden Fields (2.0)
    Contact Form 7 Shortcode Enabler (1.1)
    Custom Hooks (1.0)
    Custom Post Template By Templatic (1.0)
    Custom Post Type UI (1.4.3)
    Disable Comments (1.6)
    Display Posts Shortcode (2.7.0)
    FacetWP (2.7.4)
    FacetWP – Map (1.0.5)
    Flamingo (1.5)
    GeoIP Detection (2.7.0)
    GEO my WP (2.7)
    Google Analytics Dashboard for WP (4.9.6.2)
    List Plugins (1.4.4)
    Meta Slider (3.4)
    Optimize Database after Deleting Revisions (4.2.1)
    Page-list (5.1)
    PHP Compatibility Checker (1.4.0)
    Popup Maker (1.4.20)
    Shortcodes in Menus (3.2)
    Social Login (5.2)
    Stream (3.2.0)
    String Locator (2.2.0)
    Sucuri Security – Auditing, Malware Scanner and Hardening (1.8.3)
    SuitePlugins – Advanced XProfile Fields for BuddyPress (1.0.3)
    Theme Check (20160523.1)
    Visual Builder for Contact Form 7 (2.0)
    WPFront User Role Editor (2.13)
    WP Mail SMTP (0.11.1)
    WP Private Content Plus (1.13.1)
    WP Smush (2.6.1)
    Yoast SEO (4.3)

    #269378
    grimbot
    Participant

    ok.. it works again.. Not sure which step fixed it but here is what I did..

    In the database area I clicked the Optimize, repair, and reset permission buttons.

    In wordpress I cleared off some of the warning notifications I was getting about “Activity Stream” and “User Links” pages not having pages set for them..

    I had those removed on purpose btw.

    The code to hide the members directory doesn’t work anymore but someone said something about maybe being able to redirect traffic to that page to a password protected or otherwise restricted page.

    So.. That should do it if you have the problem I did.. clear the page missing error for user links and activity and run the one click fixes on the database to reset permissions and such.

    #269330
    madebyhuddy
    Participant

    Hi there and first sorry for my poor english.
    I’m working on a new Learndash videos website. I want to use buddypress for user registrations / management.

    Sadly no emails are sent from buddypress.

    I installed a email log plugin and see no email sent from buddypress ( other emails are sent ).

    I tried to go with WP MAIL SMTP with a costum office365 email, this option doesnt work either. WP Mail SMTP test email work, buddypress registration & notifications don’t.

    I also tryed Postman also with smtp & my office 365. Test work & get logged. Registration don’t.

    I then tryed to deactivate every single plugin & replace my theme for a default wordpress theme (twentyseventen) this option doesnt work either ( with only buddypress at first, then only buddypress & Postman )

    Any idea what i could try? Thx in advance!

    WP version: 4.9.1
    BP version: 2.9.2
    – Installed on a subdomain
    – Plugins installed :
    – Advanced Custom Fields PRO
    – AffiliateWP
    – Boss for LearnDash
    – BuddyPress for LearnDash
    – BuddyPress Recherche Globale
    – Compress JPEG & PNG images
    – LearnDash & Paid Memberships Pro
    – LearnDash LMS
    – LearnDash WooCommerce Integration
    – Loco Translate
    – Paid Memberships Pro
    – Paid Memberships Pro – WooCommerce Add On
    – Polylang
    – Post SMTP
    – Wistia WordPress Plugin
    – WooCommerce
    – WooCommerce Moneris Gateway
    – WordPress Social Login
    – WP Sync DB
    – WP-Optimize
    – WPBakery Visual Composer

    I use BuddyBoss wordpress theme and i’m hosted on Likuid Hosting ( likuid.com ). No core files have been updated. Server on linux & apache

    #269045
    Boone Gorges
    Keymaster

    Thanks, @friendlygooners – I did read your previous post and visit your site, but what I’m saying is that I’m not sure what “mesage” or “notification” you are talking about. I currently see a partially-hidden item in the upper-right corner of the page, which ends in the sentence “Please reply if you are not a bot”. Is this the message that you are talking about?

    If so, it appears that this element is created by your theme, Buddy. I don’t have access to the source of this theme, but I’m guessing that it uses some buggy logic to decide whether or not the notice should be shown. I’m unsure how to fix this bug in PHP because I can’t see the theme code. But you can hide this element with the following CSS:

    
    .sidebar #message {
        display: none;
    }
    

    You may also want to add some styling so that the top menu doesn’t cover up your site’s content:

    
    #content-wrapper {
        margin-top: 105px;
    }
    

    This may look different for logged-in users, so your mileage may vary.

    #269036
    Boone Gorges
    Keymaster

    Hi @friendlygooners – Can you clarify what you mean by “the sitewide notification still exist”? Do you mean that it’s still in the markup, even though you are hiding it with CSS? Or do you mean that there is an element other than #sitewide-notice that is showing to all users? Can you share the markup (or id attribute) from that additional element, so that we have a better sense of what needs to be hidden?

    Boone Gorges
    Keymaster

    Hi @richardmiller-1 – The purpose of the @username part of the interface is to tell other users how to mention the user when posting new activity items, etc. It’s possible to change the value that’s displayed here, but if you do, and if users then use that text to “mention” others, then things like auto-linking of @-mentions and @-mention notifications will break, since BP doesn’t know by default how to search by display names.

    If you just want to change the display, then you should copy the cover-image-header.php template to your own child theme, and then change the line you’ve referenced to:

    
    <h2 class=”user-nicename”>@<?php echo bp_core_get_user_displayname( bp_displayed_user_id() ); ?></h2>
    

    It might be possible to retool some of the @-mention plumbing so that notifications etc work. You’d want to start by filtering bp_activity_mentioned_users(), and copying some of the logic in bp_activity_find_mentions() but with modified regex + user lookup. (This is going to be hard because, among other things, display names are not necessarily unique across a network, so @Richard could refer to multiple people. But that depends on the nature of your network.)

    The h1 at the top of the profile page is generated in a weird way, as part of BP’s theme compatibility system. It’s not directly generated by BP, but comes from your WP theme; BP is faking the theme into thinking that the user’s display name is the title of the WP page, so that your theme’s page.php template outputs it as the_title(). There are various workarounds for this. One is to tap into BP’s template hierarchy, so that WP would use a separate template file for single member pages. See https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/#single-member-pages for details. Basically, you’d copy page.php to buddypress/members/single/index.php, and remove the call to the_title(). A simpler solution is to hide with CSS:

    
    .bp-user .entry-title {
    	display: none;
    }
    
    #268997
    friendlygooners
    Participant

    WordPress 4.9 “Tipton”
    BuddyPress Version 2.9.2
    Theme: Buddy Version: 2.15.1 By GhostPool

    When sending private message to my users, the message shows sidewide notification to everyone visiting my site. I added this this in custom css

    #sitewide-notice {
    display: none !important;
    }

    The message box appearing under the header was closed But the sidewide notification still exist.
    You can check out here https://www.friendlygooners.com/

    #268974
    jeffm2008
    Participant

    Hi.

    The buddy bar / admin bar (not sure exactly what it is called), that shows the user notifications etc, is only showing for admin.

    Any idea why?

    Thanks in advance!

    WordPress 4.8.3 running Point theme.

    BuddyPress Version 2.9.2

    #268767
    Mogwai
    Participant

    Hi,

    I tried this method. But it did not work. Any fix?
    https://wordpress.stackexchange.com/questions/263950/new-post-notifications-for-users-buddypress/

    Please help.. Thanks.

    #268320
    darunia77
    Participant

    Hello.

    I am able to receive email notifications for all sign ups, logins as an admin of the site, however my users are not receiving BP emails when someone sends them a message or comments on their post. I am using Paid Memberships Pro and Wordfence so perhaps those emails come through those plugins but I also do not receive BP notifications of messages from users – I tested it by creating a separate account.

    This is a new site so I wasn’t aware of the issue previously and I don’t know if it has worked before.

    Any help appreciated. It will be difficult to uninstall all plugins as the site is active.

    I’m using WordPress 4.8.2 and BuddyPress 2.9.1

    #268313
    Humiges
    Participant

    Dear Buddypress,

    I hope you can help me with this…
    I have just transferred 1000s of comments to articles – of my buddypress wordpress site.

    Those comments, have @mentions in them and users, didn’t receive the notifications about @mentions – which is great! It would be too much (some of them are old ect).

    However, is there any way we can populate those mentions, without any notifications, so they show in their profiles – under mentions? So, they can look back when someone mentioned them?

    Thank you very much 🙂

    #268172
    pmbordeaux
    Participant

    Hi,

    I’d like to disable user-notifications but keep the MP notifications.

    Howcan I do it or which plugin should I use instead of BuddyPress Notifications Widget?

    Thank’s in advance

Viewing 25 results - 201 through 225 (of 1,091 total)
Skip to toolbar