Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 9,951 through 9,975 (of 94,565 total)
  • Author
    Search Results
  • #269965
    leog371
    Participant

    Hi TFord06, It looks like this is a duplicate post of your other post “Buddypress Avatar Cropping Mobile – Portrait”. I have replied on your other posting.
    Please try to limit your queries to just one post please. It helps keep the clutter down in the forums. Thanks

    tford06
    Participant

    I’m sorry I put this in the wrong forum previously. I cannot find how to close the old thread or edit it.

    I’ve done a ton of research on this topic and I cannot seem to solve it. All the threads I find are old, but I’ve given some of the solutions a try with no luck.

    Whenever a user tries to upload on mobile in portrait mode the preview window cuts off the right half of the image.

    I’m on BP ver 2.9.2

    I’m using jquery 2.0.3 in the theme. Is that the issue?

    Any other ideas?

    Thanks.

    #269959
    leog371
    Participant

    1. go into your WP dashboard
    2. go to “Plugins” tab just below “Apperance” and Just above “Users”
    3. Hover Over “Plugins” and click “Add New”
    4. You Should see the “Buddypress Plugin” card right there. Click Install
    5. If not, simply use the search feature there to search for BuddyPress
    6. Once you find the “BuddyPress Plugin” click install
    7. After Install, Activate it
    8. After you activate it, go to the “Settings” tab at the bottom of your WP Dashboard
    9. Under “Settings” you will see a “BuddyPress” Tab
    10. Got thru the 3 tabs of settings to set it up. Its easy and quick
    11. Check the new pages that you and BuddyPress Just added and see what kind of adjustments need to be made for your visual theme.
    12. Viola! you have BuddyPress.
    Should take less than 10 minutes for everything except any minor or major adjustments or tweaks in your theme if you even need any.

    #269957
    leog371
    Participant
    /**
     * Output the Add Friend button.
     *
     * @since 1.0.0
     *
     * @see bp_get_add_friend_button() for information on arguments.
     *
     * @param int      $potential_friend_id See {@link bp_get_add_friend_button()}.
     * @param int|bool $friend_status       See {@link bp_get_add_friend_button()}.
     */
    function ct_add_friend_button( $potential_friend_id = 0, $friend_status = false ) {
    	echo get_add_friend_button( $potential_friend_id, $friend_status );
    }
    
    /**
    	 * Create the Add Friend button.
    	 *
    	 * @since 1.1.0
    	 *
    	 * @param int  $potential_friend_id ID of the user to whom the button
    	 *                                  applies. Default: value of {@link bp_get_potential_friend_id()}.
    	 * @param bool $friend_status       Not currently used.
    	 * @return false|string HTML for the Add Friend button.
    	 */
    	function get_add_friend_button( $potential_friend_id = 0, $friend_status = false ) {
    
    		if ( empty( $potential_friend_id ) )
    			$potential_friend_id = bp_get_potential_friend_id( $potential_friend_id );
    
    		$is_friend = bp_is_friend( $potential_friend_id );
    
    		if ( empty( $is_friend ) )
    			return false;
    
    		switch ( $is_friend ) {
    			case 'pending' :
    				$button = array(
    					'id'                => 'pending',
    					'component'         => 'friends',
    					'must_be_logged_in' => true,
    					'block_self'        => true,
    					'wrapper_class'     => 'friendship-button pending_friend',
    					'wrapper_id'        => 'friendship-button-' . $potential_friend_id,
    					'link_href'         => wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/cancel/' . $potential_friend_id . '/', 'friends_withdraw_friendship' ),
    					'link_text'         => __( 'Cancel Friendship Request', 'buddypress' ),
    					'link_id'           => 'friend-' . $potential_friend_id,
    					'link_rel'          => 'remove',
    					'link_class'        => 'friendship-button pending_friend requested'
    				);
    				break;
    
    			case 'awaiting_response' :
    				$button = array(
    					'id'                => 'awaiting_response',
    					'component'         => 'friends',
    					'must_be_logged_in' => true,
    					'block_self'        => true,
    					'wrapper_class'     => 'friendship-button awaiting_response_friend',
    					'wrapper_id'        => 'friendship-button-' . $potential_friend_id,
    					'link_href'         => bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/',
    					'link_text'         => __( 'Friendship Requested', 'buddypress' ),
    					'link_id'           => 'friend-' . $potential_friend_id,
    					'link_rel'          => 'remove',
    					'link_class'        => 'friendship-button awaiting_response_friend requested'
    				);
    				break;
    
    			case 'is_friend' :
    				$button = array(
    					'id'                => 'is_friend',
    					'component'         => 'friends',
    					'must_be_logged_in' => true,
    					'block_self'        => false,
    					'wrapper_class'     => 'friendship-button is_friend',
    					'wrapper_id'        => 'friendship-button-' . $potential_friend_id,
    					'link_href'         => wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/remove-friend/' . $potential_friend_id . '/', 'friends_remove_friend' ),
    					'link_text'         => __( 'Unfriend', 'buddypress' ),
    					'link_id'           => 'friend-' . $potential_friend_id,
    					'link_rel'          => 'remove',
    					'link_class'        => 'friendship-button is_friend remove'
    				);
    				break;
    
    			default:
    				$button = array(
    					'id'                => 'not_friends',
    					'component'         => 'friends',
    					'must_be_logged_in' => true,
    					'block_self'        => true,
    					'wrapper_class'     => 'friendship-button not_friends',
    					'wrapper_id'        => 'friendship-button-' . $potential_friend_id,
    					'link_href'         => wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/add-friend/' . $potential_friend_id . '/', 'friends_add_friend' ),
    					'link_text'         => __( 'Add Friend', 'buddypress' ),
    					'link_id'           => 'friend-' . $potential_friend_id,
    					'link_rel'          => 'add',
    					'link_class'        => 'btn btn-danger'
    				);
    				break;
    		}
    
    		/**
    		 * Filters the HTML for the add friend button.
    		 *
    		 * @since 1.1.0
    		 *
    		 * @param string $button HTML markup for add friend button.
    		 */
    		return bp_get_button( apply_filters( 'get_add_friend_button', $button ) );
    	}
    ?>
    #269956
    leog371
    Participant
    /* Example to Change item names of user’s and group’s nav menus ...
    Profile Menu https://codex.buddypress.org/developer/navigation-api/#examples
    */ 
    function bpcodex_rename_profile_tabs() {
      
          buddypress()->members->nav->edit_nav( array( 'name' => __( 'My Forums', 'textdomain' ) ), 'forums' );
          buddypress()->members->nav->edit_nav( array( 'name' => __( 'MY Groups', 'textdomain' ) ), 'groups' );
      
    }
    add_action( 'bp_actions', 'bpcodex_rename_profile_tabs' );
    /* Example to Rename Group Menus https://codex.buddypress.org/developer/navigation-api/#examples*/ 	
    function bpcodex_rename_group_tabs() {
     
        if ( ! bp_is_group() ) {
            return;
        }
        
        buddypress()->groups->nav->edit_nav( array( 'name' => __( 'Group Discussion', 'buddypress' ) ), 'forum', bp_current_item() );
    	buddypress()->groups->nav->edit_nav( array( 'name' => __( 'Group Members', 'buddypress' ) ), 'members', bp_current_item() );
    	buddypress()->groups->nav->edit_nav( array( 'name' => __( 'Group Activity', 'buddypress' ) ), 'home', bp_current_item() );
    }
    add_action( 'bp_actions', 'bpcodex_rename_group_tabs' );	
    	
    /* Example to Remove subnav tabs from Group Settings  https://codex.buddypress.org/developer/navigation-api/#examples*/ 	
    	function bpcodex_remove_group_manager_subnav_tabs() {   
        // site admin will see all tabs
        if ( ! bp_is_group() || ! ( bp_is_current_action( 'admin' ) && bp_action_variable( 0 ) ) || is_super_admin() ) {
            return;
        }
           // all subnav items are listed here.
           // comment those you want to show
            $hide_tabs = array(             
            //  'group-settings'    => 1,
            //    'delete-group'      => 1,
             //   'group-avatar'      => 1,
            //  'group-invites'     => 1,
             //   'manage-members'    => 1,
            //  'forum'             => 1,
            //  'group-cover-image' => 1
            );
                       
            $parent_nav_slug = bp_get_current_group_slug() . '_manage';
      
        //Remove the nav items
        foreach ( array_keys( $hide_tabs ) as $tab ) {
            bp_core_remove_subnav_item( $parent_nav_slug, $tab, 'groups' );
        }   
    }
    add_action( 'bp_actions', 'bpcodex_remove_group_manager_subnav_tabs' );
    
    #269955
    tford06
    Participant

    Hello,

    I’ve done a ton of research on this topic and I cannot seem to solve it. All the threads I find are old, but I’ve given some of the solutions a try with no luck.

    Whenever a user tries to upload on mobile in portrait mode the preview window cuts off the right half of the image.

    I’m on BP ver 2.9.2

    I’m using jquery 2.0.3 in the theme. Is that the issue?

    Any other ideas?

    Thanks.

    Renato Alves
    Moderator

    You can certainly use BuddyPress WP CLI for that: https://github.com/buddypress/wp-cli-buddypress

    It has a wp bp group member command.

    Something like wp bp group member remove --group-id={GROUP_ID} --user-id={MEMBER_ID}

    cding
    Participant

    When I update the comment in the following page, the “\” is missing. https://i.stack.imgur.com/f9Ynu.png

    I find that the problem is due to buddypress.
    How to avoid the wordpress comment editor converting characters like “\” to html? There is no problem when I post a new comment or edit a post. It happens only when I edit the existed comments.

    My wordpress version is 4.9.1 and a sample page is https://cding.xyz/the-space-of-continuous-functionals-on-dual-space-is-the-predual-space/

    #269951
    Southstar Asbestos
    Participant

    Can you please help me in installing buddypress for my website

    nicecap
    Participant

    Hi.
    I am on WP 4.9 using Buddypress 2.9.2

    Every logged in user is only seeing the own status update under Activity -> Personal.

    We don’t have many members so we like to see every user seeing status updates from any user.

    I tried a plugin named “Community Activity On Profile” which added a button “All Activity” in front of “Personal” and this showing all updates of all users but this does not have a “What’s new user” entry field.

    Is it possible to just have the “What’s new user” and then just a list of all updates. This would be what I understnad as a Sitewide Activity Stream but my Buddy Press just would not show this functionality.

    Please help
    Christoph

    #269938
    seanbees
    Participant

    Hey @vapvarun I appreciate your response. However I am not speaking of the default links that BuddyPress natively provides. I am speaking of creating custom menu links where I can swap out the members username, for example my username being “seanb” with a default name or something along those lines. That way it will take them to their own respective page.

    Varun Dubey
    Participant

    @ingohaeck try to deactivate other BuddyPress plugins and keep BuddyPress plugin active; it might be possible any 3rd party plugin is filtering your activity stream.

    #269936
    Varun Dubey
    Participant

    Hi @seanbees
    You can find BuddyPress specific links with menu section, Click on “Screen Options” to open up the panel at the top of the screen and check the “BuddyPress” option under the “Show On Screen” section.

    BuddyPress Links in WordPress Menus

    #269934

    In reply to: Profile Fields Issue

    Varun Dubey
    Participant

    @hypuk BuddyPress only adds Name fields as primary field, it might be possible your theme or any plugin is adding those fields via custom codes.

    #269932
    Varun Dubey
    Participant

    @ranajoyc BuddyPress expend the WordPress functionality, it uses the same user tables which are created by regular WordPress installations. WordPress users will always be part of your BuddyPress community.

    #269930
    georgiades
    Participant

    Hi all!

    I have the latest wordpress version with the latest buddypress version. I would like to create a “post format” so that my users can only publish a certain type of post. This format would have an image, small description, and other specific types. I want this because the users will be entrepreneurs who will publish their ventures/startups to the website and other users will be able to discover them. So let say I am a user, I will be able to create a post and in order for this post to be published, I must upload a logo, enter a small description, enter the number of years my startups has been operating, the number of employees etc. How can that be done? I am new to php and didn’t find a way of doing so with buddypress or a plugin.
    Thank you!
    Simon 🙂

    #269928

    In reply to: the7 theme

    crazycoolbs
    Participant

    The 7 is not compatible with buddypress. I buy this theme before 2 week and just wonder how to do it the buddypress.

    #269924
    p_e_z
    Participant

    Hello,

    I’m looking for a plugin to use reactions like “Like”, “Cry”,….
    I tried BP Reactions after activating it, it does not show up. Another plugin I tried was Activity Reactions for Buddypress. But can’t rename the reactions or add other ones. This should work in the pro version. Doesn’t find the pro version.

    Can anyone help with this or give advice for a plugin?

    #269922
    ranajoyc
    Participant

    I have installed buddypress plugin.

    My wordpress application should have separate registration for users.

    But for a separate page named “some_community” I would like to have buddypress integration for users. In short users for wordpress should not mix with buddypress users…

    Don’t know whether this is possible. However looking for some solutions.

    Thanks in advance

    #269921

    In reply to: Filter activity action

    Skyrie
    Participant

    @graeme_bryson and for anyone else who wants to know, this code should work!

    function my_activity_posted_by_action( $action, $activity ) {
    	$action = sprintf( __( '%s', 'buddypress' ), bp_core_get_userlink( $activity->user_id ) );
    	return $action;
    }
    add_filter( 'bp_activity_new_update_action', 'my_activity_posted_by_action', 1, 2 );

    This should do the trick:

    function bgmc_nosubs_redirect() {
    	
    	if ( current_user_can( 'Customer' ) && is_buddypress() ) {
    		wp_redirect( home_url( '' ) ); 
    		exit();
    	}
    
    }
    add_filter( 'template_redirect', 'bgmc_nosubs_redirect' );
    

    Note – untested, but theory is sound 🙂

    #269911
    pmhn
    Participant

    Hi Will,

    Sorry for the post-hijack but I’ve been looking for a solution to a problem that you’ve eluded to;

    Are you saying that s2Member will allow users to register using BuddyPress, to join a buddypress group (using https://en-gb.wordpress.org/plugins/buddypress-registration-groups-1/) AND a corresponding mailchimp group, all within the same registration process?

    If so then I’d like to kiss you – I’ve been looking for a solution to this for months.

    Chris.

    #269910

    In reply to: Course Group Error

    quentro
    Participant

    To resolve this issue, Open and edit file at /plugins/boss-learndash/templates/learndash-buddypress/buddypress-group-single.php

    Replace line #116 with the next line.

    printf( _n( '%s '.LearnDash_Custom_Label::get_label( 'lesson' ), '%s '.LearnDash_Custom_Label::get_label( 'lessons' ), count($total_lessons), 'boss-learndash' ), count($total_lessons) );

    #269906
    hypuk
    Participant

    Hi

    I’m using the latest version of Buddypress and WordPress.

    I’m having an issue in deleting the Long Description and Short description profile fields.

    Every time I delete one of them it adds it back.

    I have even renamed them but still it either adds a Long Description or description profile field.

    goofydoo
    Participant

    I’m wondering if we can block some logged-in users from accessing BP entirely based on user role, or any other means?

    I use WooCommerce Subscription extension and it assigns users with an inactive subscription to Customer user role . So I’m hoping to block these users from accessing BP altogether.

    Thank you.

Viewing 25 results - 9,951 through 9,975 (of 94,565 total)
Skip to toolbar