Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 1,801 through 1,825 (of 68,969 total)
  • Author
    Search Results
  • Valia
    Participant

    Hi all, I am new to buddypress and my coding skills are almost nule. I am sorry. So far I have been able to set up few things in my website but I cant find an option to hide some large tags (Base and other H4 tags) from users profile. I am using woostify theme (child) and everything is updated. I need help. Thank you !

    #324369
    fullmetalworkshop
    Participant

    I’m getting an admin-ajax 403 error when clicking the Join Group button. It seems to be the switch case in the functions. It seems to be completely ignored somehow. Logging within any of the cases returns nothing at all. Also a quick note… it’s not every group. It’s only on random ones

    function bp_legacy_theme_ajax_joinleave_group() {
    
    	if ( ! bp_is_post_request() ) {
    		return;
    	}
    
    	// Cast gid as integer.
    	$group_id = (int) $_POST['gid'];
    
    	if ( groups_is_user_banned( bp_loggedin_user_id(), $group_id ) )
    		return;
    
    	if ( ! $group = groups_get_group( $group_id ) )
    		return;
    
    	// Client doesn't distinguish between different request types, so we infer from user status.
    	if ( groups_is_user_member( bp_loggedin_user_id(), $group->id ) ) {
    		$request_type = 'leave_group';
    	} elseif ( groups_check_user_has_invite( bp_loggedin_user_id(), $group->id ) ) {
    		$request_type = 'accept_invite';
    	} elseif ( 'private' === $group->status ) {
    		$request_type = 'request_membership';
    	} else {
    		$request_type = 'join_group';
    	}
    
    	// NOTE: WHY IS THIS BROKEN?!!?
    	switch ( $request_type ) {
    		case 'join_group' :
    			if ( ! bp_current_user_can( 'groups_join_group', array( 'group_id' => $group->id ) ) ) {
    				esc_html_e( 'Error joining group', 'buddypress' );
    			}
    
    			check_ajax_referer( 'groups_join_group' );
    
    			if ( ! groups_join_group( $group->id ) ) {
    				_e( 'Error joining group', 'buddypress' );
    			} else {
    				echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button leave-group" rel="leave" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>';
    			}
    		break;
    
    		case 'accept_invite' :
    			if ( ! bp_current_user_can( 'groups_request_membership', array( 'group_id' => $group->id ) ) ) {
    				esc_html_e( 'Error accepting invitation', 'buddypress' );
    			}
    
    			check_ajax_referer( 'groups_accept_invite' );
    			if ( ! groups_accept_invite( bp_loggedin_user_id(), $group->id ) ) {
    				_e( 'Error requesting membership', 'buddypress' );
    			} else {
    				echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button leave-group" rel="leave" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>';
    			}
    		break;
    
    		case 'request_membership' :
    			check_ajax_referer( 'groups_request_membership' );
    
    			if ( ! groups_send_membership_request( [ 'user_id' => bp_loggedin_user_id(), 'group_id' => $group->id ] ) ) {
    				_e( 'Error requesting membership', 'buddypress' );
    			} else {
    				echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button disabled pending membership-requested" rel="membership-requested" href="' . bp_get_group_permalink( $group ) . '">' . __( 'Request Sent', 'buddypress' ) . '</a>';
    			}
    		break;
    
    		case 'leave_group' :
    			check_ajax_referer( 'groups_leave_group' );
    
    			if ( ! groups_leave_group( $group->id ) ) {
    				_e( 'Error leaving group', 'buddypress' );
    			} elseif ( 'public' === $group->status ) {
    				echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button join-group btn" rel="join" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'join', 'groups_join_group' ) . '">' . __( 'Join Group', 'buddypress' ) . '</a>';
    			} else {
    				echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button request-membership" rel="join" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'request-membership', 'groups_request_membership' ) . '">' . __( 'Request Membership', 'buddypress' ) . '</a>';
    			}
    		break;
    	}
    
    	exit;
    }
    #324356
    monty1987
    Participant

    what i have tried after crash step by step:

    opened Dashboard in Recovery
    deaktivate BuddyPress
    uninstall BuddyPress
    deaktivate bbPress
    deaktivate Ultimate Member
    reinstall BuddyPress
    aktivate BuddyPress
    crash

    monty1987
    Participant

    Hi,
    I have a big Problem.
    I used the BuddyPress Version 10.2.0 Plugin in combination whith Ultimate Member Version 2.3.2 and bbPress Version 2.6.9. I think this combination is a little bit difficult but it finaly worked well.

    I just changed some settings in the BuddyPress and then i got this Error:

    Fehler-Details
    ==============
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 349 der Datei /mnt/web114/d1/63/5855963/htdocs/STRATO-apps/wordpress_10/app/wp-content/plugins/buddypress/bp-core/admin/bp-core-admin-functions.php verursacht. Fehlermeldung: Uncaught ArgumentCountError: 3 arguments are required, 2 given in /mnt/web114/d1/63/5855963/htdocs/STRATO-apps/wordpress_10/app/wp-content/plugins/buddypress/bp-core/admin/bp-core-admin-functions.php:349
    Stack trace:
    #0 /mnt/web114/d1/63/5855963/htdocs/STRATO-apps/wordpress_10/app/wp-content/plugins/buddypress/bp-core/admin/bp-core-admin-functions.php(349): sprintf()
    #1 /mnt/web114/d1/63/5855963/htdocs/STRATO-apps/wordpress_10/app/wp-includes/class-wp-hook.php(307): bp_core_activation_notice()
    #2 /mnt/web114/d1/63/5855963/htdocs/STRATO-apps/wordpress_10/app/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #3 /mnt/web114/d1/63/5855963/htdocs/STRATO-apps/wordpress_10/app/wp-includes/plugin.php(474): WP_Hook->do_action()
    #4 /mnt/web114/d1/63/5855963/htdocs/STRATO-apps/wordpress_10/app/wp-content/plugins/buddypress/bp-core/admin/bp-core-admin-actions.php(120): do_action()
    #5 /mnt/web114/d1/63/5855963/htdocs/STRATO-apps/wordpress_10/app/wp-includes/class-wp-hook.php(307): bp_admin_init()
    #6 /mnt/web114/d1/63/5855963/htdocs/STRATO-apps/wordpress_10/app/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #7 /mnt/web114/d1/63/5855963/htdocs/STRATO-apps/wordpress_10/app/wp-includes/plugin.php(474): WP_Hook->do_action()
    #8 /mnt/web114/d1/63/5855963/htdocs/STRATO-apps/wordpress_10/app/wp-admin/admin.php(175): do_action()
    #9 /mnt/web114/d1/63/5855963/htdocs/STRATO-apps/wordpress_10/app/wp-admin/plugins.php(10): require_once(‘…’)
    #10 {main}
    thrown

    And no – of corse I dont have an up to date back up 🙁
    What can I do to fix the problem?

    Great thaks to all hwo want to help me

    WordPress-Version 5.9.3
    Aktives Theme: ColorMag (Version 2.1.2)
    Aktuelles Plugin: BuddyPress (Version 10.2.0)
    PHP-Version 8.0.17

    invadergames
    Participant

    Hello everyone,
    I’m wondering if it’s possible to change the menu icons for custom links using BuddyPress?
    If so, how would one go about that?
    I’ve done a bit of searching but can’t seem to find the answer.

    I’m using the latest wp/bp installation.

    Thank you in advance

    Example

    pixelweave
    Participant

    I am sure this has been asked before but I can’t find it. I would be very appreciative if someone could help me change the grey to my theme colors. The search bar and other navigation are all greys despite the customizer being the theme color. I use Youzify so all those pages and styling are perfect.

    #324307
    mylesz3
    Participant

    Hello, im creating a buddypress website and im trying to add a feature that allows users to join a room and queue to stream a song each. Is there any plugin or other way to make it possible?

    #324304
    Olliver Danielsson
    Participant

    I have been researching this topic for a few days and have come close but need to know if this plugin will work for my client. The client wants the ability to approve group requests and disallow all other group requests. If anyone knows of a tool that can do this or how to do this with buddypress then I would love to hear!

    #324303
    Olliver Danielsson
    Participant

    La version 10.2.0 de BuddyPress est disponible. Il s’agit d’une version de maintenance qui corrige dix anomalies, vous pouvez lire la note de version de la 10.2.0 pour avoir le détail des changem […]

    #324285
    carasse64
    Participant

    I have disabled the Activity Link Preview For BuddyPress plugin and now it works fine (from WBCom design).

    Fabien

    #324280
    carasse64
    Participant

    Hello

    I can create new post normally.

    But, when I want to comment or reply any activity, I can type my text but when I click on the “Comment”/’Reply” button nothing happens.

    Also, I just have created a new group. At the end of the group creation, a white page with the text “Busted” was displayed. . I just refreshed the page and the new group was created and it works. May it have a link with my “comment” problem ?

    Information : In settings/Buddypress/options the box to allow comments is checked.

    Thanks.

    Fabien

    fabianschultzphoto
    Participant

    Im sure you have seen listings on websites and filters right next to them, the filters help sort out the results.
    Now, how can I link profile details from a member directory with a filter? I want to use BuddyPress and then filter details such as price, star rating etc in the filter (displayed in sidebar)? So when I look at BuddyPress websites, the members (saved in member directory not under posts) are shown in a list grid like a normal listing. If I want to use a filter, e.g. Jet Smart Filter, how can I link the (meta) data from the member directory/profile details with the filter? As the filter is 3rd party, it is not natively connected/linked with the BuddyPress member directory. Any suggestions?

    gsako
    Participant

    Anyone else seen this? My admin can upload an Avatar but my Users can’t. I deactivated all of my plugins and found that the conflict lies with WooCommerce. I have a store on my site so I need to keep WooCommerce running but I also need people to be able to upload Avatar photos. It is definitely Woo that is doing it as I turned off every plugin but that.

    I am running WordPress 5.9.3 and BuddyPress 10.2 and woo 6.4.1 This happened on several themes including 2012. It is for the site http://www.13hikes.com

    #324255
    shanebp
    Moderator

    You could create a ticket to get further input.

    Eric Kuznacic
    Participant

    I had an issue with a client site that the BP team may want to look into, in the event that it is affecting more sites than just mine.

    The issue: Running the latest version of BuddyPress (10.2), I had a client site and server that were seeing spikes to 100% CPU and high RAM usage — but only when a logged-in user opened the WordPress media library (/wp-admin/upload.php).

    My hosting support first told me it was a plugin error, then I was told it was a theme error. But we were unable to find any evidence of this. I cloned the live site, deactivated all plugins and switched to a default WP theme, and the issue still occurred.

    There were no related items in the Apache or Nginx error logs, but the PHP access log fills with lines like this, seemingly for every media file:

    (server IP) – [15/Apr/2022:15:57:37 +0000] “GET /index.php?bp-attachment=13109/NorthCrawford-300×225.jpg” 301 0 – 798 14702 0.648 8388608 9.27% 3.09% “/?bp-attachment=13109/NorthCrawford-300×225.jpg”

    The solution: This is what I received from my hosting support:

    The issue is BuddyPress created htaccess that redirects all wp-content/uploads/bp-attachments/ to ?bp_attachments= URL. The redirects spawn heaps of apache and php-fpm which also cause the issue . They created this sample htaccess found on the directory below

    /public_html/wp-content/uploads/bp-attachments# cat .htaccess

    RewriteEngine On
    RewriteBase /
    RewriteRule (.+) ?bp-attachment=$1 [R=302,NC]

    The htaccess has been renamed so, when you load medias, it should no longer reach 100%

    The solution was to take the .htaccess file out of the equation by renaming it, which is only a temporary fix. I presume this file would be overwritten upon the next BP update?

    If that’s the case, how would I keep this from happening, aside from renaming the offending .htaccess file each time there is a BP update?

    #324253
    kobusjfk
    Participant

    Wordpress v. 5.9.3
    Buddypress v. 10.2.0
    Theme. BuddyX

    In Private Messages – the message body part ‘shows’ at the top that you can attach a file or a link,
    the link option works, but when you click on the image attachment, it gives a popup that asks for the ‘source’ of the image. It doesn’t open a normal file explorer window to select the image.
    Please, how do I FIX this?

    #324243
    shanebp
    Moderator

    You can filter bp_current_user_can.
    See the function in buddypress\bp-core\bp-core-caps.php.

    #324241
    myveryownwebsite
    Participant

    Any update on this issue with pages being assigned to BuddyPress and then not being editable with Elementor? There is a work around, nu-assigning the page to BuddyPress, edit and then reassigning, but its an unnecessary process.

    I see the last reply to this topic was 12 months ago, so there should be a fix by now…

    maustingraphics82
    Participant

    I use gravity forms to create a new user from a groups tab and assign them to a group, based on the group that the group admin is adding them from. This was working just fine in BuddyPress version 8.0 but since upgrading to 10 it is no longer working. What am I missing?

    /**
     *  Add member form handler. This form is currently located under the Group Information tab
     */
    add_action( 'gform_after_submission', 'add_member_gform_handle', 10, 2 );
    function add_member_gform_handle( $entry, $form ) {
    	if ( $form['title'] === 'Add Member' ) {
    		$fields     = $form['fields'];
    		$first_name = rgar( $entry, '1' );
    		$last_name  = rgar( $entry, '2' );
    		$login      = rgar( $entry, '3' );
    		$password   = rgar( $entry, '4' );
    		$email 	    = rgar( $entry, '5' );
    		$group_id   = rgar( $entry, '6' );
    		$role       = rgar( $entry, '11' );
    		$notification = rgar( $entry, '9.1' );
    		$birthdate = rgar( $entry, '10' );
    
    		$userdata = array(
    			'user_login' => $login,
    			'user_pass' => $password,
    		);
    
    		if ( ! empty( $first_name ) ) {
    			$userdata['first_name'] = $first_name;
    		}
    		if ( ! empty( $last_name ) ) {
    			$userdata['last_name'] = $last_name;
    		}
    		if ( ! empty( $email ) ) {
    			$userdata['user_email'] = $email;
    		}
    		if ( ! empty( $role ) ) {
    			$userdata['role'] = $role;
    		}
    
    		// Create a new user
    		$new_user_id = wp_insert_user( $userdata );
    
    		// GFCommon::log_debug( __METHOD__ . '(): form => ' . print_r( $birthdate, true ) );
    
    		if ( ! is_wp_error( $new_user_id ) ) {
    			groups_join_group( $group_id, $new_user_id );
    
    			// Make the user displayed as a staff on a clubhouse page
    			if ( $role === 'staff' ) {
    				$group_ids =  groups_get_user_groups( $new_user_id );
    				$group = groups_get_group( array( 'group_id' => $group_ids['groups'][0]) );
    				$group_id = $group->id;
    				groups_promote_member( $new_user_id, $group_id, 'admin' );
    			} else {
    				groups_demote_member( $new_user_id, $group_id );
    			}
    
    			if ( ! empty( $notification ) ) {
    				tml_send_new_user_notifications( $new_user_id, 'both' );
    			}
    
    			if ( ! empty( $birthdate ) ) {
    				$date = DateTime::createFromFormat('Y-m-d', $birthdate);
    				$date = $date->format('Ymd');
    
    				update_field('user_birthdate', $date, 'user_' . $new_user_id);
    			}
    		}
    
    		// Delete form entry
    		// GFAPI::delete_entry( $entry['id'] );
    	}
    }
    
    /**
     * Add Member form validation
     */
    add_filter( "gform_validation_$clubnet_add_member_form_id", 'add_member_form_validation' );
    function add_member_form_validation( $validation_result ) {
    	$form = $validation_result['form'];
    	$login = rgpost( 'input_3' );
    	$email = rgpost( 'input_5' );
    	$send_notificaton = rgpost( 'input_9_1' );
     
        if ( ! empty( $login ) && get_user_by( 'login', $login ) ) {
            $validation_result['is_valid'] = false;
     
            //finding Field with ID and marking it as failed validation
            foreach( $form['fields'] as &$field ) {
                if ( $field->id == '3' ) {
                    $field->failed_validation = true;
                    $field->validation_message = 'The user with this login already exists.';
                    break;
                }
            } // foreach
        }
    
    	if ( ! empty( $email ) && get_user_by( 'email', $email ) ) {
            $validation_result['is_valid'] = false;
     
            //finding Field with ID and marking it as failed validation
            foreach( $form['fields'] as &$field ) {
                if ( $field->id == '5' ) {
                    $field->failed_validation = true;
                    $field->validation_message = 'The user with this email already exists.';
                    break;
                }
            } // foreach
        }
    
    	// GFCommon::log_debug( 'VALIDATION' . __METHOD__ . '(): form => ' . print_r( 'Empty', true ) );
    	// Email is required if we requested to send a email about user's account
    	if ( ! empty( $send_notificaton ) && empty( $email ) ) {
    		$validation_result['is_valid'] = false;
            //finding Field with ID and marking it as failed validation
            foreach( $form['fields'] as &$field ) {
    			if ( $field->id == '5' ) {
                    $field->failed_validation = true;
                    $field->validation_message = 'Email is required since you requested to send an email.';
                    break;
                }
            } // foreach
    	}
     
        //Assign modified $form object back to the validation result
        $validation_result['form'] = $form;
        return $validation_result;
    }
    
    /**
     * Role field
     */
    add_action( 'init', 'clubnet_add_role_field' );
    function clubnet_add_role_field( $form ) {
    	global $wp_roles;
    	global $clubnet_add_member_form_id;
    
        $all_roles = $wp_roles->roles;
        // $editable_roles = apply_filters('editable_roles', $all_roles);
    	// $roles_to_skip = array( 'administrator' );
    	$editable_roles = $all_roles;
    	$roles_to_display = array( 'mentor', 'member', 'youth_leader', 'alumni', 'staff' );
    	$choices = array();
    
    	foreach ( $editable_roles as $role => $role_data ) {
    		if ( ! in_array( $role, $roles_to_display ) ) {
    			continue;
    		}
    
    		$choice = array(
    			'text' => $role_data['name'],
    			'value' => $role
    		);
    
    		array_push( $choices, $choice );
    	}
    
    	// Reorder to make member role first
    	usort( $choices, function( $choice ) {
    		if ( $choice['text'] === 'Member' ) {
    			return -1;
    		}
    
    		return 1;
    	} );
    
    	$form = GFAPI::get_form( $clubnet_add_member_form_id );
    	
    	if ( ! $form ) {
    		return;
    	}
    
    	$label = 'User Role';
    	$field_idx = -1;
    	$field_id = -1;
    
    	foreach ($form['fields'] as $idx => $field) {
    		if ( $field->label === $label ) {
    			$field_idx = $idx;
    			$field_id  = $field->id;
    		}
    	}
    
    	if ( $field_idx === -1 ) {
    		$field_id = GFFormsModel::get_next_field_id( $form['fields'] );
    	}
    
    	$props = array( 
    		'id' => $field_id,
    		'label' => $label,
    		'type' => 'select',
    		'choices' => $choices,
    	); 
    
    	if ( $field_idx === -1 ) {
    		$field = GF_Fields::create( $props );
    		$form['fields'][] = $field;
    		GFAPI::update_form( $form );
    	} else if ( $form['fields'][$field_idx]->choices !== $choices ) {
    		$field = GF_Fields::create( $props );
    		$form['fields'][$field_idx] = $field;
    		GFAPI::update_form( $form );
    	}
    }
    
    #324230

    In reply to: NSFW site =

    shanebp
    Moderator

    You need to look in the code for ‘membership-account’ which is not a BuddyPress page.
    Perhaps you are using a membership plugin – contact the plugin creators.

    #324216
    oumz99
    Participant

    This is for group activity. Is this from BuddyPress core ? Are you using any plugin which claims to make activity load “live” ?

    personally, I have always hated any code which makes periodic calls to your server.

    yesbutmaybeno
    Participant

    Hi!
    Trying to find the source of sudden weird lag on my large Buddypress website. I noticed this query running very frequently:

    # Time: 220408 21:41:46
    # User@Host: [removed] @ localhost []
    # Thread_id: 337208  Schema: [removed] QC_hit: No
    # Query_time: 1.645619  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
    # Rows_affected: 0  Bytes_sent: 77
    SET timestamp=1649454106;
    SELECT DISTINCT a.id  FROM wp_bp_activity a  WHERE  
    ( 
    	( 
    		( 
    			a.component = 'groups' 
    			AND 
    			a.item_id IN ( 0 )
    		)
     
    		AND 
    		a.hide_sitewide = 0
    	)
    
    )
     AND a.is_spam = 0 AND a.type NOT IN ('activity_comment', 'last_activity') ORDER BY a.date_recorded DESC, a.id DESC LIMIT 0, 16;

    Query_time: 1.645619

    It always results in nothing. So, where is it coming from and how can I stop it?
    Any idea what function is triggering this, I’d be able to even edit the core file just to have it check “if certain params are true, don’t even run this query”

    I think it’s killing my site’s performance

    #324200

    In reply to: Activate user in PHP

    uyousaf60
    Participant

    Automatically follow everyone in buddypress. Can Anyone Help?

    tmuc
    Participant

    Hi, I installed BuddyPress on my site earlier today and now I can’t log in to my administrative account from the frontend of my site. When I try to login, I get sent to a page requesting an activation key. Unfortunately, I don’t have an activation key, nor was I ever sent one (I checked my emails and SPAM), so I can no longer sign in.

    I use the Paid Memberships Pro plugin to handle registration and membership levels on my site. Normally this works well. I also installed and activated bbPress and the PM Pro add-ons to integrate with BuddyPress and bbPress respectively.

    Any advice on how to fix this?

    #324190
    alexcitos19
    Participant

    Hello!

    I have the Elearni template which has this buddypress plugin for signup among other options.

    I want customers who want to register not to activate via email, but automatically.

    Another option would be to disable this account activation but I don’t see any options within the plugin that allow me to do so.

    How could I do this?

Viewing 25 results - 1,801 through 1,825 (of 68,969 total)
Skip to toolbar