*

A.M

  • ***
  • 34 posts
Re: Amazon S3 and the mail images issue need to solve
« Reply #15 on: January 10, 2023, 08:49:51 PM »
I think it will only work when osc_resource() is available and that's your issue here.

We can avoid instant messanger plugin, no problem, and about dailymails unfortunetly stilled not solved

what you think?, did you think there is solution?

Regards
iloveOsclass

*

MB Themes

Re: Amazon S3 and the mail images issue need to solve
« Reply #16 on: January 12, 2023, 01:28:23 PM »
I suppose links in email are wrong as well
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

A.M

  • ***
  • 34 posts
Re: Amazon S3 and the mail images issue need to solve
« Reply #17 on: January 13, 2023, 12:25:39 AM »
I suppose links in email are wrong as well

Yeah, have you an idea Where is the location of the file responsible for that?

Regards
iloveOsclass

*

A.M

  • ***
  • 34 posts
Re: Amazon S3 and the mail images issue need to solve
« Reply #18 on: January 13, 2023, 10:00:42 AM »
about instant messanger plugin, in messages,

,might code work as a img src:

<?php echo (eps_is_lazy() ? 'lazy' : ''); ?>" src="<?php echo (eps_is_lazy() ? eps_get_load_image() : osc_resource_thumbnail_url()); ?>" data-src="<?php echo osc_resource_thumbnail_url(); ?>" alt="<?php echo osc_esc_html(osc_item_title()); ?> - <?php echo $i+1;?>

but stilled missing, the link looks like this:

<img class="lazy" src="https://domianname.com/oc-content/themes/epsilon/images/load-image.png" data-src="https://domianname.s3.amazonaws.com/0_thumbnail." alt=" - 1">

hmmmm, i think we close, hope we can find soluttion soon :)
iloveOsclass

*

MB Themes

Re: Amazon S3 and the mail images issue need to solve
« Reply #19 on: January 13, 2023, 08:10:39 PM »
Does not make sense, it should work there
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

A.M

  • ***
  • 34 posts
Re: Amazon S3 and the mail images issue need to solve
« Reply #20 on: January 18, 2023, 03:57:29 AM »
Does not make sense, it should work there

the email images for alerts has been solved and here what i did:

in: /oc-includes/osclass/alerts.php

replace this code:

Code: [Select]
if(isset($resource['pk_i_id']) && $resource['pk_i_id'] > 0) {
              $path = osc_apply_filter('resource_path', osc_base_url().$resource['s_path']);
              $img_link = $path.$resource['pk_i_id']."_thumbnail.".$resource['s_extension'];
            } else {
              $img_link = osc_base_url() . 'oc-includes/osclass/gui/images/no_photo.gif';
            }

with this:

Code: [Select]
if(isset($resource['pk_i_id']) && $resource['pk_i_id'] > 0) {
              $path = osc_apply_filter('resource_path', osc_base_url());
              $img_link = $path.$resource['pk_i_id']."_thumbnail.".$resource['s_extension'];
            } else {
              $img_link = osc_base_url() . 'oc-includes/osclass/gui/images/no_photo.gif';
            }

done.
iloveOsclass

*

MB Themes

Re: Amazon S3 and the mail images issue need to solve
« Reply #21 on: January 18, 2023, 03:09:42 PM »
Glad to hear that ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots