Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 1,926 through 1,950 (of 73,985 total)
  • Author
    Search Results
  • annafa88
    Participant

    Hi all,
    I’m new to Buddypress and it looks like a great component. I only struggle to adapt the description of the groups. The editor is super basic and it doesn’t really allow to adapt the description. What I want to do is different groups per region where people can put in a map a spot where they want to meet up, e.g. here for the city of Freiburg: Freiburg Gruppe
    So basically I’d like people to put in a description of the group and then based on their location there should be an iframe for Google Maps) integrated.

    Can someone help or provide a hint on how to embedd an iframe and adapt the description a bit?
    Thanks all in advance,
    Anna

    #325650
    Renato Alves
    Moderator

    This requestion seems similar to this issue we got here: https://github.com/buddypress/BP-REST/issues/449#issuecomment-1196139043

    I’m able to use the provided function in that documentation article and get the proper response.

    #325645
    wcholbi
    Participant

    @espellcaste I appreciate your response and I’m sorry to report that I’m still getting the same fatal PHP error (referencing the same filenames and line numbers), even after applying your latest patch.

    I went to double check the github pull request here, and applied both of the changes shown there (lines 102 and 111).

    I also tried it both with and without @imath ‘s bp-custom.php suggestion from earlier in the thread.

    Let me know what I can try next.

    #325644
    central4all
    Participant

    I tried rank math , yoast and Buddypress XML Sitemap Generator, none of them works.
    Any solution?

    #325640
    wcholbi
    Participant

    @espellcaste it looks like the same error message from my original post (to me at least), which is why I’m wondering if I’m applying the fix incorrectly.

    All I did was edit line 101 of /wp-content/plugins/buddypress/bp-core/classes/class-bp-rest-components-endpoint.php to read:

    if ( 'optional' !== $type && ! empty( $components['core'] ) ) {

    and when I try to add a new WP post, I get the “There has been a critical error on your website” message, and the PHP error log shows this:

    PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /nas/content/live/edrmdev/wp-content/plugins/buddypress/bp-core/classes/class-bp-rest-components-endpoint.php:102\nStack trace:\n#0 /nas/content/live/edrmdev/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/edrmdev/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/edrmdev/wp-includes/rest-api.php(519): WP_REST_Server->dispatch(Object(WP_REST_Request))\n#3 /nas/content/live/edrmdev/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/edrmdev/wp-includes/block-editor.php(601): array_reduce(Array, 'rest_preload_ap...', Array)\n#6 /nas/content/live/edrmdev/wp-admin/edit-form-blocks.php(75): block_editor_rest_api_preload(Array, Object(WP_Block_Editor_Context))\n#7 /nas/content/live/edrmdev/wp-admin/post-new.php(72): require('/nas/content/li...')\n#8 {main}\n thrown in /nas/content/live/edrmdev/wp-content/plugins/buddypress/bp-core/classes/class-bp-rest-components-endpoint.php on line 102, referer: https://edrmdev.wpengine.com/wp-admin/edit.php

    Should I be doing something differently?

    #325638
    wcholbi
    Participant

    Thank you @espellcaste !

    I tried editing my line 101 of /wp-content/plugins/buddypress/bp-core/classes/class-bp-rest-components-endpoint.php as shown in your fix, and I am still getting the same fatal error when trying to add a new post. I will wait and see what happens with your Github pull request (in case I am somehow applying the fix incorrectly).

    I’m more hopeful now, knowing progress is being made. And I’m still happy to test fixes.

    hcmendez
    Participant

    Hi, is it possible to disable those actions altogether?

    Our site will be a members directory where the user will register and buy a membership and they will be added to a specific membership group we don’t want users to leave the group.

    I saw a post from 9 years ago but didn’t get any answer.

    Disable Leave Group on Specific Groups

    This is the code the user mentioned:

    if ( $group->is_member ) {
    
    // Stop sole admins from abandoning their group
    $group_admins = groups_get_group_admins( $group->id );
    if ( 1 == count( $group_admins ) && $group_admins[0]->user_id == bp_loggedin_user_id() )
    return false;
    
    $button = array(
    'id'                => 'leave_group',
    'component'         => 'groups',
    'must_be_logged_in' => true,
    'block_self'        => false,
    'wrapper_class'     => 'group-button ' . $group->status,
    'wrapper_id'        => 'groupbutton-' . $group->id,
    'link_href'         => wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ),
    'link_text'         => __( 'Leave Group', 'buddypress' ),
    'link_title'        => __( 'Leave Group', 'buddypress' ),
    'link_class'        => 'group-button leave-group',
    );

    This code can do what I need? If so, how can I use this code? I tried with Code Snippets and it didn’t work.

    #325635
    Renato Alves
    Moderator

    @wcholbi I’m able to replicate the issue and I have a fix for this here: https://github.com/buddypress/BP-REST/pull/450

    Thanks for reporting the bug.

    #325476
    central4all
    Participant

    I use rankmath, but profiles , images videos etc, they are sitemap, do you know any SEO pluggin that works with buddypress ?

    #325462
    shanebp
    Moderator

    BuddyPress does not include forums.
    Are you also using bbPress? If so, you should post on their support forums.
    If you are using BuddyBOSS, which includes forums, you should contact them.

    #325457
    alabandit
    Participant

    Since this didn’t throw any error I’m listing it to help others quickly spot what’s going on. I did try searching things like “white screen” and the install guide but didn’t have any luck. But I see it does list this advice when you create a new support topic.

    Downloaded a fresh copy of WordPress and BuddyPress no other modules were installed.
    Default Theme Twenty Twenty-Two
    No special setup

    Created a new forum (/wp-admin/post-new.php?post_type=forum)
    Clicked the link to view the new forum and was simply shown a white screen.

    No error messages or warnings.

    Everything else worked great.

    I changed the theme to Twenty Twenty and all was perfect.

    #325456
    wcholbi
    Participant

    Hi Mathieu, thank you for this suggestion, but I’m sorry to report that this does not fix the error for me.

    First I added a bp-custom.php file containing your code, following the instructions you linked to, and the same fatal error still occurred on any attempt to add a new page or post.

    Next, I tried deactivating ALL plugins except for BuddyPress, and switching to the Twenty Twenty theme. This error still occurs, even when the only plugin active is BuddyPress, on a default WP theme, both with the new bp-custom.php file and without it. I did this on the development environment for the site: https://edrmdev.wpengine.com/

    So I’m really at a loss, having tried every recommended troubleshooting technique.

    Is there anything else you can suggest?

    I’m happy to test anything that might work.

    #325436
    wpsupglpk1
    Participant

    Hi
    Our site is at https://www.gleanr.com.au/ . We are using version 6.0.1 version of WordPress and Buddypress 10.2.0. My question is, can a group administrator send a message out to all group members. whether those members have notification settings by email on or not? Say for example an event was being created for group members and the group admin wanted to alert the members of the event by posting to the group and that post is then notified to members. Currently in our member notifications settings we have the following settings that relates to members switching them settings on or off. 1. Email me when a member invites me to join a group, 2 Email me when a group information is updated. 3. Email me when I am promoted to a group administrator or moderator 4. Email me when a member requests to join a private group for which I am an admin . 5. Email me when my request to join a group has been approved or denied… None of these 5 settings cover notification on any group post to a member and we want this. Yet, we also want it that if any post is notified and a member has switched of such notification potential, then an administrator message would over-ride this. Hope that is clear. Look forward to your comments

    #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.

    #325389

    Good afternoon. I have my own small community based on buddypress and bbpress. I want to add a push notification feature to my community. That is, I want users to be able to receive not only messages by mail from buddypress, but also push notifications, but I can not find a free and updated plugin. All the plugins that I find on the Internet have either not been updated for a long time, or do not have Russian language support, or they are paid and require api keys of external services. Could you please suggest me some good and free push notification plugin? Thanks.

    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.

    #325369
    lucawimmer
    Participant

    Hello Support,

    I am trying to change how the buddypress activity feed video upload gets saved to the database.
    I need to add a timestamp automatically for every uploaded video.
    Can you guys help me?
    I don’t really know where to search in the buddypress files.
    Need it like that: src=”https://&#8230;.mp4#t=0.0001“.
    Thanks

    BR Luca

    (WordPress Version = v6.0.1 , BuddyPress Version = v10.3.0 , Link to Website = http://www.mifam.io)

Viewing 25 results - 1,926 through 1,950 (of 73,985 total)
Skip to toolbar