Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

  • Iuda
    Participant

    @iuda

    still don’t working 🙁


    Iuda
    Participant

    @iuda

    not working.


    Iuda
    Participant

    @iuda

    thank you @shanebp, it work.

    One small request if it’s possible: i want, if i click to “Iuda” tab, to send me to wp-admin page.
    This is the link https://failtrafic.ro/wp-admin/

    sorry but my knowledge in the field of php are at a chicken level 😀


    Iuda
    Participant

    @iuda

    thank you @shanebp for quick response

    this function can be extended for administrator and editor role ?


    Iuda
    Participant

    @iuda

    Problem solved. Thanks to Brajesh from BuddyDev

    1. Disable the cover upload by users
    2. Setup a default cover

    You can put the following code in your bp-custom.php to achieve that.

    Please make sure to change the default_cover image url

    /**
     * Disable the Change Cover from uSers profile
     */
    function buddydev_disable_cover_upload() {
    bp_core_remove_subnav_item('profile', 'change-cover-image');
    }
    add_action( 'bp_xprofile_setup_nav', 'buddydev_disable_cover_upload' );
    
    //set default cover
    
    function buddydev_set_default_profile_cover( $settings = array() ) {
    $settings['default_cover'] = 'http://yoursite.com/yourimage.jpg';
    return $settings;
    }
    add_filter( 'bp_before_xprofile_cover_image_settings_parse_args', 'buddydev_set_default_profile_cover' );

    Iuda
    Participant

    @iuda

    Hy.
    i put this function

    function bp_custom_filter_cover_image() {
        return 'http://failtrafic.ro/wp-content/uploads/2017/01/iarna.jpg';
    }
    add_filter( 'bp_attachments_pre_get_attachment', 'bp_custom_filter_cover_image' );

    in themes functions.php but not work.

    Any sugestion ?

Viewing 6 replies - 1 through 6 (of 6 total)
Skip to toolbar