Some minor Changes .


Home Forums Front End PM PRO Some minor Changes .

This topic is: Not Resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #13454
    Kels ivi
    Participant

    Hello Shamin,

    Great plugin!!!

    Please, I’ll like to make some minor changes/customization. I’m using a child theme.

    1) Change the text ” Participants: User A, User B(Block) ” to “Conversation between you and User B“. User B is clickable and leads to user B ultimate member profile.

    2) Show conversation Count on the .fep-table .fep-table-row

    3) move the date on the .fep-table .fep-table-row from the under the username to the extreme right of the table row.

    4) Show only the avatar of the user you are messaging or replying to. The two avatar thing is confusing. I just want to be able to look at the avatar and know who I’m messaging or replying to.

    5) Shortcode to show messaging count on my menu or top bar. I’m using ultimate member too.

    Thanks for the awesome support in advance!

    Looking forward to your swift response.

    Thanks!!

    #13475
    Kels ivi
    Participant
    This reply has been marked as private.
    #13479
    Shamim Hasan
    Keymaster

    1. You can override viewmessage.php template to achieve what you want. Instruction in https://www.shamimsplugins.com/docs/front-end-pm-pro/customization-front-end-pm-pro/change-templates/

    2.+ 3. add following code in your child theme’s functions.php

    add_filter('fep_message_table_columns', function( $columns ){
    	$columns['cus_count'] = 'count';
    	$columns['cus_date'] = 'date'; 
    	return $columns;
    });
    
    add_action( 'fep_message_table_column_content_cus_count', function(){
    	$args = array(
    		'post_type' => 'fep_message',
    		'post_status' => 'publish',
    		'post_parent' => fep_get_parent_id( get_the_ID() ),
    		'posts_per_page' => -1,
    		'order'=> 'ASC',
    		'fields' => 'ids'
    	 );
         
    	 echo count( get_posts( $args ) ) + 1;
    });
    
    add_action( 'fep_message_table_column_content_cus_date', function(){
    	the_time( 'M d, Y' );
    });
    
    add_action( 'fep_message_table_column_content_author', function(){
    	echo fep_user_name( get_the_author_meta('ID') );
    });
    
    add_filter( 'fep_formate_date', function( $h_time, $date, $d ){
        return $date;
    }, 10, 3);
    
    #13548
    Kels ivi
    Participant
    This reply has been marked as private.
    #13552
    Shamim Hasan
    Keymaster

    I have updated above code. Please update your code with this one.
    CSS in theme depended. It is better if you use developer option of your browser to live change your css and determine what you need and add accordingly.

    #13872
    Kels ivi
    Participant
    This reply has been marked as private.
    #13876
    Shamim Hasan
    Keymaster

    I have updated above code. Please use this code.
    Then add following CSS in your theme’s style.css

    .fep-column-cus_count {
        width: 50px;
    }
    .fep-column-cus_date {
        width: 100px;
    }
    
Viewing 7 posts - 1 through 7 (of 7 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.