Learn how to use var_dump – it shows the output on the screen.
You are using the BP Profile Search plugin, correct?
If so, ask the creators of that plugin.
If not, then you are using BuddyBoss and you should ask them.
I think I found the reason but not sure how to solve.
I added the shortcode in a page to see how H5P is working and found out that H5P is using ‘iframe’ method.
https://snipboard.io/NCvBSL.jpg
but I beleive that buddyboss is not allowing the iframe on the activity feed (not sure, I might be wrong).
then do you have any idea how to enable the iframe feature on the activity feed?
so that possibly h5p shortcode is working.
Please let me know your thought.
Thank you so much
Hi @futureyoon
Try this
/**
* Render shortcodes on feed posts
*/
function enable_shortcode_bp_activity($content) {
$content = stripslashes($content);
return do_shortcode($content);
}
add_filter('bp_get_activity_content_body', 'enable_shortcode_bp_activity', 0);
ps: this was not tested in buddyboss 2.0
Hi Fabio,
I happened to come across your post and was trying to use it on buddyboss theme and plugin but not sure why nothing is happening.
I enabled your code in code snippet and i post a shortcode in activity feed, but nothing shows up…
Do you have any idea?
Thank you
These are the forums for BuddyPress.
Ask BuddyBoss or the creators of the Invite plugin .
I’m trying to create a cleaner user experience. I want to auto connect an inviter and invitee, when the invitee accepts an invite to join the site.
I am using BuddyBoss and Invite Anyone plugin.
If they get the email, accept the invite, and create an account, asking them to accept the original connection request seems like an extra unneeded step.
These are the support forums for BuddyPress – contact BuddyBoss.
These are the forums for BuddyPress. Please contact BuddyBoss.
Hi, I’ve tried the above code but it’s not working at all when I paste into my Buddyboss child theme’s functions.php..any ideas why not?
Hi, I can’t seem to find a plugin to let users share Buddyboss groups to their social media accounts. Or even just the ability to share a piece of text (identifiable via css class for example). Any help much appreciated, thanks!
Hi, I’m using Buddyboss theme, and when a user creates a group and its forum, I need the forum to have by default certain topics set up, eg. ‘Rules’, ‘General Chat’ etc. Not sure how to code this, any help appreciated thanks!
Hi, this is BuddyPress support, BuddyBoss is not BuddyPress: it’s a fork of it. We cannot take the risk to reply to something we don’t support. Please get in touch with the BuddyBoss support team.
Hi, this is BuddyPress support, BuddyBoss is not BuddyPress: it’s a fork of it. We cannot take the risk to reply to something we don’t support. Please get in touch with the BuddyBoss support team.
Hi, this is BuddyPress support, BuddyBoss is not BuddyPress: it’s a fork of it. We cannot take the risk to reply to something we don’t support. Please get in touch with the BuddyBoss support team.
Does anybody have an idea on how to sort courses on course page to “just added” or new courses?
I don’t know who thought it was a good idea sorting courses alphabetically…
I have now uninstalled the Buddypress plugin because we had a hiccup last week.
What happened was when I installed Buddypress and set the other things from Memberpress documentation, I did not know what triggered the cause of the mass email sent to our members saying that they changed their passwords when in fact they didn’t.
All I did with the plugin was use the default values so I’m not sure what ticked off the mistake of sending all those emails.
I need help with regards to Buddypress (Buddyboss) and Memberpress pro bugs or incompatilibity.
What in the world is going on? I can’t activate it and I can’t delete BuddyPress! Its a new site, so there isn’t any data, just a bare BuddyBoss site being built. I uploaded the BuddyPress plugin, and when I could not activate it, I thought I’d delete it and try again, but alas no joy. What is going on here???
These are the forums for BuddyPRESS.
You could ask BuddyBoss about it.
Even better – contact the creators of the Conditional Profile Fields plugin.
I have created “Professional Experience” repeater field set and inside it I created :
- current job (yes or no)
- end date (date) hide when current job is yes
The issue is when I edit the profile the end date hid only in the first field not working on other fields. Also, it’s not working at all when I view the profile.
Does anyone have a solution, please?
BuddyBoss Platform Pro v 1.2.0
Conditional Profile Fields for BuddyPress v 1.2.5
BuddyBoss Theme v 1.8.7
Hi ,
Please help me with this, I am stuck here,
After the user enters details for registration and after clicking ” Create Account” button on registration form, a new window pops up saying ” Before you can login, you need to confirm your email address via the email we just sent to you”. Here the font colour is white with white background so not visible. I wish to change the font colour appearing in this popup window.
Plateform Buddyboss
Thank you
Legacy is still supported, but most if not all 3rd party plugins assume the use of Nouveau, especially if they also support BuddyBoss.
And Nouveau is better in many aspects – but if you’re happy with Legacy…
You are using BuddyBoss – these are the forums for BuddyPress.
Ask your question on the Facebook page for BuddyBoss Community.
I have set up an Advanced Custom Field that is linked to the event, and the admin sets the group that the user should be added to on registration for the event. The field is called event_sub_group and it returns a WP_Post object. From that, I can get the slug of the group in the post_name. I was then trying to get the group ID using the slug, so I can add the user to the group. This is my current code.
/Add user to buddyboss group when they register for an event
function ofc_add_registrant_to_group($registration, $old_STS_ID, $new_STS_ID, $context) {
global $bp, $wpdb;
$user_id = get_current_user_id();
if (! $registration instanceof EE_Registration ) {
// No EE_Registration, get out
return;
}
$event_id = $registration->event_ID();
$subgroups = get_field('event_sub_group', $event_id);
$slug = $subgroups[0]->post_name;
$group_id = BP_Groups_Group::group_exists( $slug );
if ( ! groups_is_user_member($user_id, $group_id )) {
$bp->groups->current_group = groups_get_group(array('group_id' => $group_id));
groups_join_group($group_id, $user_id);
}
}
add_action('AHEE__EE_Registration__set_status__to_approved', 'ofc_add_registrant_to_group', 10, 4);
BP_Groups_Group::group_exists( $slug ) returns nothing. If I use BP_Groups_Group::check_slug( $slug ) – it returns the correct slug name as expected.
I am using BP_User_Query and BP_Xprofile_Queury with the following code and it worked for me now.
$xprofile_query = array( 'relation' => 'OR');
foreach ($my_items as $key => $value) {
$xprofile_query[] = array(
'key'=> $fieldID,
'value' => $value,
'compare' => 'LIKE'
);
}
$args = array(
'member_type' => 'donor',
);
if ($xprofile_query){
$args['xprofile_query'] = $xprofile_query;
}
$user_query = new BP_User_Query( $args );
Thank you.
Hello,
I work on a Buddyboss setup. I created a profile subnav (like ‘edit profile’ and ‘change photo’).
The only thing is I don’t know which template to load in my last line of code for the content to look like a settings page.
Here is my working code:
function buddyboss_custom_user_subtab() {
// Avoid fatal errors when plugin is not available.
if ( ! function_exists( 'bp_core_new_nav_item' ) ||
! function_exists( 'bp_loggedin_user_domain' ) ||
empty( get_current_user_id() ) ) {
return;
}
global $bp;
$args = array();
// Tab 1 arg.
$args[] = array(
'name' => esc_html__( 'Link Social Accounts', 'default' ),
'slug' => 'connect-socials',
'screen_function' => 'connect_socials',
'position' => 100,
'parent_url' => bp_loggedin_user_domain() . 'profile/',
'parent_slug' => $bp->profile->slug,
);
foreach ( $args as $arg ) {
bp_core_new_subnav_item( $arg );
}
}
add_action( 'bp_setup_nav', 'buddyboss_custom_user_subtab' );
/* Display content of custom tab. */
function connect_socials() {
add_action( 'bp_template_title', 'connect_socials_title' );
add_action( 'bp_template_content', 'connect_socials_content' );
bp_core_load_template( apply_filters( ????????????? ) );
}
/* Display content of custom tab. */
function connect_socials_title() {
echo esc_html__( 'Custom Tab', 'default' );
}
Here is the output: https://ibb.co/58Y2WDy on the tabs part, but when I select the tab ‘Link Social Account’, the tempate isn’t the right one no matter what I try.
Thank you for your help!