Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • keshabee
    Participant

    @keshabee

    https://github.com/r-a-y/buddypress-followers/issues/31
    Below is a talk on how to add it but I want to remove disable or hide it


    keshabee
    Participant

    @keshabee

    Hi @prashantvatsh
    Thanks for pointing me to the right direction, I noticed the break in the image was caused by this code I made use of;

    Please can you assist me in a way to debug and fix this code a little
    Reasons being:
    The code helps to disable the gravatar use in buddy-press avatar and cover-image while also removing that gravatar text wordings when editing the avatar and cover image

    
    /*Disable gravatar*/
    add_filter('bp_core_fetch_avatar_no_grav', '__return_true');
    
    /*Disable gravatar extra function*/
    function bp_remove_gravatar ($image, $params, $item_id, $avatar_dir, $css_id, $html_width, $html_height, $avatar_folder_url, $avatar_folder_dir) {
    
        $default = get_stylesheet_directory_uri() .'/_inc/images/bp_default_avatar.jpg';
    
        if( $image && strpos( $image, "gravatar.com" ) ){ 
    
            return '<img src="' . $default . '" alt="avatar" class="avatar" ' . $html_width . $html_height . ' />';
        } else {
            return $image;
    
        }
    
    }
    add_filter('bp_core_fetch_avatar', 'bp_remove_gravatar', 1, 9 );
    
    function remove_gravatar ($avatar, $id_or_email, $size, $default, $alt) {
    
        $default = get_stylesheet_directory_uri() .'/_inc/images/bp_default_avatar.jpg';
        return "<img alt='{$alt}' src='{$default}' class='avatar avatar-{$size} photo avatar-default' height='{$size}' width='{$size}' />";
    }
    
    add_filter('get_avatar', 'remove_gravatar', 1, 5);
    
    function bp_remove_signup_gravatar ($image) {
    
        $default = get_stylesheet_directory_uri() .'/_inc/images/bp_default_avatar.jpg';
    
        if( $image && strpos( $image, "gravatar.com" ) ){ 
    
            return '<img src="' . $default . '" alt="avatar" class="avatar" width="150" height="150" />';
        } else {
            return $image;
        }
    
    }
    add_filter('bp_get_signup_avatar', 'bp_remove_signup_gravatar', 1, 1 );

    Thanks in advance


    keshabee
    Participant

    @keshabee

    Hi @prashantvatsh,
    I noticed when i used the code it fixed the buddypress avatar images only on the bp-profiles of the multisite.
    As the biography in the author biography of the single-post,page and comments on various users are still broken
    Please can you assist me, is there a way this can be fixed.

    Here are screen shots;
    https://postimg.cc/2q4GBg8H
    https://postimg.cc/FkfJ0JV9
    https://postimg.cc/LYPpf9gc
    https://postimg.cc/8s1GsSP0


    keshabee
    Participant

    @keshabee

    Hi @prashantvatsh,
    I noticed the code only fixes that of the bp-profile reasons being that the avatars found on post,comments are not displaying when i added the multiblog


    keshabee
    Participant

    @keshabee

    Hi, if you want to add screenshots use this site;
    Just save the the image screenshot to your computer, ( using tools like snippet) then go to the link
    https://postimages.org/
    — then set image option to 19inch monitor (1280 x1024)
    — no expiration

    — and upload the saved image, which would generate a link that you copy and add.


    keshabee
    Participant

    @keshabee

    Hi @prashantvatsh,
    Thanks for the pointing out on ways how to use that code but,
    1) I wanted to ask if there is a way to also do that for the cover image. As mi cover images are not shown on the sub sites when i have the buddy-press multi blog added.

    2)And Is there a way to find the meta keys and code “add filter” to use fix othyer areas of images or media options that are not being displaysed.
    Reason being:
    I noticed that the multi blog uses the fields setting the as global, so if one changes the a field from any of the site. that chanege is done immediately on all.
    But noticed that for uploads, this does not work because of uploads are done my media and seted to various directory .
    So i noticed if i upload the cover image on one site the other sites still does not display that change same as other uploads setting I make use of in the buddypress.

    Question: can you please help me with a code that could be used to fix the area for cover image and if possible how to find meta keys and guides to not when setting it up

    Thank you very much.


    keshabee
    Participant

    @keshabee

    Thank you very much @venutius
    It works


    keshabee
    Participant

    @keshabee

    found a way to round it


    keshabee
    Participant

    @keshabee

    I have fixed this already


    keshabee
    Participant

    @keshabee

    I too have this issue with buddy-press;
    I have also wondered if there was way to select a proposition of the image to show -: as uploading an image of one-self and the cover-page randomly cutting the head of the image posted, is the concern it self for me.

    A long time ago i noticed a plugin code which gives user the ability to re-positions the cover image, sadly it no longer work any-more.

    As i wish there was a way in cover-image to select the portion of image to be displayed.likely as mentioned by @carsten-lund


    keshabee
    Participant

    @keshabee

    As I’m making use of multi-site


    keshabee
    Participant

    @keshabee

    wow, it worked.
    Thank you very much you are a life saver


    keshabee
    Participant

    @keshabee

    Thank you very much but but if I may ask a question in this topic,
    When I added buddy press site tracking option from the plugin I noticed the tab site, but I wish to remove it without deselecting the site tracking feature.
    As the reason I want to use the site-tracking feature is to let it record on activities such as when i upload new post on the blog and it shows on the activities page.
    In summary: do you kindly know a way i can remove or hide the site tab on the profile from users and visitors without deselecting the site tracking


    keshabee
    Participant

    @keshabee

    does any one knows a function code or style script to make this happen

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