-
Author
-
July 11, 2016 at 16:17 #128769HDcmsParticipant
HI,
1/ I am filter by images of rtmedias the sidewide activity activity stream
Works with twenty theme but not sweetdateadd_filter(‘bp_get_activity_show_filters_options’, ‘add_media_show_filter’, 10, 2 );
function add_media_show_filter( $filters, $context ) {
$filters[‘rtmedia_update’] = ‘Medias’;
return $filters;
}Does not work with a template
COPY CODEadd_filter( 'bp_get_activity_show_filters_options', 'add_rtmedia_update_into_bp_activity_filter', 10, 2 ); function add_rtmedia_update_into_bp_activity_filter( $filters, $context ){ if( isset( $filters['activity_update'] ) ){ $filters['activity_update, rtmedia_update'] = $filters['activity_update']; unset( $filters['activity_update'] ); } return $filters; }
July 11, 2016 at 18:22 #128807LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! ?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
July 11, 2016 at 18:58 #128822RaduModeratorHi,
Do you have tried to change/play with the priority ?
The priority value is 10 try to put 1 or 99 or 50
Let me know
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 12, 2016 at 11:20 #128914HDcmsParticipantHI,
More generally.
I try to apply the methods for BP 2.6+ masking lines of the selector.
It works with a theme but not with twenty sweetdate (child or parent)
Thank you for your helpCOPY CODEadd_filter( 'bp_get_activity_show_filters_options', 'bpfr_remove_filters_options', 50, 2 ); function bpfr_remove_filters_options( $filters, $context ) { /* * @param string $context Context for the filter. 'activity', 'member', 'member_groups', 'group'. */ // if ( 'activity' == $context AND pmpro_hasMembershipLevel(array('0','1'))) { if ( 'activity' == $context ) { // commenter les lignes qu'on veut afficher $remove_these = array( //'New Members' => __( 'New Members', 'buddypress' ), 'Profile Updates' => __( 'Profile Updates', 'buddypress' ), // 'Updates' => __( 'Updates', 'buddypress' ), 'Friendships' => __( 'Friendships', 'buddypress' ), 'Group Updates' => __( 'Group Updates', 'buddypress' ), 'New Groups' => __( 'New Groups', 'buddypress' ), 'Group Memberships' => __( 'Group Memberships','buddypress' ), 'Posts' => __( 'Posts', 'buddypress' ), 'Comments' => __( 'Comments', 'buddypress' ), ); foreach ( $filters as $key => $val ) { if ( in_array( $val, $remove_these ) ) unset( $filters[ $key ] ); } } return $filters; }
July 13, 2016 at 15:46 #129042AbeKeymasterHi there, it seems that a template needed an update. Please replace the attached file from the archive into the following location until the next theme update: wp-content/themes/sweetdate/activity/index.php
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.Attachments:
You must be logged in to view attached files.July 13, 2016 at 17:33 #129084HDcmsParticipantHI,
Thank you
I do not know if that answered the last pressing issue, but it works now.
Nevertheless the first 2 points are not resolved
1/ filter by images of rtmedias the sidewide activity stream
2/ Hiding the contents of the sidewide activity streamWant my custom.php-file?
Regards
July 13, 2016 at 18:35 #129112HDcmsParticipantHI,
4/ If it’s not too hard can you incorporate into your next update (or put it in a plan soon) improved display before the publication of a note in the activity streamBest as twenty: minimum information before publication
You: OverloadAttachments:
You must be logged in to view attached files.July 15, 2016 at 08:44 #129248AbeKeymasterHello, those are a bit custom and you should talk with a developer to help.
All the best
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.July 15, 2016 at 10:53 #129250HDcmsParticipantHello,
I imagine that your answer relates to item 3/ !?
This is actually a non-urgent improvement point, I suggest for a future releaseDo you saw on points 1/ and 2/ that do not seem resolved to me?
1/ filter :
add_filter(‘bp_get_activity_show_filters_options’, ‘add_media_show_filter’, 10, 2 );2/ Hiding the contents :
add_filter( ‘bp_get_activity_show_filters_options’, ‘bpfr_remove_filters_options’, 50, 2 );I’m leaving tomorrow and I wish solve these problems!
RegardsJuly 17, 2016 at 10:06 #129385AbeKeymasterHi, sorry for the late reply but the filter should work now on the activity page bp_get_activity_show_filters_options
What exact page is the one you say they don’t take effect?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
You must be logged in to reply to this topic.