-
Author
-
July 11, 2016 at 16:17 #128769
HDcms
ParticipantHI,
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 #128807Laura
ModeratorHello, 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 solutionJuly 11, 2016 at 18:58 #128822Radu
ModeratorHi,
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 #128914HDcms
ParticipantHI,
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 01:08 #129002HDcms
ParticipantHello,
3/ rtmedias
The problems are not solved but the most important related sweetdateThe publication of an image in the note on a group activity page is not visible for non-member administrator
I tested everything (disable all plugins, and bp-functions.php custom.php). It seems there is a bug with rtmedias. They asked me to contact you
That does not work either with the parent theme
With a theme twenty it works.You can use
login: hdtest1
password: hdtest1
to send a picture to
http://www.amours.eu/groupes/communs-monnaie-lyon/Regards
July 13, 2016 at 15:46 #129042Abe
KeymasterHi 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 solutionJuly 13, 2016 at 17:33 #129084HDcms
ParticipantHI,
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 #129112HDcms
ParticipantHI,
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: OverloadJuly 15, 2016 at 08:44 #129248Abe
KeymasterHello, 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 solutionJuly 15, 2016 at 10:53 #129250HDcms
ParticipantHello,
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 #129385Abe
KeymasterHi, 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 -
AuthorPosts
You must be logged in to reply to this topic.