This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Web

  • ****
  • 183 posts
Icon
« on: March 01, 2020, 06:44:29 AM »
Hi,
How to add reciver and sender different icons ?

DEFAULT

*

MB Themes

Re: Icon
« Reply #1 on: March 01, 2020, 09:43:59 AM »
@Web
Do you mean like default icons?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Web

  • ****
  • 183 posts
Re: Icon
« Reply #2 on: March 01, 2020, 10:22:45 AM »
Yes

Marked as best answer by Web on March 03, 2020, 11:14:03 AM
*

MB Themes

Re: Icon
« Reply #3 on: March 02, 2020, 11:57:56 AM »
@Web
In file:
oc-content/plugins/instant_messenger/user/messages.php

Above line:
Code: [Select]
$img = im_get_user_image($u_id);
add code:
Code: [Select]
          if($logged_is_owner) {
            $def_img = osc_base_url() . 'oc-content/plugins/instant_messenger/img/profile-default.png';
            $u_id = osc_logged_user_id();
          } else {
            $def_img = osc_base_url() . 'oc-content/plugins/instant_messenger/img/profile-default-alt.png';
            $u_id = ($thread['i_from_user_id'] == osc_logged_user_id() ? $thread['i_to_user_id'] : $thread['i_from_user_id']);
          }

Save, then into folder:
oc-content/plugins/instant_messenger/img/

add alt image with name:
profile-default-alt.png
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots