BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 5
    Arslan on #34261

    You probably didn’t understand me. I mean the count of downloaded media files of users.

    The plugin has a counter function mpp_get_media_count

    For example, the “My Audio” counter can be made like this by passing the necessary arguments to it:

    function agni_user_my_audio_count() {
    $total_uploaded_audio = mpp_get_media_count(array(
    ‘component_id’ => bp_displayed_user_id(),
    ‘component’ => ‘members’,
    ‘type’ => ‘audio’,
    ‘status’ => ‘public’
    ) );

    echo $total_uploaded_audio;
    }

    In this way, you can show the counters of photos, videos, files, and audio recordings.

    • This reply was modified 4 years, 1 month ago by Arslan.
    • This reply was modified 4 years, 1 month ago by Arslan.