Dominique Baril

Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • in reply to: Aggregate messages related to a single receiver or a group #8088
    Dominique Baril
    Participant

    All right thank you Shamim

    in reply to: Special character displayed as Unicode in the email subject #8060
    Dominique Baril
    Participant

    All right! Thanks. Where could I download the fix?

    in reply to: Special character displayed as Unicode in the email subject #7918
    Dominique Baril
    Participant

    Well… 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.

    in reply to: User's own avatar class #7766
    Dominique Baril
    Participant

    All 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' );
    in reply to: User's own avatar class #7712
    Dominique Baril
    Participant

    Here’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;}
    in reply to: Reorder the menu buttons #7483
    Dominique Baril
    Participant

    Alright, 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;
    }
    in reply to: Assign a special icon to each of the buttons in the fep_men #7452
    Dominique Baril
    Participant

    Thank you for the quickness of your answer

    in reply to: Assign a special icon to each of the buttons in the fep_men #7450
    Dominique Baril
    Participant

    Sorry, my previous message is not in the right thread

    in reply to: Different class in messages from correspondents #7448
    Dominique Baril
    Participant

    If I’m right, you added the classes

    • fep-message-content-own
    • fep-per-message-own
    • fep-message-content-admin
    • fep-per-message-admin

    That seems great. Can’t wait for the next release

    in reply to: Assign a special icon to each of the buttons in the fep_men #7446
    Dominique Baril
    Participant

    If I’m right, you added the classes
    • fep-message-content-own
    • fep-per-message-own
    • fep-message-content-admin
    • fep-per-message-admin

    That seems great. Can’t wait for the next release

    in reply to: Add announcement to the new message count in shortcode #7417
    Dominique Baril
    Participant

    Alright, 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”] ?

    Dominique Baril
    Participant

    Great! Can’t wait to upgrade to new version.

    in reply to: Different class in messages from correspondents #7411
    Dominique Baril
    Participant

    Hi 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.
    Dominique Baril
    Participant

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

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