Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddyboss'

Viewing 25 results - 76 through 100 (of 610 total)
  • Author
    Search Results
  • #325142
    shanebp
    Moderator

    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.

    #324792
    futureyoon
    Participant

    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

    #324785
    Fábio Roque
    Participant

    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

    #324784
    futureyoon
    Participant

    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

    #324718
    shanebp
    Moderator

    These are the forums for BuddyPress.
    Ask BuddyBoss or the creators of the Invite plugin .

    #324642

    In reply to: LifterLMS conflict

    shanebp
    Moderator

    These are the support forums for BuddyPress – contact BuddyBoss.

    #324541
    shanebp
    Moderator

    These are the forums for BuddyPress. Please contact BuddyBoss.

    #324540
    maestromike1977
    Participant

    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?

    #324086
    Mathieu Viet
    Moderator

    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.

    Mathieu Viet
    Moderator

    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.

    #324084
    Mathieu Viet
    Moderator

    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.

    ocastaned
    Participant

    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…

    #324001
    shanebp
    Moderator

    These are the forums for BuddyPRESS.
    You could ask BuddyBoss about it.
    Even better – contact the creators of the Conditional Profile Fields plugin.

    #324000
    brhoom
    Participant

    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

    Nitin I.
    Participant

    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

    #323948

    In reply to: Database Errors

    shanebp
    Moderator

    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…

    #323937
    shanebp
    Moderator

    You are using BuddyBoss – these are the forums for BuddyPress.
    Ask your question on the Facebook page for BuddyBoss Community.

    #323909

    In reply to: Get group ID from slug

    resortstylebeanbags
    Participant

    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.

    #323879
    anjanphukan
    Participant

    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.

    #323843
    freya
    Participant

    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!

    #323394

    In reply to: How to use bp hooks?

    shanebp
    Moderator

    There is already a filter with that name:
    apply_filters( 'bp_members_signup_error_message', '<div class="error">' . $error_message . '</div>' );
    It passes only one argument. You need to write a custom filter hook with a different name.

    also – these are the forums for BuddyPress.
    Please contact BuddyBoss for questions specific to their codebase.
    This thread is now closed.

    #323383

    In reply to: How to use bp hooks?

    savantking99
    Participant

    that is my own function: line 48.

    and this is the doucumentation from buddyboss:

    apply_filters( 'bp_members_signup_error_message', string $value, string $fieldname )

    So I pass two arguments.

    #323381

    In reply to: How to use bp hooks?

    shanebp
    Moderator

    You need to look at themes\buddyboss-theme-child\functions.php : Line 48 to see what arguments are passed in the filter hook and then change your function to include all those arguments.
    And the ‘2’ in
    add_filter( 'bp_members_signup_error_message', 'function_voornaam', 10, 2 );
    needs to equal the number of arguments passed in the filter hook.

    #323379

    In reply to: How to use bp hooks?

    savantking99
    Participant

    thank you. But then I get this error:

    
    Fatal error: Uncaught ArgumentCountError: Too few arguments to function function_voornaam(), 1 passed in E:\Xampp\htdocs\wordpress\wp-includes\class-wp-hook.php on line 303 and exactly 2 expected in E:\Xampp\htdocs\wordpress\wp-content\themes\buddyboss-theme-child\functions.php:48 Stack trace: #0 E:\Xampp\htdocs\wordpress\wp-includes\class-wp-hook.php(303): function_voornaam('show_messagge') #1 E:\Xampp\htdocs\wordpress\wp-includes\plugin.php(189): WP_Hook->apply_filters('show_messagge', Array) #2 E:\Xampp\htdocs\wordpress\wp-content\themes\buddyboss-theme-child\functions.php(66): apply_filters('bp_members_sign...', 'show_messagge') #3 E:\Xampp\htdocs\wordpress\wp-settings.php(546): include('E:\\Xampp\\htdocs...') #4 E:\Xampp\htdocs\wordpress\wp-config.php(97): require_once('E:\\Xampp\\htdocs...') #5 E:\Xampp\htdocs\wordpress\wp-load.php(50): require_once('E:\\Xampp\\htdocs...') #6 E:\Xampp\htdocs\wordpress\wp-blog-header.php(13): require_once('E:\\Xampp\\htdocs...') #7 E:\Xampp\htdocs\wordpress\index.php(17): require('E:\\Xampp\\htdocs...') #8 {main} thrown in E:\Xampp\htdocs\wordpress\wp-content\themes\buddyboss-theme-child\functions.php on line 48
    
    #323375

    In reply to: How to use bp hooks?

    savantking99
    Participant

    Yes, I have done that. So the complete code is then like this:

    add_filter('bp_members_signup_error_message', 'function_voornaam');
    
    function function_voornaam($value,  $fieldname)
    {
    
        if ($fieldname == 'field_1') {
    
            return '<style>{font-family:bold}</style>  you have to enter name.';
        }
    }

    But then I get this error:

    
    atal error: Uncaught ArgumentCountError: Too few arguments to function function_voornaam(), 1 passed in E:\Xampp\htdocs\wordpress\wp-includes\class-wp-hook.php on line 303 and exactly 2 expected in E:\Xampp\htdocs\wordpress\wp-content\themes\buddyboss-theme-child\functions.php:49 Stack trace: #0 E:\Xampp\htdocs\wordpress\wp-includes\class-wp-hook.php(303): function_voornaam('show_messagge') #1 E:\Xampp\htdocs\wordpress\wp-includes\plugin.php(189): WP_Hook->apply_filters('show_messagge', Array) #2 E:\Xampp\htdocs\wordpress\wp-content\themes\buddyboss-theme-child\functions.php(68): apply_filters('bp_members_sign...', 'show_messagge') #3 E:\Xampp\htdocs\wordpress\wp-settings.php(546): include('E:\\Xampp\\htdocs...') #4 E:\Xampp\htdocs\wordpress\wp-config.php(97): require_once('E:\\Xampp\\htdocs...') #5 E:\Xampp\htdocs\wordpress\wp-load.php(50): require_once('E:\\Xampp\\htdocs...') #6 E:\Xampp\htdocs\wordpress\wp-blog-header.php(13): require_once('E:\\Xampp\\htdocs...') #7 E:\Xampp\htdocs\wordpress\index.php(17): require('E:\\Xampp\\htdocs...') #8 {main} thrown in E:\Xampp\htdocs\wordpress\wp-content\themes\buddyboss-theme-child\functions.php on line 49
    
Viewing 25 results - 76 through 100 (of 610 total)
Skip to toolbar