This topic has 11 replies, 4 voices, and was last updated 7 years by Abe.

  • Author
  • #128769
     HDcms
    Participant

    HI,

    1/ I am filter by images of rtmedias the sidewide activity activity stream


    Works with twenty theme but not sweetdate

    add_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 CODE
    add_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;
    }
    
    #128807
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #128822
     Radu
    Moderator

    Hi,

    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 solution
    #128892
     HDcms
    Participant

    HI,
    No effect!
    Regards

    #128914
     HDcms
    Participant

    HI,

    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 help

    COPY CODE
    add_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;     
        } 
    #129002
     HDcms
    Participant
    This reply has been set as private.
    #129042
     Abe
    Keymaster

    Hi 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.
    #129084
     HDcms
    Participant

    HI,

    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 stream

    Want my custom.php-file?

    Regards

    #129112
     HDcms
    Participant

    HI,
    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 stream

    Best as twenty: minimum information before publication
    You: Overload

    Attachments:
    You must be logged in to view attached files.
    #129248
     Abe
    Keymaster

    Hello, 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.

    #129250
     HDcms
    Participant

    Hello,

    I imagine that your answer relates to item 3/ !?
    This is actually a non-urgent improvement point, I suggest for a future release

    Do 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!
    Regards

    #129385
     Abe
    Keymaster

    Hi, 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.

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?