Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 12th, 2011, 01:38 PM
kaje kaje is offline
 
Join Date: Mar 2011
Posts: 142
Default Hosting Merchant Images

I know you can host the merchant images on your own server by creating the directories and changing the URL settings to %li and %lt.

Is there a way to force all images to download and change the url structure to start showing my domain name as the host of the images instead of the merchants?

I changed the URL parameters and updated both products and settings but it it's not updating the image links. Am I missing something?
  #2  
Old September 12th, 2011, 02:14 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

Did you already create the directories for your images? If so, is it writable?

Eric
  #3  
Old September 12th, 2011, 04:09 PM
kaje kaje is offline
 
Join Date: Mar 2011
Posts: 142
Default

Yes I created directories and they are both writable.
  #4  
Old September 12th, 2011, 04:15 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

Can you PM me the following information:

FTP LOGIN INFORMATION (Temporary login information preferred)
Host:
Login:
Password:

BLOG LOGIN INFO with ADMINISTRATOR PERMISSIONS (Temporary login information preferred)
Admin URL:
Username:
Password:

Thanks,
Eric
  #5  
Old September 12th, 2011, 06:18 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

The reason that you weren't getting the images to store locally is because you were accessing the images using the $product object instead of the [product.image] tag.

You had this:

PHP Code:
    <?php if(strpos($product->thumbnail"_m.jpg") !== false): ?>
        <?php $large_image_url str_replace("_m.jpg""_e.gif"$product->thumbnail); ?>
    <div class="image"><a href="[product.url]" target="_blank" title="[product.name]"><img src="<?=$large_image_url?>" width="210px" height="100px" alt="[product.name]" /></a></div>
    <?php else: ?>
    <div class="image"><a href="[product.url]" target="_blank" title="[product.name]">[product.image direct='0' tag='1' style="width:210px;height:100px"]</a></div>
    <?php endif; ?>
If you just have this
HTML Code:
<div class="image"><a href="[product.url]" target="_blank" title="[product.name]">[product.image direct='0' tag='1' style="width:210px;height:100px"]</a></div>
then the image will be downloaded successfully.

I modified your view for the History category and now all images pull from your server.

Eric
  #6  
Old September 13th, 2011, 12:03 AM
kaje kaje is offline
 
Join Date: Mar 2011
Posts: 142
Default

Eric thanks as this does work. The reason for the extra code though was to display the .gif file if there was one available. Some merchants provide an animated gif and I wanted to use that file instead of the still jpg. Is there any way to still do this?
  #7  
Old September 13th, 2011, 09:02 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by kaje View Post
Is there any way to still do this?
There's not a way for the .gifs to be stored locally if they are not included in the image field or thumbnail field.

The only thing you can do is something like this:
PHP Code:
<?php if (preg_match("/.gif/i"$product->thumbnail)) : ?>
    <div class="image"><a href="[product.url]" target="_blank" title="[product.name]">[product.thumbnail direct='0' tag='1' style="width:210px;height:100px"]</a></div>
<?php else: ?>
    <div class="image"><a href="[product.url]" target="_blank" title="[product.name]">[product.image direct='0' tag='1' style="width:210px;height:100px"]</a></div>
<?php endif; ?>
That will always display a .gif image if it exists. And .gifs are the only animated type of image file.

Eric
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Merchant images ccgmark Feature Requests 1 January 13th, 2011 12:14 PM


All times are GMT -5. The time now is 01:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.