Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 3,401 through 3,425 (of 69,016 total)
  • Author
    Search Results
  • #312481
    danimasedo93
    Participant

    Hi all! I’m new in php & css.

    After reading a lot and learning very little, I managed to program the notifications in my project in php and css. It works fine, shows the amounts (friends, messages and notifications) and redirects where it should.

    My problem is that I need to “hide” the bubble of “0” when the user has no notifications and only show when if they have 1 or more notifications

    Bubble Notification in menu

    Functions.php

    function my_counter_nav_menu($menu) {
    
    	if ( ! is_user_logged_in() ) {
    		return $menu;
    	}
    
    	$user_id = bp_loggedin_user_id();
    	$user_url = bp_loggedin_user_domain();
    
            $friends_url = $user_url . bp_get_friends_slug() . '/';
    	$msg_url = $user_url . bp_get_messages_slug() . '/';
    	$notify_url = $user_url . bp_get_notifications_slug() . '/';
    
    	ob_start();
    	?>
            <li><a><a href="<?php echo bp_loggedin_user_domain();?>friends"><span class="notifications_icons"><i class="fas fa-user-friends" style="font-size:17px;"></i></span><span class="my_bubble_notify"><?php echo friends_get_friend_count_for_user( $user_id );?></span></a></a></li>
    
    	<li><a><a href="<?php echo bp_loggedin_user_domain();?>messages"><span class="notifications_icons"><i class="fas fa-envelope" style="font-size:17px;"></i></span><span class="my_bubble_notify"><?php echo bp_get_total_unread_messages_count( $user_id );?></span></a></a></li>
    	
    	<li><a><a href="<?php echo bp_loggedin_user_domain();?>notifications"><span class="notifications_icons"><i class="fas fa-bell" style="font-size:17px;"></i></span><span class="my_bubble_notify"><?php echo bp_notifications_get_unread_notification_count( $user_id );?></span></a></a></li>
    <?php
    	$menu_items = ob_get_clean();
    
    	$menu = $menu . $menu_items;
    	return $menu;
    }
    
    add_filter( 'wp_nav_menu_items', 'my_counter_nav_menu' )

    CSS

    .notifications_icons {
    color: #ffffff;
    vertical-align: middle;
    margin: -7px;
    }
    
    .my_bubble_notify {
    color: #ffffff;
    border-radius: 3px;
    background-color: #f7823f;
    vertical-align: 20%;
    position: relative;
    	font-size: small;
    	padding: 0.1em 5px;
    }

    Buddypress 6.0.0
    Wordpress 5.4.2
    site: http://www.gamerstroop.com
    If you need, you can use test account (acc:test – pw:test)

    I dont know if I can paste my site link here. If I can’t please remove it or let me know, thank you so much for reading and helping me! <3

    #312479
    cmsplay
    Participant

    How can one email all members of a BuddyPress group only?

    There is the ‘Email WP Users’ plugin:

    WP Email Users

    …but its email ‘Group’ option is greyed-out and not useable. I have posted a query to the plugin’s support page, but no reply.

    There is a separate email subscription plugin:

    BuddyPress Group Email Subscription

    …but that just copies BP Group messages to users who have already opted to receive copies of messages posted to that group.

    Is there a simple way in BuddyPress to email all members of a BP Group? (It can’t be that difficult.)

    Thank you for your help šŸ™‚

    #312473
    coolhunt
    Participant

    I found this thread
    https://buddypress.trac.wordpress.org/ticket/7321

    But I cant really make sense of it

    #312472
    coolhunt
    Participant

    Hi Guys,

    Is there a way to limit the excerpt being pulled by buddypress from a blog post.
    I’ve tried several techniques the trim the excerpt length. They work on the blog post excerpt but doesnt apply to the ACTIVITY excerpt.

    Any tips to the right direction would be great

    pinballw
    Participant

    I am relatively new to using BuddyPress but have spent a lot of time trying to find an answer to my question and I am at a total loss.

    I have created several xProfile fields under Users > Profile Fields but none of them display on the WP User profile (Admin Dashboard > Users > Edit or user-edit.php) for any given user.

    Fields:
    Name, Profession, Phone, Email, Address, Date of Birth, Emergency Contact Name, Emergency Contact Phone

    Ideally these fields would be displayed on the WP User profile with a header such as Personal Information.

    delta5
    Participant

    Hi all,

    Buddypress keeps telling me that I have a new message, but when I click on it and open it up, there is no message. I cant seem to clear that notice. Anyone have ideas?

    Thanks

    #312446
    Ricsca2
    Participant

    I inserted 1 new group (with various fields) to be requested from users. The registration page shows the buddypress group defoult and not the new one.
    How do I show my custom group too?
    Thanks

    #312434
    King Ding
    Participant

    Hello!

    I am trying to move the ’email preferences’ and ā€˜profile settings’ pages into the WooCommerce my-account tabs. I have created tabs and have template files, and everything visually looks great. However functionally, not so great.

    My issue is that the forms appear as they should, it’s just that they do not do anything – they don’t save or remember any data.

    I have found a ā€˜sort of’ solution to this problem here, but it refers to moving the registration form. After following these instructions and adapting it to the forms I am trying to move, I still have no success. I trust that I’m on the right track, but perhaps I’m overlooking something? Here is the instructions for reference:

    ———————————
    1. Copy the the contents of the bp-templates/bp-legacy/buddypress/members/register.php into the new registration page template

    2. At this point, the registration form will show up, but nothing will happen when we submit the form.

    3. To solve that, we need to add a custom function to the ā€œbp_screenā€ hook. In the custom function, we will paste the contents of the ā€œbp_core_screen_signupā€ function. (located in bp-members/bp-members-screens.php)

    4. Then, in our custom function, we will remove this

    if ( ! bp_is_current_component( ‘register’ ) || bp_current_action() )

    return;

    and put this

    if ( !is_page( ‘your-page-slug’ ) || bp_current_action() )

    return;

    5. Next, we’ll remove these lines:

    bp_core_load_template( apply_filters( ‘bp_core_template_register’, array( ‘register’, ‘registration/register’ ) ) );

    It will work now.
    ———————————-

    #312429
    msslrb
    Participant

    This is what I found.

    jquery.js?ver=1.12.4-wp:4 XHR failed loading: POST “https://example.com/wp-admin/admin-ajax.php&#8221;.
    send @ jquery.js?ver=1.12.4-wp:4
    ajax @ jquery.js?ver=1.12.4-wp:4
    n.<computed> @ jquery.js?ver=1.12.4-wp:4
    ajax @ buddypress-nouveau.min.js?ver=6.0.0:1
    buttonAction @ buddypress-nouveau.min.js?ver=6.0.0:1
    dispatch @ jquery.js?ver=1.12.4-wp:3
    r.handle @ jquery.js?ver=1.12.4-wp:3

    I’m not sure how to fix it. I discovered that friend requests to the admin is fairly quick. it’s the button for all other members that takes a long time.

    #312427
    nextnorth
    Participant

    Have now determined this is a theme issue not Buddypress so this can be closed.

    #312409
    shanebp
    Moderator

    @alwaysalready – thanks for posting your solution.
    Perhaps you could convert your blog article into a page in the codex.

    alwaysalready
    Participant

    I found a way to resolve this problem using a mixture of ideas others have shared (including @6logics and @loveplove). I’ve put the details in a blog post here. In summary, what worked for me was the following in the bp-custom.php file:

    // Set BP to use wp_mail
    add_filter( 'bp_email_use_wp_mail', '__return_true' );
     
    // Set messages to HTML
    remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
    add_filter( 'wp_mail_content_type', 'set_html_content_type' );
    function set_html_content_type() {
        return 'text/html';
    }
     
    // Use HTML template
    add_filter( 'bp_email_get_content_plaintext', 'get_bp_email_content_plaintext', 10, 4 );
    function get_bp_email_content_plaintext( $content = '', $property = 'content_plaintext', $transform = 'replace-tokens', $bp_email ) {
        if ( ! did_action( 'bp_send_email' ) ) {
            return $content;
        }
        return $bp_email->get_template( 'add-content' );
    }
    //Optionally remove the filter above after it's run
    remove_filter('wp_mail','redirect_mails',20);
     
    // Optionally change your email address
    add_filter('wp_mail_from','noreply_from');
    function noreply_from($from) {
      return 'noreply@YOUR_DOMAIN.org'; //Replace 'YOUR_DOMAIN.org' with email address
    }
    
    // Optionally change your from name
    add_filter('wp_mail_from_name','noreply_from_name');
    function noreply_from_name($name) {
        return 'YOUR_DOMAIN No-Reply'; //Replace 'YOUR_DOMAIN No-Reply' with the from name
    }
    #312405
    alwaysalready
    Participant

    I found a way to resolve this problem using a mixture of ideas others have shared elsewhere. I’ve put the details in a blog post here. In summary, what worked for me was the following in the bp-custom.php file:

    // Set BP to use wp_mail
    add_filter( 'bp_email_use_wp_mail', '__return_true' );
     
    // Set messages to HTML
    remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
    add_filter( 'wp_mail_content_type', 'set_html_content_type' );
    function set_html_content_type() {
        return 'text/html';
    }
     
    // Use HTML template
    add_filter( 'bp_email_get_content_plaintext', 'get_bp_email_content_plaintext', 10, 4 );
    function get_bp_email_content_plaintext( $content = '', $property = 'content_plaintext', $transform = 'replace-tokens', $bp_email ) {
        if ( ! did_action( 'bp_send_email' ) ) {
            return $content;
        }
        return $bp_email->get_template( 'add-content' );
    }
    //Optionally remove the filter above after it's run
    remove_filter('wp_mail','redirect_mails',20);
     
    // Optionally change your email address
    add_filter('wp_mail_from','noreply_from');
    function noreply_from($from) {
      return 'noreply@YOUR_DOMAIN.org'; //Replace 'YOUR_DOMAIN.org' with email address
    }
    
    // Optionally change your from name
    add_filter('wp_mail_from_name','noreply_from_name');
    function noreply_from_name($name) {
        return 'YOUR_DOMAIN No-Reply'; //Replace 'YOUR_DOMAIN No-Reply' with the from name
    }
    #312403
    alwaysalready
    Participant

    I found a way to resolve this problem using a mixture of ideas, including the suggestions from @bharat and @vbnr. I’ve put the details in a blog post here. In summary, what worked for me was the following in the bp-custom.php file:

    // Set BP to use wp_mail
    add_filter( 'bp_email_use_wp_mail', '__return_true' );
     
    // Set messages to HTML
    remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
    add_filter( 'wp_mail_content_type', 'set_html_content_type' );
    function set_html_content_type() {
        return 'text/html';
    }
     
    // Use HTML template
    add_filter( 'bp_email_get_content_plaintext', 'get_bp_email_content_plaintext', 10, 4 );
    function get_bp_email_content_plaintext( $content = '', $property = 'content_plaintext', $transform = 'replace-tokens', $bp_email ) {
        if ( ! did_action( 'bp_send_email' ) ) {
            return $content;
        }
        return $bp_email->get_template( 'add-content' );
    }
     
    // Optionally change your email address and from name.
    add_filter('wp_mail_from','noreply_from');
    function noreply_from($from) {
      return 'noreply@YOUR_DOMAIN.org'; //Replace 'YOUR_DOMAIN.org' with email address
    }
     
    add_filter('wp_mail_from_name','noreply_from_name');
    function noreply_from_name($name) {
        return 'YOUR_DOMAIN No-Reply'; //Replace 'YOUR_DOMAIN No-Reply' with the from name
    }
    #312401
    scarllettlins
    Participant

    How can I set the user’s register name as display name?
    I’ve the latest version of wordpress and buddypress.

    #312397

    In reply to: Members page

    clickallco
    Participant

    You could override the template to showcase your own unique one. Here’s some more info on it.

    Theme Compatibility & Template Files

    #312393
    shanebp
    Moderator

    BuddyPress uses its own email api.
    This codex page has info re customization.

    Emails

    #312386
    Varun Dubey
    Participant
    #312377

    In reply to: Register/Activate

    shanebp
    Moderator

    Just create WP pages and leave them blank.
    Then assign them on the screen shown in your shared img.

    Register and Activation Pages

    shanebp
    Moderator

    Exposing every aspect as an option is untenable.
    You need to adjust a template file.
    The file in question depends on which BP template pack you are using.
    Go to wp-admin > Settings > BuddyPress > Options and note the setting for the Template Pack option.
    If you are using Nouveau, then this is the file:
    wp-content\plugins\buddypress\bp-templates\bp-nouveau\buddypress\activity\index.php

    In that file, find this: <?php bp_get_template_part( 'activity/post-form' ); ?>
    And change it to this:

    <?php 
         if ( ! bp_is_user() ) {
             bp_get_template_part( 'activity/post-form' ); 
         }
    ?>

    Note: it is recommended that you do not edit the template files in the BuddyPress plugin.
    Your changes will be wiped out when you update the plugin on a new release.
    Instead, create a template overload and then edit that file.
    More info re template overloads:.

    bibblybob
    Participant

    Hi All,

    Bit of a BuddyPress n00b here. I’m looking to edit the ‘Activity’ section when a user goes to their profile page so that they can’t post status updates. While I’m not specifically asking how to do this, I have a more n00bish question.

    In order to edit something like what I’ve mentioned above, I’ve gone through the back-end of WP and looked at all WP settings in the admin area. Generally with other plugins I have, basic functionality changes are options that one can change in the WP admin area. Is this not the case with BuddyPress? Unless I’ve completely missed something simple, does this mean that a small functional change as I’ve mentioned above will require direct code amendments to specific files?

    Thanks for the help/info.

    shameem5566
    Participant

    I have to hide some nav menus of bp users’ profile page from other users. I using the following function to do so. That was working fine.

    /* BuddyPress profile nav menu restrictions */

    function bpex_hide_profile_menu_tabs()
    {

    if (bp_is_active(‘xprofile’)) :

    if (bp_is_user() && !bp_is_my_profile()) {
    // BP’s profile main menu items. Comment those to show.
    // bp_core_remove_nav_item( ‘activity’ );
    // bp_core_remove_nav_item(‘profile’);
    bp_core_remove_nav_item(‘friends’);
    bp_core_remove_nav_item(‘groups’);
    // exist only if you use bbPress
    bp_core_remove_nav_item(‘forums’);
    // bp_core_remove_nav_item(‘activity’);
    bp_core_remove_nav_item(‘following’);
    bp_core_remove_nav_item(‘followers’);
    bp_core_remove_nav_item(‘bookmarks’);
    bp_core_remove_nav_item(‘activity’);

    // BP’s profile main menu items. Comment those to show.
    bp_core_remove_subnav_item(‘activity’, ‘personal’);
    bp_core_remove_subnav_item(‘activity’, ‘friends’);
    bp_core_remove_subnav_item(‘activity’, ‘groups’);
    bp_core_remove_subnav_item(‘activity’, ‘following’);
    bp_core_remove_subnav_item(‘activity’, ‘feed’);
    }
    bp_core_remove_subnav_item(‘activity’, ‘mentions’);
    bp_core_remove_subnav_item(‘activity’, ‘favorites’);

    endif;
    }
    add_action(‘bp_init’, ‘bpex_hide_profile_menu_tabs’, 15);

    I have this navigation menu for the bp user on the header by default. When I am viewing other’s profiles the nav menus inside the user’s header menu also get hidden.

    Is there any other ways to do this.

    I am using the latest version of WordPress 5.4.2, BuddyPress 6.0.0, and BuddyX Theme 1.3.7.

    kim007x
    Participant

    Hello,

    I am working on a subdomain for a client: https://forum.secretsofpakistan.com/

    I put a few public Groups on the Homepage, but I can only click on them when I am logged in to the WP site.

    When I am logged in, I can visit https://forum.secretsofpakistan.com/groups/uk-nationals-in-pakistan/ e.g. but whoever is not logged in will land on the Homepage of the website.

    I already went to Settings – Permalinks and selected “Post Name”.

    WordPress Version 5.4.2
    BuddyPress Version 6.0.0
    Theme Aardvark

    Does anyone has an idea how to make the Group pages visible for non-logged in visitors?

    #312334

    In reply to: views

    Varun Dubey
    Participant

    adding menu link is not enough, displaying notification will need modification inside header file you can checkout following thread

    Creating links to BP specific pages via functions.php

    #312320
    Varun Dubey
    Participant

    @cmsplay password is not part of the extended profile, it’s core wp
    You can also change your password from profile from your BuddyPress profile tabs Setting >> General

Viewing 25 results - 3,401 through 3,425 (of 69,016 total)
Skip to toolbar