View Single Post
  #45  
Old 06-28-2011, 06:09 AM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default Re: MaxCDN Content Delivery Solution?

Quote:
Originally Posted by DogByteMan
On 4.1.12 in func.files.php

if (($type == 'T' OR $type == 'P') AND $_SERVER['HTTPS'] != 'on')
{
$image_path = str_replace('/home/user/public_html/images/','http://skin1.mydomain/images/',$image_path);
return str_replace('$http_location','',$image_path);
}

Works Great, BUT, I need a different scheme for product and category pages. I've tried. for example.

if ($productid AND ($type == 'T' OR $type == 'P') AND $_SERVER['HTTPS'] != 'on')
{
$image_path = str_replace('/home/user/public_html/images/','http://skin1.mydomain.com/images/',$image_path);
return str_replace('$http_location','',$image_path);
}

and dozens of other possible variables, it would appear they are not available in func.files.php. Anybody have a solution?

I guess I should elaborate, I feel I might not of been clear enough. What I want to accomplish is separate sub domains for images based on whether the customer is on a product page, a category page, or the home page. In func.files there is no code to make this available. I want to know, with the least amount of overhead, how to make something available to make the distinctions.
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote