BuddyBoss Home – Web Support Forums Plugins BuddyBoss Media "Photos" tab is visible to everyone & issues with the progress bar

Viewing 2 posts - 1 through 2 (of 2 total)
  • Question

    #33413
    @chatty24

    Hi

    Let me divide my question in two parts –

    1. The photo tab is visible to all the site users. I need it to be visible to users friends only. So, is there a way to do that?

    2. The progress bar shows 100% even when the upload begins. This is kind of not good for user experience as my users would be waiting even after the progress bar is showing 100%. I read in the previous threads that the image is actually uploaded and the server needs time to process and show it up. Can I display, “Processing…” after the progress bar displays 100%? If not. Can you tell me how to replace the progress bar with a gif image of rotating circle without any percentage, so that it does not confuse my users.

    Thanks!

    Answers

    #33418

    Alyssa
    Participant
    @alyssa-buddyboss

    @chatty24 this is custom development but I can provide you code to hide photos unless you are friends but not to hide the tab completely. Furthermore I cannot support this code, use at your own risk.

    Replace buddyboss-media/templates/members/single/buddyboss-media-photos.php:16
    <?php if ( buddyboss_has_photos() ) : ?>

    With this:

    <?php global $bp; $friend = BP_Friends_Friendship::check_is_friend( $bp->loggedin_user->id, $bp->displayed_user->id );
    if ( buddyboss_has_photos() && ($bp->loggedin_user->id || $friend == 'is_friend') ) : ?>

    2) becuase how BuddyPress is designed we are unable to provide a processing animation sorry, you may want to try asking in the BuddyPress forums to see if they can design it for a future release of BuddyPress.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The question ‘"Photos" tab is visible to everyone & issues with the progress bar’ is closed to new replies.