Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'notification user id'

Viewing 25 results - 76 through 100 (of 695 total)
  • Author
    Search Results
  • #309830
    bmcconach
    Participant

    Howdy, BuddyPress friends!

    I have been working on a project for fun and have been enjoying the laying out of items and adding plugin functionality a bit much here lately. So much so, in fact, that I put the testing phase on the back shelf for a bit.

    When I was attempting to request membership from a test account to a private group that my admin account was the creator of, I ran into an issue: I can get to the request page (/groups/test-group/request-membership/?_wpnonce=47febc75fe) by clicking the link to do so and then am presented with a textarea for request comments, however when I submit the form (with or without comments) I am taken back to the group’s main page (/groups/test-group/) and am presented with “There was an error sending your group membership request. Please try again.” The request does not come through (not in BP’s notifications, e-mail, pending requests, etc.) at all.

    At first this was a minor irritation because I could go to the group as the admin and invite the test account to join the group. There I am presented with a checkbox for my test account’s name, as well as a submit button; however when clicking on the checkbox, the form instantly submits without ever sending an invite. I even attempted to modify the live source to set the field to checked, attempted to submit, and received a success message stating my invite was sent, but of course it never was.

    I have checked the list of plugins I have on my site, disabled a few I didn’t necessarily need, and have checked each of the remaining to see if there’s any sort of conflict between plugins affecting groups, but to no avail. This functionality is key to the use of groups for my project, so I would sincerely appreciate any advice from more knowledgeable members of the BP community.

    Some support information, including a list of active plugins, can be found below. Please note that any plugin with ** beside it came bundled with the theme.

    == Server Environment ==
    	Operating System: Linux
    	Software: Apache/2.4.6
    	MySQL version: MariaDB Server v5.5.61-MariaDB-38.13
    	PHP Version: 7.2.24
    	PHP Max Input Vars: 2500
    	PHP Max Post Size: 64M
    	GD Installed: Yes
    	ZIP Installed: Yes
    	Write Permissions: All right
    	Elementor Library: Connected
    
    == WordPress Environment ==
    	Version: 5.3.2
    	WP Multisite: No
    	Max Upload Size: 64 MB
    	Memory limit: 512M
    	Permalink Structure: /%postname%/
    	Language: en-US
    	Timezone: America/New_York
    	Debug Mode: Inactive
    
    == Theme ==
    	Name: Gwangi
    	Version: 2.1.1
    	Author: Themosaurus
    	Child Theme: No
    
    == User ==
    	Role: administrator
    	WP Profile lang: en_US
    	User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
    
    == Active Plugins ==
    	(BuddyDev) BP Auto Login on Activation
    		Version: 1.0.3
    		Author: Brajesh Singh
    
    	Author Avatars List**
    		Version: 1.18
    		Author: Paul Bearne
    
    	Awesome Weather Widget
    		Version: 3.0.2
    		Author: Hal Gatewood
    
    	bbPress
    		Version: 2.6.3
    		Author: The bbPress Contributors
    
    	BP Messages Tool
    		Version: 2.1
    		Author: PhiloPress
    
    	BP Profile Search
    		Version: 5.2.4
    		Author: Andrea Tarantini
    
    	BuddyPress
    		Version: 5.1.2
    		Author: The BuddyPress Community
    
    	BuddyPress Default Cover Photo
    		Version: 1.6.0
    		Author: SeventhQueen
    
    	BuddyPress Extended Friendship Request
    		Version: 1.2.0
    		Author: BuddyDev Team
    
    	BuddyPress Reorder Tabs
    		Version: 2.0.1
    		Author: BuddyBoss
    
    	BuddyPress Xprofile Custom Field Types
    		Version: 1.1.3
    		Author: BuddyDev
    
    	Classic Editor
    		Version: 1.5
    		Author: WordPress Contributors
    
    	Classic Editor Addon
    		Version: 2.6.0
    		Author: Pieter Bos, Greg Schoppe
    
    	Dashboard Notepad
    		Version: 1.42
    		Author: Stephanie Leary
    
    	Easy Custom Sidebars**
    		Version: 1.0.10
    		Author: Titanium Themes
    
    	Elementor**
    		Version: 2.8.3
    		Author: Elementor.com
    
    	Envato Market
    		Version: 2.0.3
    		Author: Envato
    
    	Essential Addons for Elementor
    		Version: 3.7.1
    		Author: WPDeveloper
    
    	Grimlock**
    		Version: 1.2.5
    		Author: Themosaurus
    
    	Grimlock Animate**
    		Version: 1.1.0
    		Author: Themosaurus
    
    	Grimlock for Author Avatars List**
    		Version: 1.0.4
    		Author: Themosaurus
    
    	Grimlock for bbPress**
    		Version: 1.0.3
    		Author: Themosaurus
    
    	Grimlock for BuddyPress**
    		Version: 1.1.4
    		Author: Themosaurus
    
    	Grimlock for Elementor**
    		Version: 1.0.1
    		Author: Themosaurus
    
    	Grimlock for Jetpack**
    		Version: 1.0.4
    		Author: Themosaurus
    
    	Grimlock for Testimonials by WooThemes**
    		Version: 1.1.0
    		Author: Themosaurus
    
    	Grimlock for The Events Calendar**
    		Version: 1.1.2
    		Author: Themosaurus
    
    	Grimlock Hero**
    		Version: 1.0.7
    		Author: Themosaurus
    
    	Grimlock Isotope**
    		Version: 1.0.7
    		Author: Themosaurus
    
    	Grimlock Login**
    		Version: 1.0.10
    		Author: Themosaurus
    
    	Hide Admin Bar
    		Version: 0.3.9.9
    		Author: Shelby DeNike
    
    	If Menu - Visibility control for menu items
    		Version: 0.15
    		Author: Layered
    
    	Kirki Customizer Framework**
    		Version: 3.0.45
    		Author: Ari Stathopoulos
    
    	MediaPress
    		Version: 1.4.6
    		Author: BuddyDev
    
    	Menu Image**
    		Version: 2.9.5
    		Author: Rui Guerreiro
    
    	Simple Buddypress Profile Privacy
    		Version: 0.7.9
    		Author: Justin Hansen
    
    	Social Articles
    		Version: 2.9.5
    		Author: Broobe
    
    	The Events Calendar
    		Version: 4.9.14
    		Author: Modern Tribe, Inc.
    
    	UpdraftPlus - Backup/Restore
    		Version: 1.16.21
    		Author: UpdraftPlus.Com, DavidAnderson
    
    	Verified Member for BuddyPress**
    		Version: 1.1.1
    		Author: Themosaurus
    
    == Must-Use Plugins ==
    	Gateway Relay
    		Version: 1.0
    		Author: Arnold Bailey (Incsub)
    
    	rms_unique_wp_mu_pl_fl_nm.php
    		Version: 
    		Author: 
    
    	WPMU Assist
    		Version: 1.0.2
    		Author: Arnold Bailey (Incsub)
    
    == Elements Usage ==
    	
    	wp-page : 12
    		eael-adv-tabs : 1
    		google_maps : 1
    		image-carousel : 1
    		shortcode : 1
    		text-editor : 1
    		wp-widget-grimlock_author_avatars_section_widget : 1
    		wp-widget-grimlock_posts_section_widget : 1
    		wp-widget-grimlock_query_section_widget : 1
    		wp-widget-grimlock_section_widget : 3
    		wp-widget-grimlock_the_events_calendar_tribe_events_section_widget : 1
    
    == Log ==
    	
    PHP: showing 1 of 1PHP: 2020-01-02 10:43:38 [error X 1][/home/*****/public_html/wp-content/plugins/elementor/elementor.php::97] Cannot redeclare elementor_fail_wp_version() (previously declared in /home/*****/public_html/wp-content/plugins/elementor/elementor.php:97) [array (
      'trace' => '
    #0: Elementor\Core\Logger\Manager -> shutdown()
    ',
    )]
    
    JS: showing 1 of 1JS: 2020-01-11 16:50:05 [error X 1][https://*****/wp-content/plugins/grimlock/assets/js/navigation-stick-to-top.js?ver=1.2.5:27:45] Cannot read property \'top\' of undefined
    #309443
    eriksson1337
    Participant

    Thanks for your reply.

    As far as i know, the

    function friends_notification_new_request( $friendship_id, $initiator_id, $friend_id )

    sends a notification to the person who got a friendship request.

    I would like to send an E-Mail to the user who made a request.

    For example user 1 requests a friendship with user 2. User 1 gets an E-Mail “You requested a friendship with user 2”.

    Is that possible?

    rossmilstein
    Participant

    Hello,
    I hope you can give me input on this scenario.
    Diane has a image. She wants to share it with a potential user outside of Buddypress, Jack.
    I need Diane to be able to send some sort of message to the Jack who is not a member. Jack would get the message, probably an email, and need to register on the BuddyPress site and join as a member to see this new image, blog post, etc. Then once inside the site. Jack can see the image and operate as a member, because then he has signed up.

    Can you tell me how I can get there from here?
    Very grateful. Ross

    Nahum
    Participant

    What is the best way to remove user tabs? bp_core_remove_nav_item, after many years now, still doesn’t seem to be the solution. This method doesn’t only remove the link from the menu, it disables the component entirely unless I’m missing something because it seems to be offered up as the accepted solution on several threads.

    I’ve even tried

    bp_core_remove_nav_item in combo with add_action(‘bp_screens’, $screen_function) to re-add component screens >> worked somewhat but had other issues

    So I ended up with just overwriting the members/single/parts/item-nav.php file

    <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
    			while ( bp_nouveau_nav_items() ) :
    				bp_nouveau_nav_item();
    			?>
    <?php /*///////////////////////////////////
    stopping the nav items here
    ///////////////////////////////*/?>
    
    <?php if(!in_array( bp_nouveau_get_nav_link_text(), array('Settings', 'Notifications', 'Messages')) ):?>
    
    				<li id="<?php bp_nouveau_nav_id(); ?>" class="<?php bp_nouveau_nav_classes(); ?>">
    					<a href="<?php bp_nouveau_nav_link(); ?>" id="<?php bp_nouveau_nav_link_id(); ?>">
    						<?php bp_nouveau_nav_link_text(); ?>
    
    						<?php if ( bp_nouveau_nav_has_count() ) : ?>
    							<span class="count"><?php bp_nouveau_nav_count(); ?></span>
    						<?php endif; ?>
    					</a>
    				</li>
    
    				<?php endif;?>
    
    			<?php endwhile; ?>
    
    			<?php bp_nouveau_member_hook( '', 'options_nav' ); ?>
    
    		</ul>
    
    	<?php endif; ?>
    
    </nav>
    

    What is the way to do this?

    #308565
    geryeo
    Participant

    Hello,

    I am trying to translate the website using Loco plug-in. Everything goes smooth except the user tab within BuddyPress. The text for Notifications and Messages are still appearing in English, even when I check the language pack for BuddyPress – the language pack (Vietnamese) is fully translated.
    Image, so you can get idea: https://ibb.co/DQdkcJt

    Do you know how to fix this?

    Thank you

    andrewwebber25
    Participant

    So I found the source of my problem possibly but Im not sure how to change it. I have my Primary Menu set to a menu called Logged In. Another menu I have is called Logged Out. I wanted a returning user to get the Logged In menu which has all the items in the nav bar. If its a new, non signed in user accessing the site, they get the Logged Out menu (this nav menu has far less items on it). This is the code that I have to check if users accessing the site are logged in or not.

    /*To swap between two different menues. One for logged in users, one for logged out*/
    function my_wp_nav_menu_args( $args = '' ) {
     
    if( is_user_logged_in() ) { 
        $args['menu'] = 'Logged In';
    } else { 
        $args['menu'] = 'Logged Out';
    } 
        return $args;
    }
    add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' );
    

    The code works perfect. I realized that every new menu I create though, it still only shows the Logged In menu it its place. For ex, the Logged In menu has the Notifications Page link (obviously the Logged Out menu would not as no account is active). I decided I wanted Notifications to be its own menu so I could put it in the top right of the site, separate from everything else. I made a new menu called Test and just put the Notification page in it. Then I put the Test menu in its own spot. When I publish it though, now I have two Logged In menus. If I delete the code above, then everything looks correct (but logged out users get the Logged In Primary Menu then).

    Something to note is that my theme only comes with the primary menu option and nothing else. I added code to create a second menu option. When I dropped the Test Menu into that spot it still just showed the Logged In menu twice. So is there a way to change the above code that it still operated properly but also doesnt interfere with every menu I try to create in the future? The above code is located in my wp-content/themes/customify/functions.php section. Im really sorry if I wording this poorly. Any advice for the problem is appreciated!

    #308548
    pixieblitz
    Participant

    Our site had some spammer send out massive amounts of private messages. I bulk deleted them directly out of the database table bp_messages_messages, marked the users as spam and deleted them… Then also deleted the bp notifications for messages. (We have a fairly low number of actual messages on the site so it didn’t seem like a big deal.) Unfortunately now on the front-end profile tabs it indicates the presence of messages with whatever # were deleted. I can’t figure out how to reset that – even resetting to 0 across the board would be fine, if there isn’t a recount/repair function somewhere…

    Any suggestions for how I could fix this? And would deleting the users first have avoided this altogether by automatically cleaning up the messages and repairing the message counts?

    Thank you!

    #308409
    selym
    Participant

    I have a strange scenario that I’m not sure how to tackle. I created hundreds of users that represent certain fictional characters. I used fake emails (character-name@my-domain) during each user set up.

    The first problem is whenever I made changes to these accounts, it would naturally generate a lot of bounce back emails since the email addresses don’t actually exist. I can set all notifications to “no” in their profiles, but then I’m never notified when real members friend request or message these characters.

    I don’t want to set up a catch-all email as it would just become a honey pot for spammers. I asked my web host if it’s possible to have a white-listed type catch-all for only email addresses I specify, but unfortunately that isn’t possible from them.

    Anyone have any other ideas? Or know of plugins that might enable an admin to view all notification activity for certain users?

    irishdirector
    Participant

    Hello,

    Our members are experiencing issues with our ‘Groups’ on our website. I’m not an expert on BuddyPress or WordPress, so I’m not sure where this issue is stemming from. The top of our ‘Ticket Exchange Group’ shows the following error. Also, new users can not even get access to the group, even though they are supposed to be added automatically. It will not allow us to add any members manually, either. Along with this, the members that can actually enter the group cannot get past the first page of postings, and are not receiving email notifications. Please help!

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘bp_group_new_topic_button’ not found or invalid function name in /nfs/c09/h02/mnt/128956/domains/ndchicago.org/html/wp-includes/class-wp-hook.php on line 286

    #307730
    Tom Swain
    Participant

    For anyone else trying to figure this out, I didn’t find THE solution, but I did find A solution… it’s simple javascript. Wrap your notification in a div with the class “count” or whatever works for you, and hide it when its content is ‘0’.

    
    <div class="count">
    	<?php echo bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ); ?>
    </div>
    
    
    <script type="text/javascript">
    	//HIDE NOTIFICATION IF COUNT IS ZERO
    	let divs = document.getElementsByClassName('count');
    
    	for (let x = 0; x < divs.length; x++) {
    	    let div = divs[x];
    	    let content = div.innerHTML.trim();
    
    	    if (content == '0') {
    	        div.style.display = 'none';
    	    }
    	}
    </script>
    
    #307617
    Tom Swain
    Participant

    Thank you so much for your reply!

    If I’m understanding you correctly, I put the code in like this…

    
    <?php
    	$count = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );
    	$count = empty( $count ) ? '' : $count;
    ?>
    

    But that doesn’t seem to be working. Am I doing something wrong?

    #307615
    Ravi Sharma
    Participant

    Hello,

    you can do something like. It will print nothing when got 0.

    $count = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );
    $count = empty( $count ) ? '' : $count;

    and use this variable in your code.

    Regards
    Ravi

    michaeljcheney21
    Participant

    Ive tried multiple times with different usernames and emails but the registration page is not working;

    Register

    1. Which version of WordPress are you running?

    WordPress 5.2.2

    2. Did you install WordPress as a directory or subdomain install?

    no, on the root

    3. If a directory install, is it in root or in a subdirectory?

    root

    4. Did you upgrade from a previous version of WordPress? If so, from which version?

    no

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.

    yes

    6. Which version of BP are you running?

    Version 4.4.0

    7. Did you upgraded from a previous version of BP? If so, from which version?

    no

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?

    Akismet Anti-Spam
    Activate | Delete
    Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. It keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key.

    Version 4.1.2 | By Automattic | View details
    Select bbPress
    bbPress
    Deactivate | Settings | About
    bbPress is forum software with a twist from the creators of WordPress.

    Version 2.5.14 | By The bbPress Community | View details
    Select BuddyPress
    BuddyPress
    Deactivate | Settings | Hello, BuddyPress!
    BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more!

    Version 4.4.0 | By The BuddyPress Community | View details
    Select Contact Form 7
    Contact Form 7
    Settings | Deactivate
    Just another contact form plugin. Simple but flexible.

    Version 5.1.4 | By Takayuki Miyoshi | View details
    Select Envato Market
    Envato Market
    Deactivate
    WordPress Theme & Plugin management for the Envato Market.

    Version 2.0.1 | By Envato | Visit plugin site
    Select Featured Image from URL
    Featured Image from URL
    Activate | Delete
    Use an external image as Featured Image of your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.

    Version 2.6.0 | By Marcel Jacques Machado | View details
    Select Google Captcha (reCAPTCHA) by BestWebSoft
    Google Captcha (reCAPTCHA) by BestWebSoft
    Settings | Deactivate
    Protect WordPress website forms from spam entries with Google Captcha (reCaptcha).

    Version 1.51 | By BestWebSoft | View details | Settings | FAQ | Support
    Select Hello Dolly
    Hello Dolly
    Activate | Delete
    This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from Hello, Dolly in the upper right of your admin screen on every page.

    Version 1.7.2 | By Matt Mullenweg | View details
    Select Leadpages Connector
    Leadpages Connector
    Deactivate
    Connect your Leadpages account to your WordPress site to import Leadpages and Leadboxes

    Version 2.1.6.21 | By Leadpages | Visit plugin site
    Select OptimizePress
    OptimizePress
    Deactivate
    OptimizePress is the essential plugin for marketers. Create squeeze pages, sales letters and much more with ease.

    Version 2.5.21 | By OptimizePress | Visit plugin site
    Select Post Views Counter
    Post Views Counter
    Settings | Deactivate
    Post Views Counter allows you to display how many times a post, page or custom post type had been viewed in a simple, fast and reliable way.

    Version 1.3.1 | By Digital Factory | View details | Support
    Select Socialize Plugin
    Socialize Plugin
    Deactivate
    A required plugin for Socialize theme you purchased from ThemeForest. It includes a number of features that you can still use if you switch to another theme.

    Version 3.10 | By GhostPool
    Select The Events Calendar
    The Events Calendar
    Deactivate | Settings | Calendar
    The Events Calendar is a carefully crafted, extensible plugin that lets you easily share your events. Beautiful. Solid. Awesome.

    Version 4.9.7 | By Modern Tribe, Inc. | View details | Support | View All Add-Ons
    Select Theia Sticky Sidebar
    Theia Sticky Sidebar
    Deactivate
    Glues your website’s sidebars, making them permanently visible while scrolling.

    Version 1.8.0 | By WeCodePixels | Visit plugin site
    Select Visual Sidebar Editor
    Visual Sidebar Editor
    Deactivate
    An addon that allow you to use WPBakery Visual Composer or wordress editor to override sidebars

    Version 1.2.5 | By ERROPiX | Visit plugin site
    Select WishList Member™ 3.0
    WishList Member™ 3.0
    Deactivate
    WishList Member™ 3.0 is the most comprehensive membership plugin for WordPress users. It allows you to create multiple membership levels, protect desired content and much more. For more WordPress tools please visit the WishList Products Blog. Requires at least WordPress 4.0 and PHP 5.4

    Version 3.0.6282 | By WishList Products | Visit plugin site
    Select WordPress Automatic Plugin
    Wordpress Automatic Plugin
    Deactivate
    WordPress Automatic posts quality articles, Amazon products, Clickbank products, Youtube videos, eBay items, Flicker images, RSS feeds posts on auto-pilot and much more.

    Version 2.3.3 | By Miled | View details
    Select WPBakery Page Builder
    WPBakery Page Builder
    Settings | Deactivate
    Drag and drop page builder for WordPress. Take full control over your WordPress site, build any layout you can imagine – no programming knowledge required.

    Version 6.0.5 | By Michael M – WPBakery.com | Visit plugin site
    Select Yoast SEO
    Yoast SEO
    FAQ | Premium Support | Settings | Deactivate
    The first true all-in-one SEO solution for WordPress, including on-page content analysis, XML sitemaps and much more.

    9. Are you using a standard WordPress theme or customized theme?

    Socialize Child Theme

    10. Which theme do you use ?

    Socialize Child Theme

    11. Have you modified the core files in any way?

    no

    12. Do you have any custom functions in bp-custom.php?

    no

    13. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?

    built in i think

    14. Please provide a list of any errors in your server’s log files. https://codex.wordpress.org/Debugging_in_WordPress

    dont think i have these – just cant get registered as a pretend user on the registration page

    15. Which company provides your hosting?

    D9

    16. Is your server running Windows, or if Linux; Apache, nginx or something else?

    Apache i think

    17. Which BP Theme are you using?

    dont know

    18. Have you overloaded any BuddyPress template files.

    no

    19. Any other site customisations that might have a bearing on the issue?

    no

    kaneesha
    Participant

    I try to get a different color for “new” notifications could somebody help please?

    My actual code in my theme functions.php:

    //notification alerts for posts
    function my_nav_menu_notif_counter($menu) {      
            if (!is_user_logged_in())
                    return $menu;
            else
                    $notif = '<a class="notices" 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>';
                    $menu = $menu . $notif;
                    return $menu;
    }
    add_filter( 'wp_nav_menu_items', 'my_nav_menu_notif_counter' );
    
    //notification alerts for messages
    function my_nav_menu_msg_counter($menu) {      
            if (!is_user_logged_in())
                    return $menu;
            else
                    $notif = '<a class="notices" href="' . bp_loggedin_user_domain() . 'messages/' . '"><span class="noticecount2"><i class="noticecount2title">Messages</i>'. bp_get_total_unread_messages_count( bp_loggedin_user_id() ) .'</span></a>';
                    $menu = $menu . $notif;
                    return $menu;
    }
    
    

    Thank you in advance 🙂

    #306073
    fulviods
    Participant

    Hi

    I have the last version of wordpress and buddypress but our site is not visible (its private)
    You can only see the home page http://www.test2.allianceschlumberger.org

    I would like to replace the username by the first name and last name in the forums but also in the email notifications..how can i do it ? i didnt find a valid solution

    shanebp
    Moderator

    That’s because the function makes a call to another function that calls a class function that has a param that defaults to ‘only new’.

    Open: buddypress\bp-notifications\classes\class-bp-notifications-notification.php
    and look at the args for public static function get( $args = array() )

    Untested, but try:

    $notifications = BP_Notifications_Notification::get( array( 
    	'user_id' => get_current_user_id(),
    	'is_new'  => 'both'				
    ) );
    #305549
    polywebjeff
    Participant

    Switching to the default aarvark theme did indead remove the error messages. I’ve switched back to the child theme, and removed mycode from bp-custom. No results. My BP templates do not contain bp_nav, but I didn’t took the time to change the file versions in the top comments. I have those custom files:

    • aarvark-child/buddypress/members/single/myorganization/edit.php
    • /**
       * BuddyPress - Members Single Profile Edit
       *
       * @package BuddyPress
       * @subpackage bp-legacy
       * @version 3.0.0
       */
    • aarvark-child/buddypress/members/single/myorganization/profile-loop.php
    • /**
       * BuddyPress - Members Profile Loop
       *
       * @package BuddyPress
       * @subpackage bp-legacy
       * @version 3.0.0
       */
    • aarvark-child/buddypress/members/single/myorganization/profile-wp.php
    • /**
       * BuddyPress - Members Single Profile WP
       *
       * @package BuddyPress
       * @subpackage bp-legacy
       * @version 3.0.0
       */
    • aarvark-child/buddypress/members/single/profile/edit.php
    • /**
       * BuddyPress - Members Single Profile Edit
       *
       * @package BuddyPress
       * @subpackage bp-legacy
       * @version 3.0.0
       */
    • aarvark-child/buddypress/members/single/home.php
    • /**
       * BuddyPress - Members Home
       *
       * @package BuddyPress
       * @subpackage bp-legacy
       */
    • aarvark-child/buddypress/members/single/member-header.php
    • /**
       * BuddyPress - Users Header
       *
       * @package BuddyPress
       * @subpackage bp-legacy
       */
    • aarvark-child/buddypress/members/register.php
    • no version in comments

      In my functions.php file:

      // New buddypress nav items
      
      function add_bp_menu_items() {
          global $bp;
          //Remove unwanted nav items
          bp_core_remove_nav_item( 'activity' );
          bp_core_remove_nav_item( 'forums' );
          bp_core_remove_nav_item( 'user-media' );
      //    bp_core_remove_subnav_item( 'profile', 'public' );
          unset($bp->bp_options_nav['profile']['public']);
          unset($bp->bp_options_nav['profile']['change-avatar']);
          unset($bp->bp_options_nav['profile']['change-cover-image']);
          unset($bp->bp_options_nav['settings']['profile']);
          unset($bp->bp_options_nav['settings']['data']);
      
          $bp->bp_options_nav['profile']['name'] = 'My Profile';
      }
      add_action( 'bp_setup_nav', 'add_bp_menu_items', 15 );
      
      // Change Profile menu/tab order
      function rt_change_profile_tab_order() {
          global $bp;
      
          $bp->members->nav->edit_nav( array(
              'name' => 'My Profile',
          ), 'profile' );
      
          $bp->members->nav->edit_nav( array(
              'position' => 1,
          ), 'profile' );
      
          $bp->members->nav->edit_nav( array(
              'position' => 65,
          ), 'notifications' );
      }
      add_action( 'bp_init', 'rt_change_profile_tab_order', 999 );
    #305501

    In reply to: Notifications settings

    Debora1976
    Participant

    Hi,

    The form is not in settings:

    <?php

    /**

    * BuddyPress – Members Settings Notifications

    *

    * @package BuddyPress

    * @subpackage bp-legacy

    * @version 3.0.0

    */

    /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */

    do_action( ‘bp_before_member_settings_template’ ); ?>

    <h2 class=”bp-screen-reader-text”><?php

    /* translators: accessibility text */

    _e( ‘Notification settings’, ‘buddypress’ );

    ?></h2>

    <form action=”<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . ‘/notifications’; ?>” method=”post” class=”standard-form” id=”settings-form”>

    <p><?php _e( ‘Send an email notice when:’, ‘buddypress’ ); ?></p>

    <?php

    /**

    * Fires at the top of the member template notification settings form.

    *

    * @since 1.0.0

    */

    do_action( ‘bp_notification_settings’ ); ?>

    <?php

    /**

    * Fires before the display of the submit button for user notification saving.

    *

    * @since 1.5.0

    */

    do_action( ‘bp_members_notification_settings_before_submit’ ); ?>

    <div class=”submit”>

    <input type=”submit” name=”submit” value=”<?php esc_attr_e( ‘Save Changes’, ‘buddypress’ ); ?>” id=”submit” class=”auto” />

    </div>

    <?php

    /**

    * Fires after the display of the submit button for user notification saving.

    *

    * @since 1.5.0

    */

    do_action( ‘bp_members_notification_settings_after_submit’ ); ?>

    <?php wp_nonce_field(‘bp_settings_notifications’ ); ?>

    </form>

    <?php

    /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */

    do_action( ‘bp_after_member_settings_template’ );

    #304517
    winnischneider
    Participant

    Ok I got it. sorry but see now that we use really a plugin called “notification” for this job.
    Its a while ago when I made this installation. But would it be possible to send a email to users from the wordpress side without plugin to members?

    #304145
    werny
    Participant

    Hi there,

    I got lots of E-Mail returns of my users notifications.
    That happens, when the enter a non existing email in their account.
    But how can they even enter a non valid email? All Emails must be approved by link in BB.
    Or is it possible that the user have deleted their mail account after having singed up ad my page?
    How can I prevent that?
    It is very annoying to get all those returning mails – and the user will not get his notification either.

    #303695
    cdtrue
    Participant

    Thank you! That gets me half way 🙂

    I still get the notification after registration about the activation link – and I do not think that the little old ladies using my site will get that they have to activate and then wait for approval (to much for them to take in).

    So I now are able to stop users with the extra My Private Site-plugin and the messages sent out from BP egistration works as a charm. There is only one (Account Approved Email) that actually is sent though – I can not figure out how to get the other ones to override the BuddyPress – activation-email. And if I de-activate that e-mail no e-mail is sent at all.

    Also when I click on the register-button in the registration form I get redirected to a page that says that my account needs to be activated and I have to check my e-mail to do so. I want to loose it or change the text.

    If they try to log in anyway they get the wordpress opt of re-sending the activation-link. Same thing here – preferably change the text.

    But where do I find the texts? I guess the re-direct page is automated from BP, the other one is from WP.

    Any tips?

    sitesfromash
    Participant

    Hi. I have chosen to disable the Notifications component in hopes that users would not receive notification emails. This means, however, that there is no page where users can change their notification settings. When editing the activation and reset password emails, as well as the email sent when group details have been changed, I noticed that there is an Unsubscribe link still showing. Can you please let me know how I am able to prevent the link from showing or customize it to saying Home Page and redirecting those who click it to my home page? I appreciate any feedback which you can provide me. Have a great day.

    #303170
    FTLRalph
    Participant

    And like most cases I figured it out after posting the question

    public function should_send_mention_notificaton($value, $usernames, $user_id, $activity)
    {
    	// Return false if activity author is blocked by user_id
    	global $wpdb;
    	
    	$id_maybe_blocked = $activity->user_id;
    	$blocked_ids = $wpdb->get_col( "SELECT target_id FROM {$wpdb->base_prefix}bp_block_member WHERE user_id = '$user_id' ");
    	if (in_array($id_maybe_blocked, $blocked_ids) == true)
    		return false;
    	return true;
    }
    add_filter( 'bp_activity_at_name_do_notifications', 'should_send_mention_notificaton', 1, 4);
    lenasterg
    Participant

    Hi, community I need your help.
    I’m using BuddyPress + WordPress multisite.
    The current situation is this:
    When a user is invited to join a blog he gets an email via wp_mail. He/she don’t get any notification via BuddyPress about that.

    I want to also add the mail which WP send to user to the BuddyPress as BP_message so the user can accept the blog invite from his/her BP inbox.

    Do you have any ideas?
    Thanks in advance
    Lena

    #302956
    Artyom
    Participant

    Hello! How I can add a notifications like in admin bar to my site menu. (I don’t use buddypress user widget and users don’t have access to the admin panel. My site menu use like user admin panel).

Viewing 25 results - 76 through 100 (of 695 total)
Skip to toolbar