Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'notification user id'

Viewing 25 results - 176 through 200 (of 695 total)
  • Author
    Search Results
  • 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;
    }
    
    #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

    #268147

    In reply to: Contact user

    xmginc
    Participant

    @flashvilla, hope this helps:

    I’m using Gravity Forms to display a contact form on each member profile page and dynamically populating a hidden field with the member’s email address.

    Here’s info on dynamically populating a field in GF

    Their example:

    add_filter( 'gform_field_value_your_parameter', 'my_custom_population_function' );
    function my_custom_population_function( $value ) {
        return 'boom!';
    }

    I have changed this to:

    add_filter('gform_field_value_bp_member_email', 'bp_member_email');
    function bp_member_email($value){
      return bp_get_displayed_user_email();
    }

    In Gravityforms, I have then created a hidden field and in the advanced tab of that field, checked “Allow field to be populated dynamically” and entered the “Parameter Name:” as “bp_member_email”

    Then, in the notifications, the “Send to Email” should be changed from a standard email to a Gravityform tag. You can get that by clicking the little arrow key beside many fields such as “From Name” box. Find the name of your hidden field and click that. It should give you something like this: {BP Member Email:7} where “BP Member Email” is the name I gave the hidden field – yours will be whatever you named it.

    You’ll also need to embed the form to your child theme: /themes/yourchildtheme/buddypress/members/single/home.php

    Details on how to embed into your theme can be found here. Example: (where 1 is the ID of your form and 12 is the starting tabindex)

    <?php gravity_form(1, false, false, false, '', true, 12); ?>

    If this worked, you can view the source code of the member page and you’ll see the member’s email as an input value in the hidden field.

    Hope this helps!

    Please note: if you can’t have the person’s email displayed publicly in the source code for privacy (even though it’s not visible on the site), you will need an alternative method. Members on my site all have their emails visible so it’s not an issue for me.

    #268059
    Bradley Stevens
    Participant

    @xmginc yep, so close. I just want users to get notifications and messages, and the same avatars and profile pictures network wide. That would expand the ability of buddypress tenfold.

    Thanks for the info on WPMU. I hadn’t really heard of them, but this has my interest

    zeichnicht
    Participant

    My client has asked that notifications get sent everytime a user updates his profile. I have two profiles that require notifications – the base group, and a group called: ‘Personal Details’ – the code I am using is sending emails for both forms no matter which form is selected, I have tried using if statements but the do not send.

    The current code:

    function rc_buddypress_profile_update( $user_id ) {
    
        $admin_email = "barbara@lsdev.biz";
        $message = sprintf( __( 'Dear Admin, "Base Profile" details have been updated for the following member: %1$s', 'buddypress' ), bp_core_get_user_displayname( $user_id ) ) . "\r\n\r\n";
        $message .= sprintf( __( 'Name: %s' ), bp_get_profile_field_data('field=Name') ). "\r\n";
        $message .= sprintf( __( 'Surname: %s' ), bp_get_profile_field_data('field=Surname') ). "\r\n";
        $message .= sprintf( __( 'Company Name: %s' ), bp_get_profile_field_data('field=Company Name') ). "\r\n";
        $message .= sprintf( __( 'Company Website: %s' ), bp_get_profile_field_data('field=Company Website') ). "\r\n";
        wp_mail( $admin_email, sprintf( __( 'FISA Member Base Profile Update' ), FISA ), $message );
    }
    
    $personalDetails = xprofile_get_field_id_from_name( 'Personal Details' );
    
    function rc_buddypress_personal_details_update( $personalDetails ) {
        $admin_email = "barbara@lsdev.biz";
        $message = sprintf( __( 'Dear Admin, "Personal Details" have been updated for the following member: %1$s', 'buddypress' ), bp_core_get_user_displayname( $personalDetails ) ) . "\r\n\r\n";
        $message .= sprintf( __( 'Mobile Phone: %s' ), bp_get_profile_field_data('field=Mobile Phone') ). "\r\n";
        $message .= sprintf( __( 'Work Phone: %s' ), bp_get_profile_field_data('field=Work Phone') ). "\r\n\r\n";
        $message .= sprintf( __( 'Address Line 1: %s' ), bp_get_profile_field_data('field=Address Line 1') ). "\r\n";
        $message .= sprintf( __( 'Address Line 2: %s' ), bp_get_profile_field_data('field=Address Line 2') ). "\r\n";
        $message .= sprintf( __( 'Address Line 3: %s' ), bp_get_profile_field_data('field=Address Line 3') ). "\r\n\r\n";
        $message .= sprintf( __( 'City: %s' ), bp_get_profile_field_data('field=City') ). "\r\n";
        $message .= sprintf( __( 'Postal Code: %s' ), bp_get_profile_field_data('field=Postal Code') ). "\r\n";
        $message .= sprintf( __( 'Region: %s' ), bp_get_profile_field_data('field=Region') ). "\r\n\r\n";
        wp_mail( $admin_email, sprintf( __( 'FISA Member Personal Details Update' ), get_option('blogname') ), $message );
    
    }
    
        add_action( 'xprofile_updated_profile', 'rc_buddypress_personal_details_update', 10, 5 );
        add_action( 'xprofile_updated_profile', 'rc_buddypress_profile_update', 10, 5 );
    

    What I tried to use to separate them:

    function rc_buddypress_profile_update( $user_id ) {
        if ( xprofile_get_field_data( "User Type") == "Personal Details" ) {
                $admin_email = "martin@lsdev.biz";
    
                $message = sprintf( __( 'Dear Admin, "Personal Details" have been updated for the following member: %1$s', 'buddypress' ), bp_core_get_user_displayname( $user_id ) ) . "\r\n\r\n";
                $message .= sprintf( __( 'Mobile Phone: %s' ), bp_get_profile_field_data('field=Mobile Phone') ). "\r\n";
                $message .= sprintf( __( 'Work Phone: %s' ), bp_get_profile_field_data('field=Work Phone') ). "\r\n\r\n";
                $message .= sprintf( __( 'Address Line 1: %s' ), bp_get_profile_field_data('field=Address Line 1') ). "\r\n";
                $message .= sprintf( __( 'Address Line 2: %s' ), bp_get_profile_field_data('field=Address Line 2') ). "\r\n";
                $message .= sprintf( __( 'Address Line 3: %s' ), bp_get_profile_field_data('field=Address Line 3') ). "\r\n\r\n";
                $message .= sprintf( __( 'City: %s' ), bp_get_profile_field_data('field=City') ). "\r\n";
                $message .= sprintf( __( 'Postal Code: %s' ), bp_get_profile_field_data('field=Postal Code') ). "\r\n";
                $message .= sprintf( __( 'Region: %s' ), bp_get_profile_field_data('field=Region') ). "\r\n\r\n";
                wp_mail( $admin_email, sprintf( __( 'FISA Member Personal Details Update' ), get_option('blogname') ), $message );
    
            } else  {
            $admin_email = "martin@lsdev.biz";
    
            $message = sprintf( __( 'Dear Admin, "Base Profile" details have been updated for the following member: %1$s', 'buddypress' ), bp_core_get_user_displayname( $user_id ) ) . "\r\n\r\n";
                $message .= sprintf( __( 'Name: %s' ), bp_get_profile_field_data('field=Name') ). "\r\n";
                $message .= sprintf( __( 'Surname: %s' ), bp_get_profile_field_data('field=Surname') ). "\r\n";
                $message .= sprintf( __( 'Company Name: %s' ), bp_get_profile_field_data('field=Company Name') ). "\r\n";
                $message .= sprintf( __( 'Company Website: %s' ), bp_get_profile_field_data('field=Company Website') ). "\r\n";
                wp_mail( $admin_email, sprintf( __( 'FISA Member Base Profile Update' ), FISA ), $message );
            }
    
        add_action( 'xprofile_updated_profile', 'rc_buddypress_profile_update', 10, 5 );

    Would appreciate some help on this.

    wci
    Participant

    Hi Buddypress support,
    I am still waiting to get my problem to solve.
    While using bbpress search forum then the search result is not displayed, but instead get forward to homepage.
    Please find this screen video helpful to solve my issue
    > https://www.screencast.com/t/eMZEAnn9X2

    Please also find this info helpful as you stated you need those info too:

    Please try to supply answers to the following questions.
    1. Which version of WordPress are you running?
    WP ver. 4.8

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

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

    4. Did you upgrade from a previous version of WordPress? If so, from which version?
    no – Version 2.8.2 is in use

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
    not sure but I guess it was working

    6. Which version of BP are you running?
    Version 2.8.2 is in use

    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?
    (but the problem occur even, if I deactiavete all plugins just using buddypress and bbpress together)
    Name Version Plugin URL
    WP Easy Updates 1.1.1 http://ayecode.io/
    AffiliateWP – Lifetime Commissions 1.2.4 http://affiliatewp.com/addons/lifetime-commissions/
    AffiliateWP – PayPal Payouts 1.1.7 http://affiliatewp.com/addons/paypal-payouts/
    AffiliateWP – Recurring Referrals 1.6.2 http://affiliatewp.com/addons/recurring-referrals/
    AffiliateWP 2.0.10 https://affiliatewp.com
    AffiliateWP – Affiliate Area Tabs 1.1.5 https://affiliatewp.com/
    AffiliateWP – Affiliate Dashboard Sharing 1.1.3 http://affiliatewp.com/addons/affiliate-dashboard-sharing/
    AffiliateWP BuddyPress Pro 1.0.1 http://propluginmarketplace.com/plugins/affiliatewp-buddypress-pro
    AffiliateWP – Direct Link Tracking 1.1.1 https://affiliatewp.com/add-ons/pro/direct-link-tracking/
    AffiliateWP MLM 1.1.2 http://theperfectplugin.com/downloads/affiliatewp-mlm
    AffiliateWP – Order Details For Affiliates 1.1.3 https://affiliatewp.com/addons/order-details-affiliates/
    AffiliateWP Performance Bonuses 1.0.3.1 http://propluginmarketplace.com/plugins/affiliatewp-performance-bonuses
    AffiliateWP Ranks 1.0.2 http://propluginmarketplace.com/plugins/affiliatewp-ranks
    AffiliateWP Variable Rates 1.3 http://propluginmarketplace.com/plugins/affiliatewp-variable-rates
    Akismet Anti-Spam 3.3.2 https://akismet.com/
    All In One WP Security 4.2.8 https://www.tipsandtricks-hq.com/wordpress-security-and-firewall-plugin
    Autoptimize 2.2.0 http://autoptimize.com/
    bbPress 2.5.12 https://bbpress.org
    BuddyPress Instant Chat 1.6 http://iamrichardphelps.com/
    BuddyPress 2.8.2 https://buddypress.org/
    Contact Form 7 Datepicker 2.6.0 https://github.com/relu/contact-form-7-datepicker/
    Contact Form 7 Honeypot 1.10 http://www.nocean.ca/plugins/honeypot-module-for-contact-form-7-wordpress-plugin/
    Contact Form 7 4.8 https://contactform7.com/
    Cookie Notice 1.2.38 http://www.dfactory.eu/plugins/cookie-notice/
    Delightful Downloads 1.6.6 https://delightfuldownloads.com
    Google Tag Manager for WordPress 1.6.1 https://duracelltomi.com/google-tag-manager-for-wordpress/
    Email Log 1.9.1 http://sudarmuthu.com/wordpress/email-log
    EWWW Image Optimizer 3.4.1 https://wordpress.org/plugins/ewww-image-optimizer/
    Featured Image Generator 1.1.5 https://designilcode.com
    FooTable 0.3.1 http://fooplugins.com/plugins/footable-lite/
    GD Business Hours 1.3.8.2 http://www.solarflarecomputing.com
    GeoDirectory Advance Search Filters 1.4.9 http://wpgeodirectory.com/
    GeoDirectory AffiliateWP Integration 1.0.8 http://wpgeodirectory.com
    GeoDirectory Ajax Duplicate Alert 1.1.8 http://wpgeodirectory.com
    GeoDirectory BuddyPress Integration 1.1.9 http://wpgeodirectory.com/
    GeoDirectory Claim Manager 1.3.21 http://wpgeodirectory.com
    GeoDirectory Custom Post Types 1.3.5 http://wpgeodirectory.com
    GeoDirectory Dashboard 0.0.1 https://wpgeodirectory.com
    GeoDirectory Events 1.4.6 https://wpgeodirectory.com
    GeoDirectory Franchise Manager 1.0.6 http://wpgeodirectory.com/
    GeoDirectory Invoice 1.0 http://www.worldcheckin.com
    GeoDirectory Location Manager 1.5.50 http://wpgeodirectory.com
    GeoDirectory Marker Cluster 1.3.0 http://wpgeodirectory.com
    GeoDirectory Payment Manager 1.4.4 http://wpgeodirectory.com
    GeoDirectory Re-Captcha 1.1.5 http://wpgeodirectory.com/
    GeoDirectory Review Rating Manager 1.3.8 http://wpgeodirectory.com
    GeoDirectory Social Importer 1.3.1 http://wpgeodirectory.com
    GeoDirectory 1.6.21 http://wpgeodirectory.com/
    GT-Vouchers – GeoDirectory Version 1.5.7.8 http://www.gt-vouchers.com/
    Icegram – Popups, Optins, CTAs & lot more… 1.10.5 http://www.icegram.com/
    Idea Factory 1.2 http://wpideafactory.com
    If Modified Since Header 1.2.5 https://www.isaumya.com/portfolio-item/if-modified-since-header-for-wordpress/
    Inbound Extension – MailPoet Integration 1.0.9 http://www.inboundnow.com/
    Insert HTML Snippet 1.2.2 http://xyzscripts.com/wordpress-plugins/insert-html-snippet/
    Collapse-O-Matic 1.7.5 https://plugins.twinpictures.de/plugins/collapse-o-matic/
    Leads 3.1.1 http://www.inboundnow.com/leads/
    MailPoet – Contact Form 7 Integration 1.0.7.5 https://github.com/jessepearson/mailpoet-contact-form-7
    Master Slider Pro 3.1.3 http://codecanyon.net/item/masterslider-pro/7467925?ref=averta
    Multilingual Tools 1.2 https://wpml.org/download/multilingual-tools/
    ProfitBuilder 2.2.7 http://www.imsuccesscenter.com/
    AffiliateWP – Pushover Notifications 1.0.2 http://affiliatewp.com/addons/pushover-notifications
    SendGrid 1.11.3 https://wordpress.org/plugins/sendgrid-email-delivery-simplified/
    WPML Multilingual CMS 3.7.1 https://wpml.org/
    Social Content Locker 1.1 http://web-settler.com/wordpress-social-locker/
    Standout CSS3 Buttons 0.3.0 http://www.jimmyscode.com/wordpress/standout-css3-buttons/
    TablePress Extension: Responsive Tables 1.4 https://tablepress.org/extensions/responsive-tables/
    TablePress 1.8 https://tablepress.org/
    TinyMCE Advanced 4.6.3 http://www.laptoptips.ca/projects/tinymce-advanced/
    UberMenu 3 – The Ultimate WordPress Mega Menu 3.2.5 http://wpmegamenu.com
    UpdraftPlus – Backup/Restore 2.13.4.21 https://updraftplus.com
    Use Google Libraries 1.6.2.3 http://jasonpenney.net/wordpress-plugins/use-google-libraries/
    Widget Logic 5.8.2 https://wordpress.org/extend/plugins/widget-logic/
    Yoast SEO 4.9 https://yoast.com/wordpress/plugins/seo/#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wpseoplugin
    Clean Up Optimizer 4.0.10 http://beta.tech-banker.com
    Wordpress Social Invitations – Lite 2.1.1 http://wp.timersys.com/wordpress-social-invitations/
    WP Super Cache – Clear all cache 1.4 http://ocaoimh.ie/wp-super-cache/
    WP Super Cache 1.4.9 https://wordpress.org/plugins/wp-super-cache/
    WP Support Plus 8.0.7 https://wordpress.org/plugins/wp-support-plus-responsive-ticket-system-ticket-system/
    WPML CMS Nav 1.4.20 https://wpml.org/
    WPML Media 2.2.0 https://wpml.org/
    WPML Page Builders 1.1.3 https://wpml.org/
    WPML Sticky Links 1.4.1 https://wpml.org/
    WPML String Translation 2.5.4 https://wpml.org/
    WPML Translation Management 2.3.1 https://wpml.org/
    WPML Widgets 1.0.6 http://jeroensormani.com
    MailPoet Newsletters 2.7.10 http://www.mailpoet.com/

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

    10. Which theme do you use ?
    GDF_child is from geodirectory (but the problem occur even, if I switch the theme to twenty fourteen)

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

    12. Do you have any custom functions in bp-custom.php?
    Not as I know, but maybe the geodirectory addon “GeoDirectory BuddyPress Integration 1.1.9″

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

    14. Please provide a list of any errors in your server’s log files.
    [23-Jun-2017 03:41:33 UTC] WordPress database error Table ‘worldche_wcimsgd.wp_term_relationships’ doesn’t exist for query SELECT tt.term_id, MAX(p.post_modified_gmt) AS date_gmt, l.country_slug AS country, l.region_slug AS region, l.city_slug AS city FROM ms_1_geodir_post_locations l LEFT JOIN ms_1_geodir_gd_video_detail pd ON pd.post_location_id = l.location_id LEFT JOIN ms_1_posts p ON p.ID = pd.post_id LEFT JOIN wp_term_relationships AS tr ON tr.object_id = p.ID LEFT JOIN wp_term_taxonomy AS tt ON ( tt.term_taxonomy_id = tr.term_taxonomy_id AND tt.taxonomy = ‘gd_videocategory’ ) WHERE pd.post_locations LIKE CONCAT( ‘[‘, l.city_slug, ‘],[‘, l.region_slug , ‘],[‘, l.country_slug , ‘]’ ) AND p.post_type = ‘gd_video’ AND p.post_status = ‘publish’ AND l.location_id IS NOT NULL AND tt.term_id IS NOT NULL GROUP BY CONCAT(tt.term_id, ‘-‘, l.country_slug, ‘-‘, l.region_slug, ‘-‘, l.city_slug) ORDER BY date_gmt DESC made by require(‘wp-blog-header.php’), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPSEO_Sitemaps->redirect, WPSEO_Sitemaps->build_sitemap, WPSEO_Sitemaps->build_root_map, WPSEO_Sitemaps_Renderer->get_index, apply_filters(‘wpseo_sitemap_index’), WP_Hook->apply_filters, call_user_func_array, geodir_sitemap_index, geodir_sitemap_taxonomies_sitemap_index, geodir_sitemap_get_locations_taxonomies
    [23-Jun-2017 03:41:33 UTC] WordPress database error Table ‘worldche_wcimsgd.wp_term_relationships’ doesn’t exist for query SELECT tt.term_id, MAX(p.post_modified_gmt) AS date_gmt, l.country_slug AS country, l.region_slug AS region, l.city_slug AS city FROM ms_1_geodir_post_locations l LEFT JOIN ms_1_geodir_gd_video_detail pd ON pd.post_location_id = l.location_id LEFT JOIN ms_1_posts p ON p.ID = pd.post_id LEFT JOIN wp_term_relationships AS tr ON tr.object_id = p.ID LEFT JOIN wp_term_taxonomy AS tt ON ( tt.term_taxonomy_id = tr.term_taxonomy_id AND tt.taxonomy = ‘gd_video_tags’ ) WHERE pd.post_locations LIKE CONCAT( ‘[‘, l.city_slug, ‘],[‘, l.region_slug , ‘],[‘, l.country_slug , ‘]’ ) AND p.post_type = ‘gd_video’ AND p.post_status = ‘publish’ AND l.location_id IS NOT NULL AND tt.term_id IS NOT NULL GROUP BY CONCAT(tt.term_id, ‘-‘, l.country_slug, ‘-‘, l.region_slug, ‘-‘, l.city_slug) ORDER BY date_gmt DESC made by require(‘wp-blog-header.php’), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPSEO_Sitemaps->redirect, WPSEO_Sitemaps->build_sitemap, WPSEO_Sitemaps->build_root_map, WPSEO_Sitemaps_Renderer->get_index, apply_filters(‘wpseo_sitemap_index’), WP_Hook->apply_filters, call_user_func_array, geodir_sitemap_index, geodir_sitemap_taxonomies_sitemap_index, geodir_sitemap_get_locations_taxonomies
    [23-Jun-2017 04:40:47 UTC] WordPress-Datenbank-Fehler You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 1 für Abfrage SELECT * FROM ms_1_geodir_invoice WHERE post_id = von require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/GDF_child/geodirectory/listing-success.php’), my_project_updated_email
    [23-Jun-2017 04:40:47 UTC] WordPress-Datenbank-Fehler You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘WHERE post_author = 0’ at line 1 für Abfrage UPDATE ms_1_posts SET vat_id = WHERE post_author = 0 von require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/GDF_child/geodirectory/listing-success.php’), my_project_updated_email
    [23-Jun-2017 06:43:08 UTC] PHP Fatal error: Call to undefined function is_bbpress() in /home/worldcheckin/public_html/wci/wp-content/plugins/widget-logic/widget_logic.php(463) : eval()’d code on line 2

    15. Which company provides your hosting?
    hetzner – I am using a own dedicated server

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

    wci
    Participant

    Hi Buddypress support,
    I am still waiting to get my problem to solve.
    While using bbpress search forum then the search result is not displayed, but instead get forward to homepage.
    Please find this screen video helpful to solve my issue
    > https://www.screencast.com/t/eMZEAnn9X2

    Please also find this info helpful as you stated you need those info too:

    Please try to supply answers to the following questions.
    1. Which version of WordPress are you running?
    WP ver. 4.8

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

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

    4. Did you upgrade from a previous version of WordPress? If so, from which version?
    no – Version 2.8.2 is in use

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
    not sure but I guess it was working

    6. Which version of BP are you running?
    Version 2.8.2 is in use

    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?
    (but the problem occur even, if I deactiavete all plugins just using buddypress and bbpress together)
    Name Version Plugin URL
    WP Easy Updates 1.1.1 http://ayecode.io/
    AffiliateWP – Lifetime Commissions 1.2.4 http://affiliatewp.com/addons/lifetime-commissions/
    AffiliateWP – PayPal Payouts 1.1.7 http://affiliatewp.com/addons/paypal-payouts/
    AffiliateWP – Recurring Referrals 1.6.2 http://affiliatewp.com/addons/recurring-referrals/
    AffiliateWP 2.0.10 https://affiliatewp.com
    AffiliateWP – Affiliate Area Tabs 1.1.5 https://affiliatewp.com/
    AffiliateWP – Affiliate Dashboard Sharing 1.1.3 http://affiliatewp.com/addons/affiliate-dashboard-sharing/
    AffiliateWP BuddyPress Pro 1.0.1 http://propluginmarketplace.com/plugins/affiliatewp-buddypress-pro
    AffiliateWP – Direct Link Tracking 1.1.1 https://affiliatewp.com/add-ons/pro/direct-link-tracking/
    AffiliateWP MLM 1.1.2 http://theperfectplugin.com/downloads/affiliatewp-mlm
    AffiliateWP – Order Details For Affiliates 1.1.3 https://affiliatewp.com/addons/order-details-affiliates/
    AffiliateWP Performance Bonuses 1.0.3.1 http://propluginmarketplace.com/plugins/affiliatewp-performance-bonuses
    AffiliateWP Ranks 1.0.2 http://propluginmarketplace.com/plugins/affiliatewp-ranks
    AffiliateWP Variable Rates 1.3 http://propluginmarketplace.com/plugins/affiliatewp-variable-rates
    Akismet Anti-Spam 3.3.2 https://akismet.com/
    All In One WP Security 4.2.8 https://www.tipsandtricks-hq.com/wordpress-security-and-firewall-plugin
    Autoptimize 2.2.0 http://autoptimize.com/
    bbPress 2.5.12 https://bbpress.org
    BuddyPress Instant Chat 1.6 http://iamrichardphelps.com/
    BuddyPress 2.8.2 https://buddypress.org/
    Contact Form 7 Datepicker 2.6.0 https://github.com/relu/contact-form-7-datepicker/
    Contact Form 7 Honeypot 1.10 http://www.nocean.ca/plugins/honeypot-module-for-contact-form-7-wordpress-plugin/
    Contact Form 7 4.8 https://contactform7.com/
    Cookie Notice 1.2.38 http://www.dfactory.eu/plugins/cookie-notice/
    Delightful Downloads 1.6.6 https://delightfuldownloads.com
    Google Tag Manager for WordPress 1.6.1 https://duracelltomi.com/google-tag-manager-for-wordpress/
    Email Log 1.9.1 http://sudarmuthu.com/wordpress/email-log
    EWWW Image Optimizer 3.4.1 https://wordpress.org/plugins/ewww-image-optimizer/
    Featured Image Generator 1.1.5 https://designilcode.com
    FooTable 0.3.1 http://fooplugins.com/plugins/footable-lite/
    GD Business Hours 1.3.8.2 http://www.solarflarecomputing.com
    GeoDirectory Advance Search Filters 1.4.9 http://wpgeodirectory.com/
    GeoDirectory AffiliateWP Integration 1.0.8 http://wpgeodirectory.com
    GeoDirectory Ajax Duplicate Alert 1.1.8 http://wpgeodirectory.com
    GeoDirectory BuddyPress Integration 1.1.9 http://wpgeodirectory.com/
    GeoDirectory Claim Manager 1.3.21 http://wpgeodirectory.com
    GeoDirectory Custom Post Types 1.3.5 http://wpgeodirectory.com
    GeoDirectory Dashboard 0.0.1 https://wpgeodirectory.com
    GeoDirectory Events 1.4.6 https://wpgeodirectory.com
    GeoDirectory Franchise Manager 1.0.6 http://wpgeodirectory.com/
    GeoDirectory Invoice 1.0 http://www.worldcheckin.com
    GeoDirectory Location Manager 1.5.50 http://wpgeodirectory.com
    GeoDirectory Marker Cluster 1.3.0 http://wpgeodirectory.com
    GeoDirectory Payment Manager 1.4.4 http://wpgeodirectory.com
    GeoDirectory Re-Captcha 1.1.5 http://wpgeodirectory.com/
    GeoDirectory Review Rating Manager 1.3.8 http://wpgeodirectory.com
    GeoDirectory Social Importer 1.3.1 http://wpgeodirectory.com
    GeoDirectory 1.6.21 http://wpgeodirectory.com/
    GT-Vouchers – GeoDirectory Version 1.5.7.8 http://www.gt-vouchers.com/
    Icegram – Popups, Optins, CTAs & lot more… 1.10.5 http://www.icegram.com/
    Idea Factory 1.2 http://wpideafactory.com
    If Modified Since Header 1.2.5 https://www.isaumya.com/portfolio-item/if-modified-since-header-for-wordpress/
    Inbound Extension – MailPoet Integration 1.0.9 http://www.inboundnow.com/
    Insert HTML Snippet 1.2.2 http://xyzscripts.com/wordpress-plugins/insert-html-snippet/
    Collapse-O-Matic 1.7.5 https://plugins.twinpictures.de/plugins/collapse-o-matic/
    Leads 3.1.1 http://www.inboundnow.com/leads/
    MailPoet – Contact Form 7 Integration 1.0.7.5 https://github.com/jessepearson/mailpoet-contact-form-7
    Master Slider Pro 3.1.3 http://codecanyon.net/item/masterslider-pro/7467925?ref=averta
    Multilingual Tools 1.2 https://wpml.org/download/multilingual-tools/
    ProfitBuilder 2.2.7 http://www.imsuccesscenter.com/
    AffiliateWP – Pushover Notifications 1.0.2 http://affiliatewp.com/addons/pushover-notifications
    SendGrid 1.11.3 https://wordpress.org/plugins/sendgrid-email-delivery-simplified/
    WPML Multilingual CMS 3.7.1 https://wpml.org/
    Social Content Locker 1.1 http://web-settler.com/wordpress-social-locker/
    Standout CSS3 Buttons 0.3.0 http://www.jimmyscode.com/wordpress/standout-css3-buttons/
    TablePress Extension: Responsive Tables 1.4 https://tablepress.org/extensions/responsive-tables/
    TablePress 1.8 https://tablepress.org/
    TinyMCE Advanced 4.6.3 http://www.laptoptips.ca/projects/tinymce-advanced/
    UberMenu 3 – The Ultimate WordPress Mega Menu 3.2.5 http://wpmegamenu.com
    UpdraftPlus – Backup/Restore 2.13.4.21 https://updraftplus.com
    Use Google Libraries 1.6.2.3 http://jasonpenney.net/wordpress-plugins/use-google-libraries/
    Widget Logic 5.8.2 https://wordpress.org/extend/plugins/widget-logic/
    Yoast SEO 4.9 https://yoast.com/wordpress/plugins/seo/#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wpseoplugin
    Clean Up Optimizer 4.0.10 http://beta.tech-banker.com
    Wordpress Social Invitations – Lite 2.1.1 http://wp.timersys.com/wordpress-social-invitations/
    WP Super Cache – Clear all cache 1.4 http://ocaoimh.ie/wp-super-cache/
    WP Super Cache 1.4.9 https://wordpress.org/plugins/wp-super-cache/
    WP Support Plus 8.0.7 https://wordpress.org/plugins/wp-support-plus-responsive-ticket-system-ticket-system/
    WPML CMS Nav 1.4.20 https://wpml.org/
    WPML Media 2.2.0 https://wpml.org/
    WPML Page Builders 1.1.3 https://wpml.org/
    WPML Sticky Links 1.4.1 https://wpml.org/
    WPML String Translation 2.5.4 https://wpml.org/
    WPML Translation Management 2.3.1 https://wpml.org/
    WPML Widgets 1.0.6 http://jeroensormani.com
    MailPoet Newsletters 2.7.10 http://www.mailpoet.com/

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

    10. Which theme do you use ?
    GDF_child is from geodirectory (but the problem occur even, if I switch the theme to twenty fourteen)

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

    12. Do you have any custom functions in bp-custom.php?
    Not as I know, but maybe the geodirectory addon “GeoDirectory BuddyPress Integration 1.1.9″

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

    14. Please provide a list of any errors in your server’s log files.
    [23-Jun-2017 03:41:33 UTC] WordPress database error Table ‘worldche_wcimsgd.wp_term_relationships’ doesn’t exist for query SELECT tt.term_id, MAX(p.post_modified_gmt) AS date_gmt, l.country_slug AS country, l.region_slug AS region, l.city_slug AS city FROM ms_1_geodir_post_locations l LEFT JOIN ms_1_geodir_gd_video_detail pd ON pd.post_location_id = l.location_id LEFT JOIN ms_1_posts p ON p.ID = pd.post_id LEFT JOIN wp_term_relationships AS tr ON tr.object_id = p.ID LEFT JOIN wp_term_taxonomy AS tt ON ( tt.term_taxonomy_id = tr.term_taxonomy_id AND tt.taxonomy = ‘gd_videocategory’ ) WHERE pd.post_locations LIKE CONCAT( ‘[‘, l.city_slug, ‘],[‘, l.region_slug , ‘],[‘, l.country_slug , ‘]’ ) AND p.post_type = ‘gd_video’ AND p.post_status = ‘publish’ AND l.location_id IS NOT NULL AND tt.term_id IS NOT NULL GROUP BY CONCAT(tt.term_id, ‘-‘, l.country_slug, ‘-‘, l.region_slug, ‘-‘, l.city_slug) ORDER BY date_gmt DESC made by require(‘wp-blog-header.php’), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPSEO_Sitemaps->redirect, WPSEO_Sitemaps->build_sitemap, WPSEO_Sitemaps->build_root_map, WPSEO_Sitemaps_Renderer->get_index, apply_filters(‘wpseo_sitemap_index’), WP_Hook->apply_filters, call_user_func_array, geodir_sitemap_index, geodir_sitemap_taxonomies_sitemap_index, geodir_sitemap_get_locations_taxonomies
    [23-Jun-2017 03:41:33 UTC] WordPress database error Table ‘worldche_wcimsgd.wp_term_relationships’ doesn’t exist for query SELECT tt.term_id, MAX(p.post_modified_gmt) AS date_gmt, l.country_slug AS country, l.region_slug AS region, l.city_slug AS city FROM ms_1_geodir_post_locations l LEFT JOIN ms_1_geodir_gd_video_detail pd ON pd.post_location_id = l.location_id LEFT JOIN ms_1_posts p ON p.ID = pd.post_id LEFT JOIN wp_term_relationships AS tr ON tr.object_id = p.ID LEFT JOIN wp_term_taxonomy AS tt ON ( tt.term_taxonomy_id = tr.term_taxonomy_id AND tt.taxonomy = ‘gd_video_tags’ ) WHERE pd.post_locations LIKE CONCAT( ‘[‘, l.city_slug, ‘],[‘, l.region_slug , ‘],[‘, l.country_slug , ‘]’ ) AND p.post_type = ‘gd_video’ AND p.post_status = ‘publish’ AND l.location_id IS NOT NULL AND tt.term_id IS NOT NULL GROUP BY CONCAT(tt.term_id, ‘-‘, l.country_slug, ‘-‘, l.region_slug, ‘-‘, l.city_slug) ORDER BY date_gmt DESC made by require(‘wp-blog-header.php’), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPSEO_Sitemaps->redirect, WPSEO_Sitemaps->build_sitemap, WPSEO_Sitemaps->build_root_map, WPSEO_Sitemaps_Renderer->get_index, apply_filters(‘wpseo_sitemap_index’), WP_Hook->apply_filters, call_user_func_array, geodir_sitemap_index, geodir_sitemap_taxonomies_sitemap_index, geodir_sitemap_get_locations_taxonomies
    [23-Jun-2017 04:40:47 UTC] WordPress-Datenbank-Fehler You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 1 für Abfrage SELECT * FROM ms_1_geodir_invoice WHERE post_id = von require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/GDF_child/geodirectory/listing-success.php’), my_project_updated_email
    [23-Jun-2017 04:40:47 UTC] WordPress-Datenbank-Fehler You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘WHERE post_author = 0’ at line 1 für Abfrage UPDATE ms_1_posts SET vat_id = WHERE post_author = 0 von require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/GDF_child/geodirectory/listing-success.php’), my_project_updated_email
    [23-Jun-2017 06:43:08 UTC] PHP Fatal error: Call to undefined function is_bbpress() in /home/worldcheckin/public_html/wci/wp-content/plugins/widget-logic/widget_logic.php(463) : eval()’d code on line 2

    15. Which company provides your hosting?
    hetzner – I am using a own dedicated server

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

    #266342
    Victor
    Participant

    I’m trying to get HyperDB to work width Buddypress.

    I’m trying to move bp_activity, bp_activity_meta, bp_notifications, notifications_meta, xprofile_data, xprofile_fields, bp_xprofile_groups, bp_xprofile_meta into there own ‘Buddypress’ database. But it does not work.

    I’m getting this error: Undefined variable: server

    Here is my current config:

    $wpdb->add_database(array(
        'host'     => DB_HOST,
        'user'     => DB_USER,
        'password' => DB_PASSWORD,
        'name'     => 'DATABASE-NAME',
        'write'    => 1,
        'dataset'  => 'bpress',
    ));
     else if(preg_match("/bp_activity/", $wpdb->table)){
        return 'bpress';
    }

    Witch preg_match should I use?

    Anyone that is using HyperDB with Byddypress?

    gloomfall
    Participant

    Hello!

    Wordpress: Version 4.7.5
    BuddyPress: Version 2.8.2
    Site Link: http://www.shsmash.com

    I just started up a new site and have been having trouble finding an answer to some issues I’ve been having. This is related to the BuddyPress notification emails that get sent out to users when they register for the site and when they receive other notifications.

    Here are some of the Email Macros being used:

    {{{activate.url}}}
    {{{message.url}}}
    {{{group.url}}}

    ETC.

    Whenever a URL like that is inserted automatically into the email it generates something strange that points to somewhere on the site that does not exist.

    Example: http://email.shsmash.com/c/eJxNjruOwjAURL8mKaPr-NqJCxcBEioo2C0QnV-7NkqElRgCfP16O6QpRqOjo7FSaIZWlEHWQBpgFAijnLAKkVJRkZZgg0Mvuu1A-g0UCItfJrX4ytym0kvHkWuw1LYtb7QSBhrFgQnEGrimthylTykWtCvqIWdd1-rDkBdlUnio5HKN2w7e5rc_kd0PfwZ_He3l68zP-3bzPR4PMSPlLF10ab4bE_KZ1-0-T27Sbl58iP_GPwRcP8A

    I don’t have a /c/ directory on my site, nor did I indicate wanting to use an “email” subdomain.

    I’m not quite sure what is going on here so hopefully somebody can help!

    manm0untain
    Participant

    Hi Everyone

    I have been struggling with this for a few weeks now. I’m hoping someone can help out.

    So the main profile menu on the Buddypress profile / member area (activity/profile/friends/groups/forum etc). I need to remove some of those items.

    Some items (e.g. forum) I need to remove from there because I only want to have forums in groups, not a central forum. So I need to retain the forum functionality, just not have that link on the user areas.

    Other items I don’t need because I have already set them up on the site main navigation at the top Facebook style (e.g. messages, notifications, settings) and no need to duplicate them on the Buddypress member area menu.

    I have tried using CSS, however this retains the links to the items in the page source. So this is not ideal.

    I have tried using jQuery – same results as CSS.

    I have tried using unset – but this actually removes the functionality, not just the links on the member area nav.

    I have tried using bp_core_remove_nav_item. However this has some side effects. The links to the user messages / notifications / settings at the top of the site are created from the Buddypress options under Appearance > Menus. It seems when you remove those items using bp_core_remove_nav_item, it removes them from the top too. I only want to remove them from the Buddypress member area navigation bar.

    I tried to be clever, and recreated those top menu items using a shortcode to the appropriate user. The links are there and correct. However, one bp_core_remove_nav_item is added – it also seems to disable the various functionality. So now if I go to messages for example, I just get a 404 page. Remove the bp_core_remove_nav_item function and the page / link works correctly again. So it seems bp_core_remove_nav_item is actually removing the functionality of the items on the nav, instead of removing a navigation item, that the function name kind of suggests.

    I can’t recreate that menu manually with HTML, because remaining items (e.g. Media, Groups, Friends etc) have a little dynamic number to the side of each icon indicating how many items are in that area.

    Can anyone please give me some pointers as to how I might remove some items just from that Buddypress member area navigation bar – without leaving links in source code, without removing ALL instances of navigation to those items, and without removing the actual functionality?

    I’m happy to hack the hell out of the core files if needed, I just can’t seem to find anywhere where I might be able to make that change.

    Any help with this would be greatly appreciated, many thanks.

    lalitavalon
    Participant

    I useed the same website with diffrent link on local host it is working fine there is no issue.
    But I actaully try to set up the same website again on local differnt link and try to install the buddypress plugin getting errors and not able to uninstall.
    Still if you want some information please find below:

    Theme -custom theme
    php version 7.0.9
    Install type single
    List of plugins:

    Advanced Custom Fields
    Advanced Custom Fields: Date and Time Picker
    Advanced Custom Fields: Repeater Field
    All In One SEO Pack

    Breadcrumb NavXT

    BuddyPress
    Captcha

    Contact Form 7
    Dephue Data Design Hide Update Notifications – Developer Edition
    Limit Login Attempts
    Lockdown WP Admin
    Login With Ajax
    Restrict Categories
    Visualizer: Charts and Graphs
    WP-Mail-SMTP
    WPFront User Role Editor

    Host Type: Local

    #265408
    Johninbc
    Participant

    I administer two social sites and both are asking of there is any way to remove notifications of people joining the group and who made friends with whom… It is plugging up the group notification area and users are getting annoyed.
    I have searched for appropriate plugins and found a few but all are depreciated and mess up the site.
    Wordpress 4.7.3
    Buddypress 2.8.2
    Bbpress 2.5.12

    I found a code hack for the functions.php but it can’t be used in the child “guideline” theme. When added to the child, I lose admin pages. code snippet below

    // Remove (hide) various activities from streams.
    function my_hidden_activities($a, $activities) {
    //if admin we want to know
    //if (is_site_admin())
    // return $activities;

    $nothanks = array(“new_blog_post”, “created_group”, “joined_group”, “new_member”, “friendship_created”, “activity_liked”);

    foreach ($activities->activities as $key => $activity) {
    if (in_array($activity->type, $nothanks, true)) {
    unset($activities->activities[$key]);
    $activities->activity_count = $activities->activity_count-1;
    $activities->total_activity_count = $activities->total_activity_count-1;
    $activities->pag_num = $activities->pag_num -1;
    }
    }

    // Renumber the array keys to account for missing items.
    $activities_new = array_values( $activities->activities );
    $activities->activities = $activities_new;

    return $activities;
    }
    add_action(‘bp_has_activities’, ‘my_hidden_activities’, 10, 2 );

    The author suggests adding to functions.php but without using the child theme the code would be lost after an update. It also broke the site… Even after reverting the changes, the menu and page formatting was gone.

    Is there any way that is up to date to filter what activity is reported on the group wall?

    #265360
    dalipekez
    Participant

    when i got a comment on a update that i made in Sitewide Activity
    (its actually woocommerce product post)

    ( then i get a notification _”commented on one of your updates- when i click on it, it just redirects me to users profile toppage. i never know on what he actuelly commented.

    i try to use Activity Comment notifier-wich has the right notifiacion link( when click onit it redirects me to actual conversation)

    but the problem is now i have double notification( 2 notification for same comment) 1 from buddypress itself 1 from plugin. how can i solve my link problem?

    #265344
    dalipekez
    Participant

    you can use like that,for me its working- but downside is all new products will be associated as posts in the activity stream. Can you tell me if you have also issue if somebody comments on activity stream at your posted product or any other activity, that notification you will get then click on it it will redirect you to activity of user who posted but not the actual conversation?

    anyway.. here is the function i use in php function

    add_filter ( ‘bp_blogs_record_post_post_types’, ‘activity_publish_custom_post_types’,1,1 );
    function activity_publish_custom_post_types( $post_types ) {
    $post_types[] = ‘product’;
    return $post_types;
    }

    let me know if it works

    cahara
    Participant

    Hey all I’m attempting to modify the content returned by BuddyPress’ default ‘@’ mention notification. I’m using this as part of a custom profile page and would like to modify the “username mentioned you’ text to something more personalized based on post type.

    
    // Change mention output
    function format_mention_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string', $component_action, $component_name, $notification_id) {
        if ( $component_action === 'new_at_mention') { // User mentioned notification
    
            $mentioned_source_type = get_post_type($item_id);
            $username = wl_get_username($secondary_item_id);
            $mention_avatar = wl_get_avatar($secondary_item_id);
            $mention_title = '';
            $mention_text = $username;
    
            if ($mentioned_source_type == 'topic') {
                $mention_title = bbp_get_topic_title( $item_id );
                $mention_text .= ' mentioned you in the forum post ';
                $mention_source_link = ''; // link to topic
            } else if ($mentioned_source_type == 'reply') {
                $parent_topic_id = bbp_get_reply_topic_id( $item_id );
                $mention_title = bbp_get_topic_title( $parent_topic_id );
                $mention_text .= ' mentioned you in their response to the forum post ';
                $mention_source_link = bbp_get_reply_url( $item_id ); // link to reply
            } else if ($mentioned_source_type == 'comment') {
                $comment = get_comment($item_id);
                $mention_text .= ' mentioned you in their comment';
                $mention_source_link = get_comment_link($comment);
    
            } else {
                $mention_avatar = '';
                $mention_title = get_the_title($item_id);
                $mention_text = 'You were mentioned in ';
                $mention_source_link = get_permalink($item_id);
            }
    
            $mention_source_link = wp_nonce_url( add_query_arg( array( 'action' => 'read', 'notification_id' => $notification_id), $mention_source_link ), 'bp_notification_mark_read_' . $notification_id);
    
            // WordPress Toolbar
            if ( 'string' === $format ) {
                $return = apply_filters( 'bp_activity_single_at_mentions_notification', '<a href="' . esc_url( $mention_source_link ) . '" title="New mention">'. $mention_avatar . esc_html( $mention_text ) . '<span class="activity-title">'.$mention_title.'</span></a>', (int) $total_items, $mention_text, $mention_source_link );
    
            // Deprecated BuddyBar
            } else {
                $return = apply_filters( 'bp_activity_single_at_mentions_notification', array(
                    'text' => $mention_text . $mention_title,
                    'link' => $mention_source_link
                ), $mention_source_link, (int) $total_items, $mention_text, $mention_title );
            }
        }
    
        return $return;
    
    }
    add_filter( 'bp_notifications_get_notifications_for_user', 'format_mention_notifications', 100, 8 );
    

    What I’ve tried so far:
    – Changing the priority of the filter
    – Moving my logic into the activity_format_notifications action with various different priorities
    – All of the above in a custom plugin file, bp-custom.php, and my themes’ function.php file

    I’ve used a similar filter for custom notifications and that aspect works great. I just can’t seem to override the default content with my own. My thoughts are that the the filters/actions run too late to be noticed by BuddyPress.

    Many thanks for your help.

    #265159
    Henry Wright
    Moderator

    bp_notifications_get_unread_notification_count( $user_id ) should help. Let us know if you need anything specific.

    m1000
    Participant

    Hello,

    I use simple loop to display user notifications:

    
    if ( $notifications = bp_notifications_get_notifications_for_user( bp_loggedin_user_id(), $format = 'string' ) ) {
    	}
    
    	if ( $notifications ) {
    		$counter = 0;
    		for ( $i = 0, $count = count( $notifications ); $i < $count; ++$i ) {
    			$alt = ( 0 == $counter % 2 ) ? ' alt' : ''; ?>
    			<div class="my-notification<?php echo $alt ?>"><?php echo $notifications[$i] ?></div>
    
    			<?php
    			 $counter++;
    			}
    }
    

    When user click and view any notification it disappears automatically except
    “XX commented on one of your updates” notification. When I switch to a default wp theme and click on this notification it disappears. Both links on both themes are the same, it’s
    activity/p/277/?nid=74#acomment-294

    Why it happens only to one notification? All other notifications works fine.

    #264535
    danbp
    Participant

    Did you tested without any additionnal mail plugin ?
    Have you found this topic ?

    #264220
    deeCT
    Participant

    Hi there,

    Thankyou for the reply.

    The thing is, on your “site wide activity” page –

    The first post here “wrote a new post” looks like a notification that the user wrote a post,
    but it doesnt look like it shows the actual post or text the user posted?

    You have blanked this out, so does it show the actual text that a user posts?
    Do you have a screenshot of this?

    Secondly, Any idea or screenshot of what the activity steam looks like with photos etc using that additional activity plus plugin?

    Thirdly –
    How does admin or anyone we can set moderate what the users post on the “site wide activity” page? ie how do we make this non- automatic and only show once we have approved?

    Do you have a screenshot of what the login/ register page in buddypress looks like?
    ie I want users to register first before they can see the site wide activit ystream

    Thankyou!

    Strothi
    Participant

    Hey guys,

    first of all, awesome forum! I’ve already solved so many of my issues simply by reading the many helpful answers – hence never had the need to post anything myself, but now I’m a bit stuck.

    Here’s what I wanted to do: Put a new profile group in a separate bp profile menu tab and make it visible to both, logged in as well as logged out users. Now, it works perfectly fine, except for the fact that logged out users for some reason get to see my personal profile group under my custom tab instead of the new profile group – which is displayed correctly for me as well as other logged in users.

    Here’s my code:

    /**
    BP Profile Tab Visibility
    */
    
    function bpfr_hide_top_nav() {	
    	
    	if( !is_user_logged_in() ) {	
    
    // bp topnav items to hide	
    		bp_core_remove_nav_item( 'activity' );			
    		bp_core_remove_nav_item( 'friends' );
    		bp_core_remove_nav_item( 'groups' );
    		bp_core_remove_nav_item( 'forums' );
    		bp_core_remove_nav_item( 'media' );
    		bp_core_remove_nav_item( 'docs' );
    		bp_core_remove_nav_item( 'location' );
    	
    
    //bp subnav (my activities, my groups, etc)
    		bp_core_remove_subnav_item( 'activity', 'activity' );
    		bp_core_remove_subnav_item( 'activity', 'friends' ); 
    		bp_core_remove_subnav_item( 'activity', 'favorites' );
    		bp_core_remove_subnav_item( 'activity', 'groups' );
    		bp_core_remove_subnav_item( 'activity', 'mentions' );
    		bp_core_remove_subnav_item( 'activity', 'media' );
    		bp_core_remove_subnav_item( 'activity', 'docs' );
    		bp_core_remove_subnav_item( 'activity', 'comments' );
    
    	}
    }
    add_action( 'bp_ready', 'bpfr_hide_top_nav', 10 );
    
    /**
    BP Tab Order Profile and Tab Rename
    */
    
    function bpex_primary_nav_tabs_position() {
    	buddypress()->members->nav->edit_nav( array( 'position' => 2,	), 'activity' 		);
    	buddypress()->members->nav->edit_nav( array( 'position' => 1, 	), 'profile' 		); 
    	buddypress()->members->nav->edit_nav( array( 'position' => 3,	), 'messages' 	  	);
        buddypress()->members->nav->edit_nav( array( 'position' => 4, 	), 'notifications'	); 
    	buddypress()->members->nav->edit_nav( array( 'position' => 5,	), 'friends' 	  	);
    	buddypress()->members->nav->edit_nav( array( 'position' => 6,	), 'groups' 		);
    	buddypress()->members->nav->edit_nav( array( 'position' => 7, 	), 'forums' 		);
        buddypress()->members->nav->edit_nav( array( 'position' => 8, 	), 'criticalreview'	);
    	buddypress()->members->nav->edit_nav( array( 'position' => 9, 	), 'docs' 		    );
        buddypress()->members->nav->edit_nav( array( 'position' => 10, 	), 'media'	     	);
        buddypress()->members->nav->edit_nav( array( 'position' => 11, 	), 'location'     	);
        buddypress()->members->nav->edit_nav( array( 'position' => 12, 	), 'orders'	     	);
        buddypress()->members->nav->edit_nav( array( 'position' => 13, 	), 'settings' 		);
    }
    add_action( 'bp_setup_nav', 'bpex_primary_nav_tabs_position', 999 );
    
    /**
    Put Critical Review Profile Group in BP Tab
    */
    
    function buddydev_modifyy_user_profile_tab() {
    
    bp_core_new_nav_item( array(
    'name'	=> 'Critical Review',
    'slug'	=> 'criticalreview',
    'screen_function'	=> 'buddydev_screen_profile_data',
    'default_subnav_slug' => 'criticalreview-sub',
    'show_for_displayed_user' => true,
    ));
    
    }
    add_action( 'bp_setup_nav', 'buddydev_modifyy_user_profile_tab', 8 );
    
    function buddydev_screen_profile_data() {
    //filter loop
    add_filter( 'bp_after_has_profile_parse_args', 'buddydev_filter_args_for_profile_group' );
    //load loop
    add_action( 'bp_template_content', 'buddydev_show_profile_group_data');
    
    bp_core_load_template( 'members/single/plugins');
    }
    
    function buddydev_filter_args_for_profile_group( $args ) {
    ///CHANGE IT
    $args['profile_group_id'] = '6'; //Your Profile Group ID Here
    
    return $args;
    }
    //Load the loop 
    function buddydev_show_profile_group_data() {
    $profileslug = bp_get_profile_slug();
    // if ( bp_is_my_profile() ) :
    // echo "Edit under Profile";
    // endif;
    bp_get_template_part( 'members/single/profile/profile-loop' );
    }
    
    function hide_profile_group( $grpid ) {
    if ( is_user_logged_in() && !bp_is_profile_edit() ) {
    $myfield = xprofile_get_field_data( 'Critical Review' );
    $grpid['exclude_groups'] = '6';
    }
    return $grpid;
    }
    add_filter( 'bp_after_has_profile_parse_args', 'hide_profile_group' );
    

    A few comments:

    Most of the essential code is based on this threat. I am not really a coder myself, but usually I understand what the functions are doing.

    For now I commented `// if ( bp_is_my_profile() ) :
    // echo “Edit under Profile”;
    // endif;` out, because if I leave it in, for some reason then also logged-in users only see the personal profile group instead of the Critical Review one?!

    Also, I’m not entirely sure about the use of the last function and its use / relevance, because it doesn’t seem to affect anything. This might however have to do with the fact that in order to avoid duplication of the Critical Review profile group under the actual profile tab, I’ve hidden the profile group via CSS.

    Finally, I’m running the latest WP and BP installs and you can have a look at the described behavior here. Interestingly, as you can see in this instance, the profile fields are actually adjusted to my CSS for the Critical Review profiles group – but the actual content doesn’t show correctly.

    Now, if any of you could help me out, I would highly appreciate it!

    Thank you so much in advance! 🙂

    #264066
    r-a-y
    Keymaster

    1,2,3,4,6 should be left to WordPress plugins as these are specific to WP.

    7, 10 have been discussed as core options. It just takes time for developers and the team to finalize specs and to code as this is all done on a volunteer basis. 10 is hard because it relies on a ton of dependent code that hasn’t been written or finalized yet.

    5 – There’s been some preliminary work on this. See https://github.com/buddypress/bp-types-ui.

    9 – If you’re using WordPress multisite, this should be already available as a WordPress option under “Network Admin > Settings”. Otherwise, this plugin might work, but does the opposite. It restricts signup to email domains that you specify.

    Notifications

    2 should already be in core.
    3 is a good request, but unreliable due to how the notifications data is stored. It would be easy to do for BP core notifications, but notifications generated by plugins could store the user ID differently, making this unreliable.
    4 could be done via a custom template or via a small code snippet.

    Henry Wright
    Moderator

    I believe the wp_new_user_notification() function is what you’re looking for. It’s pluggable so you can define your own which will override the original definition:

    function wp_new_user_notification( $user_id, $deprecated = null, $notify = '' ) {
        // Your own code here. Copy and paste the original function's content and then modify if you wish.
    }
Viewing 25 results - 176 through 200 (of 695 total)
Skip to toolbar