If this is your first visit, check our documentation. To post, register or login.
Forums / Code Collaboration / Moding IH4 to be able to accept external images

Moding IH4 to be able to accept external images

Started by icecold on 9 Apr 2018, 11:32 PM · Views: 4,089

Results 1 to 1 of 1
9 Apr 2018, 11:32 PM
#1
icecold avatar

icecold

Zen Follower

Join Date:
Jul 2008
Posts:
360
Plugin Contributions:
0

Moding IH4 to be able to accept external images

[Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]
http://theoutletseason.com/nfc (demo site)

Currently using 1.5.5a until I fix this, because it's a sandbox.

My problem :

I use a proprietary system to instantly upload and auto update ALL my products every day, from the vendors server.
The system adds two tables to the standard structure, and uses direct URL for the images.
so each product image is remote.

As ZC is designed to make this really hard, I went through several suggestions, and was using, some old contributions, that gave a bit more light to the thing in question, therefore I was able to pinpoint what to target, but so far my efforts to remove the added FS_Catalog and /image before the string that builds the src, have been unsuccessful, as I always ended up with the same, ```html
http://theoutletseason.com/nsc/images/http://vendorsurl.com/externalimagename

Which is completely wrong!!!
because I just need the img src to be <http://vendorsurl.com/externalimagename.jpg>
but despite my efforts, like if I 
```php
define('DIR_EXT_HTTP','');

and replace all instances of DIR_WS_IMAGES, that are related to products, of course not icons or local images, just products.
I end up with the same malformed URL ...