BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Need help with 2 plugins I bought #52484

    Hello Katrine,

    Sorry for the delayed reply and welcome to the BuddyDev forum. I will get back to you soon regarding your requirement.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Post excerpt #52483

    Hello Scooter,

    Thank you for the acknowledgement. You can place the file “bp-custom.php” under “wp-content/plugins”. Make sure you have started the file with

    
    <?php
    
    

    Note: Ensure there is no space or a new line before “<?php” tag.

    if still not working put the code in the active theme “functions.php” file and then check it.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Create activity search form #52482

    Hello Sunny,

    Thank you for the kind words. I am glad that I could help.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Post excerpt #52478

    Hello Scooter,

    Thank you for the acknowledgement. Do you have already post excerpt with the posts? If yes please delete and WordPress will auto-generate it for you. By default, WordPress shows 55 words in a post excerpt but with the following code you can control the excerpt words length.

    
    
    add_filter( 'excerpt_length', function () {
    	return 30;
    } );
    
    

    You can place this code in “bp-custom.php” file or your active theme “functions.php” file.

    You can refer the URL: https://buddydev.com/docs/buddypress-guides/what-is-bp-custom-php/

    Please give it a try.

    Regards
    Ravi

    • This reply was modified 6 months, 2 weeks ago by Ravi.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello,

    I have checked it and it conflicts with theme functionality which overrides the default admin meta box layout and converts it to tabbed one. You can use the following code to fix this

    
    add_action( 'admin_enqueue_scripts', function () {
    	$screen = get_current_screen();
    
    	if ( ! isset( $screen->id ) || ! in_array( $screen->id, array( 'bpptc_profile_tab' ) ) ) {
    		return;
    	}
    
    	if ( class_exists('\WGL_Extensions\WGL_Framework_Global_Variables' ) ) {
    		wp_dequeue_style( \WGL_Extensions\WGL_Framework_Global_Variables::get_theme_slug() . '-admin' );
    	}
    
    	wp_dequeue_script( 'wgl-extensions-metaboxes' );
    }, 20 );
    
    

    You can place this bp-custom.php file or your theme “functions.php” file. Please give it a try and let me know if it helps or not.

    Refer this if you do not know what is bp-custom file
    https://buddydev.com/docs/buddypress-guides/what-is-bp-custom-php/

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Benny,

    For groups media use component=”groups” and for recent media orderby=”modified” attribute for photo media only you can use type=”photo” as well for e.q.

    [mpp-list-media component=”groups” orderby=”modified” nopaging=1 column=12]

    try like this.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Benny,

    Try the following shortcode. List all gallery media per row 12 media items

    
    // Replace gallery_id with your gallery id.
    [mpp-list-media gallery_id="92" nopaging=1 column=12]
    
    

    PS: nopaging: Please avoid it as It can lead to degraded performance.

    Shortcode documentation: https://buddydev.com/mediapress/shortcodes/mpp-list-media/

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Benny,

    Welcome to the BuddyDev Forums. MediaPress does have a setting with the name “How many media per row?”. You can locate it under MediaPress > Settings > Theming > Display Settings with a try with the value 12. it will list 12 media per row. Please give it a try.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Post excerpt #52462

    Hello Scooter,

    Thank you for posting. If you are familiar with PHP you can use the function name “wp_trim_excerpt” to generate. If you want me to assist you with the code let me know.

    Regards
    Ravi

    • This reply was modified 6 months, 2 weeks ago by Ravi.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Create activity search form #52461

    Hello Sunny,

    Try the following way:

    
    <?php if ( function_exists( 'bp_is_activity_directory' ) && bp_is_activity_directory() ) : ?>
        <?php echo do_shortcode('[bp-activity-search-form]'); ?>
    <?php endif; ?>
    
    

    Give it a try.

    Regards
    Ravi