Posted - 04/28/2025 : 13:38:49
I think my question was addressed on another thread. No image support for the integrated, but just did a custom modification. If this ever gets added in by default it would be nice if it was setup to function with images hosted on other servers. The way I set it up was modifying the SQL query and then getting the image this way:
[code]$src = str_replace('format=webp&', '', $rs2['imagesrc']); if (preg_match('#^https?://#i', $src)) { $imageUrl = $src; } else { $imageUrl = 'http://'. $_SERVER['SERVER_NAME'] . '/' . $src; } [/code]
This detects if there is a http in the image source and then uses it as is. If it does not have the http, then it functions using the local folder. This prevents it from outputting something like "http://www.domain.com/https://www.3rdpartyimghost.com/image.jpg" but if it is locally hosted it will output "http://www.domain.com/prodimages/image.jpg"
|