BuddyDev

Search

[Resolved] Fix avatar visibility problem Snippet NOT Working on Group Cover Images

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #10635

    Hi Dollor,
    Thank you.

    The above fix fixes uploads.
    In case of group specialy, there needs a fix for fetching too.

    Please keep the above code and add this too.

    
    
    // Another hack.
    function buddydev_cover_upload_dir_fix_pre_get( $data = null ) {
    	buddydev_cover_upload_dir_fix(null );
    }
    add_filter( 'bp_attachments_pre_get_attachment', 'buddydev_cover_upload_dir_fix_pre_get' );
    
    

    That will do it fro you.

    Hope this helps.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 5
    Dollar on #10642

    Hello Brajesh,

    Thank you for your follow up. The combination of the above codes resolved the issue. Thank you very much for your help! You have been very helpful and I saw some other plugin on your site that I would like to implement so I will be signing up for a buddydev plan. Thanks again.

    All the best,
    -Dollar-

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #10643

    Hi Dollar,
    Thank you.

    I am glad I could help.

    Thank you for considering the membership. I sincerely appreciate it.

    Marking this topic as resolved.

    Regards
    Brajesh

The topic ‘ [Resolved] Fix avatar visibility problem Snippet NOT Working on Group Cover Images’ is closed to new replies.

This topic is: resolved