@AM
This is what is used in Media table in backoffice:
<img src="' . osc_apply_filter('resource_path', osc_base_url() . $aRow['s_path']) . $aRow['pk_i_id'] . '_thumbnail.' . $aRow['s_extension'] . '" width="60" height="50"/>
So plugin have to use resource_path filter and update path.
In plugin I see:
function amazon_resource_path($path) {
if(osc_get_preference('bucket', 'amazons3') <> '') {
return "https://". osc_get_preference('bucket', 'amazons3') .".s3.amazonaws.com/" . str_replace(osc_base_url().osc_resource_field("s_path"), '', $path);
}
return $path;
}
osc_add_filter('resource_path', 'amazon_resource_path');
Important code:
str_replace(osc_base_url().osc_resource_field("s_path"), '', $path)
and also (bucket must be set):
if(osc_get_preference('bucket', 'amazons3') <> '') {