Search Results for 'buddypress'
-
Search Results
-
Wordpress 6.0.0
Buddypress 10.3.0Hello,
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) }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 ); }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
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.
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 helpWordPress version: 6.0.1 (this error also occurred when using 6.0)
BuddyPress version: 10.3.0
Site: https://edrmstaging.wpengine.comI 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.0The 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.
Topic: Member Directory Usernames
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.16Hey!
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
Topic: Invite Members to group
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?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/Topic: Private User Journal/Posts
WordPress version 6.0
Buddypress Version 10.3.0Hello 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,
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.pngSomeone have a idea ?
Thanks.