Dominique Baril
Forum Replies Created
-
AuthorPosts
-
November 19, 2017 at 8:22 pm in reply to: Aggregate messages related to a single receiver or a group #8088Dominique BarilParticipant
All right thank you Shamim
November 18, 2017 at 8:17 pm in reply to: Special character displayed as Unicode in the email subject #8060Dominique BarilParticipantAll right! Thanks. Where could I download the fix?
November 12, 2017 at 5:43 am in reply to: Special character displayed as Unicode in the email subject #7918Dominique BarilParticipantWell… since this forum interprete’s the unicode I wrote previously, my example doesn’t work. Here’s what I was tying to explain.
So, instead of displaying: Someone’s car is parked in the loading zone.
It displays:
Someone’s car is parked in the loading zone.
Dominique BarilParticipantAll right, so I added this to my function.php and it works fine. Thanks Shamim
function fep_remove_own_avatar() { $participants = fep_get_participants( get_the_ID() ); if (($key = array_search(get_current_user_id(), $participants)) !== false) { unset($participants[$key]); } $current_user = get_current_user_id(); $count = 1; ?> <div class="fep-avatar-p <?php echo ( count( $participants ) > 2 ) ? 'fep-avatar-p-120' : 'fep-avatar-p-90' ?>"><?php foreach( $participants as $p ){ $participant_id = fep_get_userdata( $p, 'ID', 'ID' ); if( $count > 2 ){ echo '<div class="fep-avatar-more-60" title="' . __('More users', 'front-end-pm') . '"></div>'; break; } ?><div class="fep-avatar-<?php echo $count; ?> <?php if ( $participant_id === $current_user) { echo "fep-avatar-own";} ?>"><?php echo get_avatar( $p, 60, '', '', array( 'extra_attr'=> 'title="'. fep_get_userdata( $p, 'display_name', 'ID' ) . '"') ); ?></div><?php $count++; } echo '</div>'; } add_action( 'fep_message_table_column_content_avatar', 'fep_remove_own_avatar' );
Dominique BarilParticipantHere’s the css to remove current user’s avatar
.fep-avatar-own {display: none;} .fep-avatar-p {width:55px; max-width:55px;} .fep-avatar-p .fep-avatar-2 {left:0px;}
Dominique BarilParticipantAlright, thank you for time Shamim. I know you must be busy preparing this week release.
Here’s the full function I try to make work. As you can see I use a priority of 99 for my filter and I unset the new message button.add_filter( 'fep_menu_buttons', 'fep_cus_fep_menu_buttons', 99 ); function fep_cus_fep_menu_buttons( $menu ) { unset( $menu['newmessage'] ); $menu['messagebox']['priority'] = 1; $menu['announcements']['priority'] = 2; $menu['directory']['priority'] = 3; $menu['settings']['priority'] = 4; return $menu; }
October 27, 2017 at 9:55 pm in reply to: Assign a special icon to each of the buttons in the fep_men #7452Dominique BarilParticipantThank you for the quickness of your answer
October 27, 2017 at 9:14 pm in reply to: Assign a special icon to each of the buttons in the fep_men #7450Dominique BarilParticipantSorry, my previous message is not in the right thread
Dominique BarilParticipantIf I’m right, you added the classes
• fep-message-content-own
• fep-per-message-own
• fep-message-content-admin
• fep-per-message-adminThat seems great. Can’t wait for the next release
October 27, 2017 at 9:12 pm in reply to: Assign a special icon to each of the buttons in the fep_men #7446Dominique BarilParticipantIf I’m right, you added the classes
• fep-message-content-own
• fep-per-message-own
• fep-message-content-admin
• fep-per-message-adminThat seems great. Can’t wait for the next release
October 26, 2017 at 11:11 pm in reply to: Add announcement to the new message count in shortcode #7417Dominique BarilParticipantAlright, that seems promising. In order to combine the count of new messages and new announcement, would I be possible to give an attributes like [fep_shortcode_new_message_count announcement=”true”] ?
October 26, 2017 at 11:03 pm in reply to: Remove parantheses brackets surrounding the new message count in[fep_shortcode_n #7414Dominique BarilParticipantGreat! Can’t wait to upgrade to new version.
Dominique BarilParticipantHi Shamim.
I want to style differently the messages of the current user from the ones of his correspondent(s). The idea is to, replicate the UX of the major chat apps to give some point of reference to our users so they quickly understand the UI of Front End PM. As you can see in the attachment, it’s kind of a standard to style differently the messages.
Thanks
Attachments:You must be logged in to view attached files.October 25, 2017 at 5:43 am in reply to: [Suggestion] Always display the other person instead of the user itself. #7306Dominique BarilParticipantActually, this would greatly enhance the user experience in the case of, example, an admin set the Max Recipient to 1 in the settings.
I did ask 10 persons to test my development site and most of them didn’t understand why their avatar was displayed first in the messages and tagged it as a bug. My guess is since 90% of the planet is on Facebook, people expect the same behaviours as FB Messenger.
-
AuthorPosts