Home › Forums › Front End PM PRO › Some minor Changes .
- This topic has 6 replies, 2 voices, and was last updated 7 years, 7 months ago by Shamim Hasan.
- AuthorPosts
- April 18, 2018 at 7:18 pm #13454Kels iviParticipant
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!!
April 19, 2018 at 12:09 am #13475Kels iviParticipantThis reply has been marked as private.April 19, 2018 at 1:08 am #13479Shamim HasanKeymaster1. You can override
viewmessage.phptemplate to achieve what you want. Instruction in https://sp-test1.arogga.co/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);April 20, 2018 at 6:29 pm #13548Kels iviParticipantThis reply has been marked as private.April 20, 2018 at 11:05 pm #13552Shamim HasanKeymasterI 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.April 30, 2018 at 6:04 pm #13872Kels iviParticipantThis reply has been marked as private.April 30, 2018 at 10:25 pm #13876Shamim HasanKeymasterI 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; } - AuthorPosts
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.