Skip to main content
For reference only. Please use a different board for new questions

Using 404 caching for images

More
11 years 7 months ago - 11 years 7 months ago #1270 by mackelito
Hmm.. I get to work with large.. but not thumbs.. they dont get generated.. ?

Dont I need to change something in xhelpers.php?
Code:
define ('DF_IMAGE','concat("/product-img/large/",`feed_id`,"/",crc32(`image`),"-",`items_id`,".jpg")');
Last edit: 11 years 7 months ago by mackelito.

Please Log in to join the conversation.

More
11 years 7 months ago #1271 by redactie

mackelito wrote: Hmm.. I get to work with large.. but not thumbs.. they dont get generated.. ?

Dont I need to change something in xhelpers.php?

Code:
define ('DF_IMAGE','concat("/product-img/large/",`feed_id`,"/",crc32(`image`),"-",`items_id`,".jpg")');



the DF_IMAGE only gives you the url for ONE image ( $item ) from the database query.

In case of multiple images you will need to compile the URL using php as shown in affiliatefeeds.nl/pro-features/1270-re-u...t.html?do=quote#1267

( note that used thumb not thumbs. )

Please Log in to join the conversation.

More
11 years 7 months ago #1272 by mackelito
Now this is strange... on the site www.homeofsweden.se/ the "no-image" image is showing for thumbs.. but they are each a uniqe image

src="/product-img/thumbs/17/955559.jpg"
src="/product-img/thumbs/17/955558.jpg"
src="/product-img/thumbs/17/955557.jpg"

and so on!... how is that possible?

Please Log in to join the conversation.

More
11 years 7 months ago #1273 by redactie
typos? left over files in /product-img/?


your server is very slow/not responding, i'm not going to waste time there

if large is working the thumbs/index.php should be a copy with just a different $base

Please Log in to join the conversation.

More
11 years 7 months ago #1274 by mackelito
Great timing.. the webhost is having probs right now...
No rest files.. have checked for typos LOTS of times...

I got the /large/ to work and then copied it to /thumbs/ and made the changes in /thumbs/index.php..

Are the images created on import or on load?

Please Log in to join the conversation.

More
11 years 7 months ago #1289 by mackelito
FYI.
The problem was in the link to images.. I forgot to add the crc32 function... How it helps others :)

Please Log in to join the conversation.

Time to create page: 0.930 seconds