- Posts: 174
- Thank you received: 4
For reference only. Please use a different board for new questions
Using 404 caching for images
11 years 7 months ago - 11 years 7 months ago #1270
by mackelito
Replied by mackelito on topic Re: Using 404 caching for images
Hmm.. I get to work with large.. but not thumbs.. they dont get generated.. ?
Dont I need to change something in xhelpers.php?
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.
11 years 7 months ago #1271
by redactie
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. )
Replied by redactie on topic Re: Using 404 caching for images
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.
11 years 7 months ago #1272
by mackelito
Replied by mackelito on topic Re: Using 404 caching for images
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?
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.
11 years 7 months ago #1273
by redactie
Replied by redactie on topic Re: Using 404 caching for images
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
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.
11 years 7 months ago #1274
by mackelito
Replied by mackelito on topic Re: Using 404 caching for images
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?
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.
11 years 7 months ago #1289
by mackelito
Replied by mackelito on topic Re: Using 404 caching for images
FYI.
The problem was in the link to images.. I forgot to add the crc32 function... How it helps others
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