*

Hugo

  • ****
  • 182 posts
Replace images | Instant Messenger Plugin
« on: January 24, 2023, 12:13:47 AM »
Hi,

I would like to make a suggestion for the plugin 'Instant Messenger Plugin'. Instead of the profile images to be visible in the overview, we show the thumbnail (first image) of the listing. How can I change this? This will be beneficial for sellers with multiple listings and for buyers who show interest in several products. This would add more value to the users since most users don't upload a profile image.

Please let me know how to adjust the code. See attached screenshot to know about which thumbnails I am talking:

Marked as best answer by frosticek on January 25, 2023, 11:01:23 AM
*

MB Themes

Re: Replace images | Instant Messenger Plugin
« Reply #1 on: January 24, 2023, 08:54:16 AM »
In user/threads.php find this code:
Code: [Select]
$img = im_profile_img_url($u_id);

and replace with your own.
This might work:
Code: [Select]
  $item_details = im_get_item_details($t['fk_i_item_id']);
  $img = $item_details['resource'];
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Hugo

  • ****
  • 182 posts
Re: Replace images | Instant Messenger Plugin
« Reply #2 on: January 24, 2023, 08:11:11 PM »
worked!