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.