This topic has 7 replies, 2 voices, and was last updated 8 years by Andrei.

  • Author
  • #89499
     Ronin72
    Participant

    As per title, it’s possibile to have a shortcode to filter ONLY media upladed by user in the actvity stream page?

    My web site is a photographer’s rally community, so it will be nice to show ONLY photo if you want to see just that.

    Any solution?

    #89520
     Ronin72
    Participant

    Find an “almost solution here”:
    http://community.rtcamp.com/t/rtmedia-activity-updates-not-showing-in-activity-loop/1654

    (in reply to that question: http://community.rtcamp.com/t/rtmedia-filter/1856)

    It say:

    rtMedia stores an update as “rtmedia_update” in DB.
    Use this code to filter your activity:

    COPY CODE
    
    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ).'&action=activity_update,rtmedia_update' ) ) : ?>
    

    This will also show the rtMedia updates.

    The problem is I don’t know where to apply that!!!

    Can anyboy help, please?

    Waiting solution from theme creator staff.

    REALLY REALLY IMPORTANT FOR ME.

    Thanks

    #89608
     Andrei
    Moderator

    Starting the last update of the theme we’ll be using the native bp cover functionality, please find more about it in this page: https://codex.buddypress.org/themes/buddypress-cover-images/

    Your request would require some custom developments, so please let me know if you want me to put you in touch with our team which takes care of custom projects.

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #89615
     Ronin72
    Participant

    Why you are talking about “native bp cover functionality”?
    That’s not my problem.. 😉

    My problem is filter ONLY media upladed by user in the activity stream page..

    Can you help me on that?
    I suppose, this will be a nice solution for every of your Theme users, not just me.

    #89752
     Ronin72
    Participant

    Find that in RTcamp doc:

    http://docs.rtcamp.com/rtmedia/developers/add-rtmedia-updates-to-activity-show-dropdown.html

    Try to add this code in theme function.php, but “rtMedia updates” is NOT showed in the dropdown filter..

    Any help?

    #90438
     Andrei
    Moderator

    Hi Ronin, I’m sorry for my previous response, it’s there by absolute mistake, and sorry for the delay but I had to test this myself and it took some time.

    If you only want to add “rtMedia Uploads” dropdown filter then you can use this piece of code which should be added into your child theme, into the functions.php file.

    COPY CODE
    
    add_action('bp_activity_filter_options', 'rtmedia_extra_bp_activity_filter_options_html');
    function rtmedia_extra_bp_activity_filter_options_html(){
        echo '<option value="rtmedia_update">rtMedia Updates</option>';
    }
    

    If you want to strip down all activity entries by default and only show rtMedia Updates in the activity feeds then you will have to copy this file: “/wp-content/themes/kleo/buddypress/activity/activity-loop.php” to your child theme: “/wp-content/themes/kleo-child/buddypress/activity/activity-loop.php” and you will have to replace the 16’th line with the following:

    COPY CODE
    
    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) .'&action=rtmedia_update' ) ) : ?>
    

    Please note that this will affect all activity feeds, including users and groups feeds and will also make the dropdown filter without any effect, because this is a hard way to overriding what’s get displayed.

    Hope this information helps you !
    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #90509
     Ronin72
    Participant

    Thanks Andrei, first code it works 100% !

    Another question, related to that:
    is possibile to pass this variable to an URL so user can click and filter RtMedia upload in the activity stream?

    I’ll explain better..
    Example: http://www.MYWEBSITE.com/activity/filter_rtmedia
    and in this page have the option “rtMedia Updates” selected like default.

    Is that possible to achieve?
    ONLY for a specific page.

    Thanks again

    #92146
     Andrei
    Moderator

    Theoretical there should be a way to achieve it but will require more investigation and some custom developments.

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?