Forum Replies Created
-
In reply to: Hidden Fields Are Searchable
Behaviour confirmed.
I believe this is a bug.
Please open a bug ticket here.
Use the same login as you use for these forums.
Reference this thread in your ticket.In reply to: profile fieldDelete your use of the
add_action.Research how to use a filter in WordPress.
Try :
function cami_field_value( $value, $type, $field_id ) { if ( $field_id == 123 ) { // change 123 to the id of the field you want to change // adjust $value } return $value; } add_filter( 'bp_get_the_profile_field_value', 'cami_field_value', 1, 3 );In reply to: profile fieldPlease use the
codebutton when posting code.Try using this filter hook:
apply_filters( 'bp_get_the_profile_field_value', $field->data->value, $field->type, $field->id );To adjust the value returned by:
bp_the_profile_field_value()For reference: that hook is found in:
buddypress\bp-xprofile\bp-xprofile-template.phpIn reply to: Notifications not workingDo you have the Notifications component turned on in the settings?
yoursite.com/wp-admin/options-general.php?page=bp-componentsIn reply to: Suggestions for creating sub-profiles for pets?You could just use a custom post type + comments.
Or you could create a custom BP component; it would make integration easier.Either way, you’ll need to be an experienced BP developer.
In reply to: Notifications (OneSignal)Notifications are handled by a custom BP table – not a custom post type.
You would probably need to write a custom function that hooks into BP notifications and then into the Onesignal push code.
This filter hook might work:bp_activity_at_name_do_notifications
But you need to ask Onesignal about if it would work and how.Please do not post code for premium plugins on these forums.
While I appreciate the clarity of your question and the draft solution – it is not appropriate in this setting.
You should contact the plugin creator directly.
Closing this and will contact you privately.Why not just add the
statusparameter to your code ?'position' => 0, 'status' => 'hidden'The /sites page was designated in the BuddyPress settings …
You mean ‘Sites’ was listed as a directory on the BP settings page?
Or that a page called ‘sites’ was assigned to something? If so, what?If you want to change BP templates, you need to overload them.
You cannot use another templating system, such as oxygen.In reply to: How to hide view in profile tabIt won’t be in the BuddyPress section of Add menu items.
Scroll down to Custom Links.
Then under URL, paste this:/members/me/profile/edit/
Fill out the link text to whatever you want.
Click Add to Menu
Then SAVE the menu.The /sites page refuses to take Oxygen (site builder) templates
How is that related to BuddyPress ?
In reply to: How to hide view in profile tabRe menu links…
For the logged in user, you can use ‘me’ as the user name.
For example:yoursite.com/members/me/profile/edit/
should load the Profile > Edit screen for the logged in user.It is okay to update to WP 5.1
Due to an oversight, the ‘tested to’ data was not changed for the latest BP release.
It will be fixed shortly.
Thanks for the report.In reply to: Help with ucommerceThis is the support site for BuddyPress which does not offer forums.
Please ask questions about forums on the support site for bbPress.In reply to: User Sync for multisiteOn networked installs ( mulitsite ) WP and BP use the same users for ALL the sites.
So profile data for a user will be available to ALL the sites that user belongs to.
So there is no need for synchronization.In reply to: bp_the_member() in admin-ajaxWhy is it no longer
in the loop?How are you gathering your list of users?
Have you tried, in your ajax function, using BP_User_Query ? You can then use a loop andbp_the_member()will work.Otherwise, you can use this is get each separate piece of a user’s profile data:
xprofile_get_field_data( $field, $user_id = 0, $multi_format = 'array' )To get all the profile data at once, if you have the email address you could use
bp_xprofile_personal_data_exporter( $email_address )Or if you only have the
user_id, you could use:BP_XProfile_ProfileData::get_all_for_user( $user_id )I cannot duplicate your issue.
Your OP shows a screenshot that indicates a lot of customization of a member profile.
In order to narrow down the source of your issue – have you tried removing those customizations?
It could be that the customizations have not been updated to work with BP 4+ .Have you tried switching to a WP theme like 2017 to see if the issue persists?
Have you tried deactivating other plugins to see if the issue persists ?Unless your issues can duplicated on a basic install of the latest versions of WP and BP, it very doubtful that a solution will posted in these forums.
In reply to: How to default Buddypress groups to show lessIn the context of a BP Group, what is an introduction ?
In reply to: Prevent banned words from deleting the user’s post?Have you tried using the filter hooks to write functions that bypass the blacklist and moderation checks? You can find the hooks in this file:
buddypress\bp-core\bp-core-moderation.phpFor example, this could go in your theme > functions.php or in bp-custom.php :
function bp_bypass_checks( $flag, $user_id, $title, $content ) { return true; } add_filter( 'bp_bypass_check_for_blacklist', 'bp_bypass_checks', 1, 4 ); add_filter( 'bp_bypass_check_for_moderation', 'bp_bypass_checks', 1, 4 );In reply to: Comments notifications in Events ManagerYou need to ask Events Manager support questions about appropriate hooks.
Once you have that info, you can add your own notifications.
In reply to: Error searching member in groupPlease use the
codebutton when posting code.I cannot duplicate your issue using WP 5.0.3 and BP 4.2.0
Have you tried switching themes and deactivating other plugins to see if that clears the error ?
Afaik – auto-suggestions are not used by default in a group > members > search
Do you have some custom code that is callingwp_ajax_bp_get_suggestions?In reply to: Deny access to admins profile not workingfunction bpfr_hide_admins_profile() { $admin_ids = array( 1, 22, 48 ); if( bp_is_user() ) { if ( in_array( bp_displayed_user_id(), $admin_ids ) && ! in_array( bp_loggedin_user_id(), $admin_ids ) ) { bp_core_redirect( site_url() ); } } } add_action( 'bp_ready', 'bpfr_hide_admins_profile', 1 );In reply to: Deny access to admins profile not workingI’m surprised that your code ever worked.
Try:
function bpfr_hide_admins_profile() { if( bp_is_user() && bp_displayed_user_id() == 1 && bp_loggedin_user_id() != 1 ) { bp_core_redirect( site_url() ); } } add_action( 'bp_ready', 'bpfr_hide_admins_profile', 1 );Of course – this assumes that there is only one site admin and the
user_idfor that admin is1.In reply to: BP Login Widget / Changing URL for wrong loginsNo, you’d need to edit the file itself.
So you could make that edit – or write your own custom widget, based on that file, and change the value of the action field.