Osclass Support Forums

General osclass questions => Plugins => Topic started by: Hugo on January 24, 2023, 12:13:47 AM

Title: Replace images | Instant Messenger Plugin
Post by: Hugo 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:
Title: Re: Replace images | Instant Messenger Plugin
Post by: MB Themes 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'];
Title: Re: Replace images | Instant Messenger Plugin
Post by: Hugo on January 24, 2023, 08:11:11 PM
worked!