Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 1,676 through 1,700 (of 69,016 total)
  • Author
    Search Results
  • #325422
    shanebp
    Moderator

    Yes. BP creates a ‘dummy’ post.
    For example, see
    public function single_dummy_post()
    in
    buddypress\bp-members\classes\class-bp-members-theme-compat.php

    To check if you’re on the members directory, use:
    if( bp_current_component('members') )

    rtahina
    Participant

    Wordpress 6.0.0
    Buddypress 10.3.0

    Hello,

    I created a new page “Directory” and set it as the member’s directory in Buddypress pages configuration. Now when I dump the $post variable on this page, the $post->ID is equal to 0. It looks like the $post object doesn’t really represent the page I created.
    What I’d like to know is, is this a normal behavior for Buddypress’ pages?

    object(WP_Post)#10833 (29) { ["ID"]=> int(0) ["post_author"]=> int(0) ["post_date"]=> int(0) ["post_date_gmt"]=> string(19) "2022-06-09 20:35:07" ["post_content"]=> string(0) "" ["post_title"]=> string(26) "Directory" ["post_excerpt"]=> string(0) "" ["post_status"]=> string(7) "publish" ["comment_status"]=> string(6) "closed" ["ping_status"]=> string(6) "closed" ["post_password"]=> string(0) "" ["post_name"]=> string(10) "directory" ["to_ping"]=> string(0) "" ["pinged"]=> string(0) "" ["post_modified"]=> string(19) "2022-07-12 16:15:11" ["post_modified_gmt"]=> string(19) "2022-07-12 14:15:11" ["post_content_filtered"]=> string(0) "" ["post_parent"]=> int(0) ["guid"]=> string(25) "http://wpbuddypress.test/members/" ["menu_order"]=> int(0) ["post_type"]=> string(4) "page" ["post_mime_type"]=> string(0) "" ["comment_count"]=> string(1) "0" ["filter"]=> string(3) "raw" ["is_404"]=> bool(false) ["is_page"]=> bool(true) ["is_single"]=> bool(false) ["is_archive"]=> bool(false) ["is_tax"]=> bool(false) }

    scottdev
    Participant

    Hi I wanted to register a REST field for the Activity Endpoints to get the username of the activity post creator, but I didn’t know how to implement it, I pasted this code in the function.php, but I’m not getting anything back, any help please where this piece of code should be put? Which function.php and how to return the username any help or guidance please

    
    <?php
    
    // Registers a REST field for the Activity Endpoints.
    function example_register_activity_rest_field() {
    	bp_rest_register_field(
    		'activity',      // Id of the BuddyPress component the REST field is about
    		'example_field', // Used into the REST response/request
    		array(
    			'get_callback'    => 'example_get_rest_field_callback',    // The function to use to get the value of the REST Field
    			'update_callback' => 'example_update_rest_field_callback', // The function to use to update the value of the REST Field
    			'schema'          => array(                                // The example_field REST schema.
    				'description' => 'Example of Activity Meta Field',
    				'type'        => 'string',
    				'context'     => array( 'view', 'edit' ),
    			),
    		)
    	);
    }
    add_action( 'bp_rest_api_init', 'example_register_activity_rest_field' );
    
    /**
     * The function to use to get the value of the REST Field.
     *
     * @param  array  $array     The list of properties of the BuddyPress component's object.
     * @param  string $attribute The REST Field key used into the REST response.
     * @return string            The value of the REST Field to include into the REST response.
     */
    function example_get_rest_field_callback( $array, $attribute ) {
    	// The key of the metadata can be different from the REST Field key.
    	$metadata_key = '_example_metadata_key';
    	
    	return bp_activity_get_meta( $array['id'], $metadata_key );
    }
    
    /**
     * The function to use to update the value of the REST Field.
     *
     * @param  object $object    The BuddyPress component's object that was just created/updated during the request.
     *                           (in this case the BP_Activity_Activity object).
     * @return string $value     The value of the REST Field to save.
     * @param  string $attribute The REST Field key used into the REST response.
     */
    function example_update_rest_field_callback( $object, $value, $attribute ) {
    	// The key of the metadata can be different from the REST Field key.
    	$metadata_key = '_example_metadata_key';
    	
    	bp_activity_update_meta( $object->id, $metadata_key, $value );
    }
    
    
    lbnn
    Participant

    Hello,

    I want to create multiple members pages based on field value.

    For example let’s say I have a field called “Team” and values are 1,2 and 3.

    I want to create a members page for each teams showing team members.

    I found this code to create a function that will filter based on the field value :

    function my_custom_ids( $field_name, $field_value = '' )

    I fount it HERE

    I understood I need to add this code in my-theme/functions.php or in bp-custom.php but after that how can I call this function on the 3 different pages with the 3 different fields values ??

    The code on the three pages will be like that if I understood well :

    <?php if ( bp_has_members( my_custom_ids( 'Team', '1' ) ) ) : ?>
    <?php if ( bp_has_members( my_custom_ids( 'Team', '2' ) ) ) : ?>
    <?php if ( bp_has_members( my_custom_ids( 'Team', '3' ) ) ) : ?>

    I missed something, I really don’t know where to put the code that call the created function on the new page I created :/

    Thank you for your help

    mounasis
    Participant

    Hello i use buddypress with masterstudy theme i activated private message on the buddypress settings but it’s not showing on the profile page
    I need help with this

    hcmendez
    Participant

    Hey, do you know if it is possible to synchronize Memberpress custom registration fields of specific membership with BuddyPress custom profile fields?

    For example, a Memberpress Business Name registration field is only available for a Business Membership with a Business Name BuddyPress field.

    jrapenne
    Participant

    Hi!
    The following message is displayed in d”ebug mode:

    Notice: Undefined variable: is_http_auth_req in /home/lceet/public_html/wp-content/plugins/buddypress-member-types/includes/buddyboss-plugin-updater.php on line 73

    A solution?
    Many thanks for the help

    #325397
    Mathieu Viet
    Moderator

    Hi thanks for your feedback and sorry you’re having trouble between BP & PHP 8.0. I also use it but can’t manage to reproduce your issue. You can fix this trouble easily though. You simply need to add the following code:

    
    <?php
    remove_filter( 'block_editor_rest_api_preload_paths', 'bp_blocks_preload_paths' );
    

    into a bp-custom.php file and put it in /wp-content/plugins as explained here: https://codex.buddypress.org/themes/bp-custom-php/

    #325390
    romandas
    Participant

    I also have error with BuddyPress:
    WordPress version 6.0.1
    Active theme: OneCommunity Child Theme (version )
    BuddyPress (version 10.3.0)
    PHP version 8.1.0

    Uncaught Error: Class "BP_Admin" not found in ..../wp-content/plugins/buddypress/bp-core/bp-core-admin.php:20

    It works ok, if I set PHP to 7.4 version.
    Site works ok with PHP 8.1.0 if i disable BuddyPress plugin.

    wcholbi
    Participant

    WordPress version: 6.0.1 (this error also occurred when using 6.0)
    BuddyPress version: 10.3.0
    Site: https://edrmstaging.wpengine.com

    I have verified that the error occurs even when using Twenty Twenty (normally we have a different theme in use), and that the error appears to be fixed by deactivating BuddyPress.

    After updating to PHP 8.0, this fatal error is triggered when attempting to add a new WordPress post or duplicating an existing post:

    PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /nas/content/live/edrmstaging/wp-content/plugins/buddypress/bp-core/classes/class-bp-rest-components-endpoint.php:102\nStack trace:\n#0 /nas/content/live/edrmstaging/wp-includes/rest-api/class-wp-rest-server.php(1143): BP_REST_Components_Endpoint->get_items(Object(WP_REST_Request))\n#1 /nas/content/live/edrmstaging/wp-includes/rest-api/class-wp-rest-server.php(990): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/buddypress/v1/...', Array, NULL)\n#2 /nas/content/live/edrmstaging/wp-includes/rest-api.php(519): WP_REST_Server->dispatch(Object(WP_REST_Request))\n#3 /nas/content/live/edrmstaging/wp-includes/rest-api.php(2868): rest_do_request(Object(WP_REST_Request))\n#4 [internal function]: rest_preload_api_request(Array, '/buddypress/v1/...')\n#5 /nas/content/live/edrmstaging/wp-includes/block-editor.php(601): array_reduce(Array, 'rest_preload_ap...', Array)\n#6 /nas/content/live/edrmstaging/wp-admin/edit-form-blocks.php(75): block_editor_rest_api_preload(Array, Object(WP_Block_Editor_Context))\n#7 /nas/content/live/edrmstaging/wp-admin/post-new.php(72): require('/nas/content/li...')\n#8 {main}\n thrown in /nas/content/live/edrmstaging/wp-content/plugins/buddypress/bp-core/classes/class-bp-rest-components-endpoint.php on line 102, referer: https://edrmstaging.wpengine.com/wp-admin/?wpengine_php=8.0

    The contents of line 102 of buddypress/bp-core/classes/class-bp-rest-components-endpoint.php are:

    $active_components['core'] = $components['core'];

    Please let me know what I should try. I’m happy to test code fixes but I don’t know how to edit this line correctly. Thank you.

    #325361
    melbatoast4
    Participant

    Thank you. I disabled all plugins except for Buddypress. I still get 0 members for a group that has 2 admins and no other members.

    #325354
    rcwild
    Participant

    Thank you for the reply, shanebp, but quite sure that is not the issue. Usernames are in the main WP profile and cannot be changed via admin. That is why my tech guy had to go into the database.

    It seems BuddyPress is creating the URL slug from the username and it is the slug that appears on the member’s profile page. So we need to figure out how to change the slug and not only the username.

    #325353
    baby.face
    Participant

    I disabled all the plugins and switched the theme to twenty-twenty-two. There is no bp-custom.php file. I also downloaded the latest version of BuddyPress and replaced the original BP 10.3.0 plugin folder with the newly downloaded one. I am running PHP 7.4.

    The same fatal error persists while the user requesting site access gets approved.

    Here is the fatal error from the error screen:
    Fatal error: Uncaught Error: Class ‘BP_Notifications_Notification’ not found in /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/bp-members-membership-requests.php:249 Stack trace: #0 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(309): bp_members_membership_requests_delete_notifications_on_change(Array) #1 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(false, Array) #2 /home/nondualhealersas/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #3 /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/classes/class-bp-signup.php(961): do_action(‘bp_core_signup_…’, Array, Array) #4 /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php(1816): BP_Signup::activate(Array) #5 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(307): BP_Members_Admin->signups_admin_load(”) #6 /home/nondualhealersas/public_html/wp-includes/class-wp-h in /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/bp-members-membership-requests.php on line 249

    Also, from WordPress’s built-in fatal error detection feature:

    WordPress version 6.0.1
    Active theme: Twenty Twenty-Two (version 1.2)
    Current plugin: BuddyPress (version 10.3.0)
    PHP version 7.4.30

    Error Details
    =============
    An error of type E_ERROR was caused in line 249 of the file /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/bp-members-membership-requests.php. Error message: Uncaught Error: Class ‘BP_Notifications_Notification’ not found in /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/bp-members-membership-requests.php:249
    Stack trace:
    #0 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(309): bp_members_membership_requests_delete_notifications_on_change(Array)
    #1 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(false, Array)
    #2 /home/nondualhealersas/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #3 /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/classes/class-bp-signup.php(961): do_action(‘bp_core_signup_…’, Array, Array)
    #4 /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php(1816): BP_Signup::activate(Array)
    #5 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(307): BP_Members_Admin->signups_admin_load(”)
    #6 /home/nondualhealersas/public_html/wp-includes/class-wp-h

    In addition, the only other BP plugin I had been using was BuddyPress Xprofile Custom Field Types Version 1.2.4 by BuddyDev. This has been disabled along with everything other than the BP plugin so I’m not sure if this has any relevance.

    Assistance would be appreciated.

    #325346
    rcwild
    Participant

    We are having an issue with the way usernames are being displayed in our member directory. We are using MemberPress with BuddyPress.

    The issue came about because I did not realize there was an admin setting that forced email addresses to become usernames. That setting has since been changed. Some usernames are very problematic for our members and we want to change them.

    I am a canyoneering instructor, not a technician, so I hired a competent technician who was able to edit one username in the database as a test, but the original email address version of the username is still being displayed on the members’ profile page.

    The member whose username was changed as a test is Tyler Miller. His original (forced) username was tyler-millerzionadventures-com. He is no longer working for Zion Adventure Company. Our technician was able to change his username to tyler.miller and that is how it appears when I look at his WordPress profile. But the URL to his member profile is: https://canyonguidesinternational.org/members/tyler-millerzionadventures-com/ and tyler-millerzionadventures-com is still being displayed on his member profile page.

    In contrast, I created my own member profile without the forced email address username setting. This is the URL to my member profile:

    https://canyonguidesinternational.org/members/rich-carlson/ My username is being displayed correctly as rich-carlson

    Please help. Is there a simple way to change the username and have it displayed correctly in multiple places? Or are there multiple fields in the database that must be changed?

    ALSO … While researching this issue we also discovered an issue with the search filters in the member directory. When alphabetical is selected, the directory displays all 86 members. But when either last active or newest registered is selected only 5 members are displayed. This problem is new. It was displaying all members regardless of filter just a few days ago.

    Thank you in advance for your prompt assistance.

    canyonguidesinternational.org
    wordpress 6.0.1
    buddypress 10.3.0
    memberpress 1.9.39
    memberpress + buddypress 1.1.16

    #325345
    pycc
    Participant

    Its not work for me,
    I disabled all plugins, and change my theme to a wordpress theme,
    I upgrade my PHP version to 7.4

    I don’t found the bp-custom.php file
    And I have the last version of buddypress 10.3.0

    the issue still exists
    Fatal error: Uncaught Error: Class 'BP_Notifications_Notification' not found in /home/logimtqa/sites/giz/wp-content/plugins/buddypress/bp-members/bp-members-membership-requests.php:249

    #325343
    pycc
    Participant

    Its not work for me,
    I disabled all plugins, and change my theme to a wordpress theme,
    I upgrade my PHP version to 7.4

    I don’t found the bp-custom.php file
    And I have the last version of buddypress 10.3.0

    Youzify
    Participant

    Hi @diogolinoribeiro

    You may try disable all non BuddyPress plugin and change your WP theme to default theme for temporary.

    Check site to see if issue still exists. If issue goes away after deactivating other plugins and switching theme then this means that either the theme or one of the plugins was conflicting with BuddyPress. If it turns out to be a plugin/theme conflict, then you need to activate the plugins/theme one by one until you find the plugin/theme that causes the issue to come back.

    If the issue still exists then it is not a plugin or theme conflict. And do these things

    1. If you have a custom code in bp-custom.php, please remove it for temporary
    2. Make sure to use the latest version of BuddyPress
    3. Check your PHP version, and upgrade it to minimum 7.4 version.

    PS: Backup your website first before do those steps!

    #325333
    Youzify
    Participant

    Hi @babyface-1 @pycc

    You may try disable all non BuddyPress plugin and change your WP theme to default theme for temporary.

    Check site to see if issue still exists. If issue goes away after deactivating other plugins and switching theme then this means that either the theme or one of the plugins was conflicting with BuddyPress. If it turns out to be a plugin/theme conflict, then you need to activate the plugins/theme one by one until you find the plugin/theme that causes the issue to come back.

    If the issue still exists then it is not a plugin or theme conflict. And do these things

    1. If you have a custom code in bp-custom.php, please remove it for temporary
    2. Make sure to use the latest version of BuddyPress
    3. Check your PHP version, and upgrade it to minimum 7.4 version.

    PS: Backup your website first before do those steps!

    dheerajmidha
    Participant

    Hello
    i talked to sweat date theme develover
    they tolld me to do few changes
    i did all like disabled their theme and as well as all other plugins except buddypress
    still problem is there
    so buddypress plugin core has any bug
    pls check if you can
    Thanks in advance

    manni65929
    Participant

    Hey!

    Is there a way to hide Admins from the general member’s directory – maybe with a plugin or a shot script? Also, would that not be a great feature to be included in the next update for BuddyPress?

    Thanks in advance

    #325296
    Adam
    Participant

    I’ve a new BuddyPress site with 3 members. Member1 is the admin and sole member of a new group. Member2 is their Friend, the Member3 is not.
    When Member1 the group admin visits the group page and selects Invite Members all that is shown is “No friends were found. Try another filter.”
    Selecting ‘My Friends’ or ‘AllMembers’ results in the same message.
    Both Member2 and Member3 are not members of the group and both do not have pending invitations. Both users have logged into their account (its fully activated).
    If I select WP default theme Twenty Twenty-Two and disable all plugins other than BuddyPress issue is the same.
    I’m at a loss to explain it and get Invite members working. Does anyone know of any gotchas that I might not be aware of?

    #325277
    oportunidadesmundo
    Participant

    Hola. Quisiera saber como instalar buddypress en mi sitio web.

    baby.face
    Participant

    Hello –

    In the Manage Pending Memberships page when I click to Activate a Pending Account I get the following fatal error.

    Despite the error, the pending account does get activated and the requesting member gets a confirmation notification.

    Any assistance with this would be greatly appreciated.

    Thank you –

    Fatal error: Uncaught Error: Class ‘BP_Notifications_Notification’ not found in /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/bp-members-membership-requests.php:249 Stack trace: #0 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(309): bp_members_membership_requests_delete_notifications_on_change(Array) #1 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(false, Array) #2 /home/nondualhealersas/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #3 /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/classes/class-bp-signup.php(961): do_action(‘bp_core_signup_…’, Array, Array) #4 /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php(1816): BP_Signup::activate(Array) #5 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(307): BP_Members_Admin->signups_admin_load(”) #6 /home/nondualhealersas/public_html/wp-includes/class-wp-h in /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/bp-members-membership-requests.php on line 249

    WordPress: 6.0
    BuddyPress: 10.3.0
    Website: https://nondualhealersassociation.org/

    #325269
    dootyfree
    Participant

    WordPress version 6.0
    Buddypress Version 10.3.0

    Hello all,

    I am attempting to use posts as a journal of sorts. Would like posts to remain private to user, unless they check a box to share with logged in community when creating the post.

    Best Regards,

    #325254
    noyoub72650
    Participant

    Hello,

    I use youzify and buddypress in my website and when someone publish something in activity page, an email is sent to all users to warn them and give them a link to access the post. This email just display the link to access at the post so I would like to display an excerpt of the post.

    This is the email result https://zupimages.net/viewer.php?id=22/27/pr10.png
    This is the email configuration https://zupimages.net/viewer.php?id=22/27/yjst.png

    Someone have a idea ?

    Thanks.

Viewing 25 results - 1,676 through 1,700 (of 69,016 total)
Skip to toolbar