subdomain problem with pictures

3 posts by 2 authors in: Forums > CMS Builder
Last Post: December 19, 2008   (RSS)

By kovali - December 19, 2008

Hi,

I have this problem that thumbnail pictures (and bigger pictures) don't show in my website which is installed on a subdomain. I installed the cms on the main domain, let's say www.mydomain.com but the actual website is at www.sub.mydomain.com. When i check the hyperlink to the pictures it shows http://www.sub.mydomain.com/admin/uploads/... while this should be http://www.mydomain.com/admin/uploads/... ofcourse, which is the actual place where the pictures are stored. Can i somehow change the value of thumbUrlPath and UrlPath in the script so it will point to the main domain instead of the subdomain ? Or has this to be done in another way ?

Thanks,
Koen

Re: [kovali] subdomain problem with pictures

By Kenny - December 19, 2008

Koen

I haven't tried this with subdomains yet, but I use it where CMSB is installed on one domain, but the content is displayed on another domain (on the same server).

IE: CMSB is installed on www.sagentic.com and content is displayed on www.sagentic.net

Try putting the domain name before your echo statement like this:

<img src="http://www.mydomain.com<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" />


Let me know if that works in your case - I am curious to find out.

Kenny