coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: TheKog on August 14, 2005, 12:00:11 AM

Title: CPG without DNS?
Post by: TheKog on August 14, 2005, 12:00:11 AM
Posted: Sat Aug 13, 2005 6:23 pm    Post subject: phpBB without DNS?   

--------------------------------------------------------------------------------

I am working on running our CPG on a backup server that has no DNS setup.

So to get to my board the path is http://IPADDY/~user/cpg/index.php

Unfortunately the DB and configs were copied from the real server with a functioning domain with DNS.

So all of the CPG scripts seem to be off 1 level of subdir in the paths -- for example image refs that are coded to ../../subdir (where subdir is outside CPG) is not finding the correct files anymore since DNS is not translating the domain name etc. It just seems the relative path names to resources outside the cpg subdir are not getting dereferenced correctly.

Is there a way I can spoof this by just editing the DB? Or a better way for me to use relative paths in my image refs within my theme template?
Title: Re: CPG without DNS?
Post by: Joachim Müller on August 14, 2005, 09:52:09 AM
Quote from: TheKog on August 14, 2005, 12:00:11 AM
phpBB
How is phpBB related?
Title: Re: CPG without DNS?
Post by: TheKog on August 14, 2005, 07:09:12 PM
typo, meant cpg (they are bridged)-- maybe this is just an artifact of having no DNS?
Title: Re: CPG without DNS?
Post by: Tranz on August 15, 2005, 07:26:28 AM
You don't need to have DNS for CPG. Did you look at config to have the correct ecard URL?
Title: Re: CPG without DNS?
Post by: TheKog on August 15, 2005, 01:34:54 PM
yep and I changed it to no effect.

All of CPG is funtional. It's just the portions of the template where I grab a header image from ../../Images that things aren't working.
Title: Re: CPG without DNS?
Post by: kegobeer on August 15, 2005, 09:41:22 PM
The quick fix would be to remove a level from your relative paths.  Without actually seeing the problem firsthand, I can't give much more advice.  If you create a test webpage and reference an image in another directory exactly how the template does, do you have the same problem?