-
Author
-
November 27, 2015 at 11:28 #89499Ronin72Participant
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?
November 27, 2015 at 13:44 #89520Ronin72ParticipantFind 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
November 27, 2015 at 18:55 #89608AndreiModeratorStarting 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 solutionNovember 27, 2015 at 19:04 #89615Ronin72ParticipantWhy 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.November 28, 2015 at 12:53 #89752Ronin72ParticipantFind 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?
December 2, 2015 at 01:36 #90438AndreiModeratorHi 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 CODEadd_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 !
CheersHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 2, 2015 at 10:18 #90509Ronin72ParticipantThanks 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
December 9, 2015 at 18:19 #92146AndreiModeratorTheoretical 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 -
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.