coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Iskander on May 08, 2006, 12:17:17 AM

Title: Loading Coppermine via Ajax
Post by: Iskander on May 08, 2006, 12:17:17 AM
Hi,

hopefully I'm in the right place with my problem. :)

Firstly, I'm loading coppermine into my page through an ajax script. I've installed it in root/Coppermine, the page I'm calling it from (index.html) is in root. This creates a pathing problem for all links in Coppermine, as its index.php is now in the wrong directory.

Short of changing all the links in Coppermine to "coppermine/..." or dumping all the files in root for it to work, what other options do I have? Any help you can give me is greatly appreciated. :)

The site in question is www.page5.de/2
Coppermine is installed in www.page5.de/2/coppermine

If you go to the site itself and click on "GALERIE" you should see the problem.

Thank you
Iskander
Title: Re: Loading Coppermine via Ajax
Post by: Nibbler on May 08, 2006, 01:18:27 AM
Try a <base> tag in template.html to correct the links.
Title: Re: Loading Coppermine via Ajax
Post by: Iskander on May 08, 2006, 09:52:45 AM
*slaps forehead* Duh!

That worked, thanks a lot!  :D
Title: Re: Loading Coppermine via Ajax
Post by: Iskander on May 08, 2006, 10:36:55 AM
The <base> tag solution doesn't seem to work in Firefox though. Is there some equivalent?  ???
Title: Re: Loading Coppermine via Ajax
Post by: Nibbler on May 08, 2006, 07:41:50 PM
The script you are using doesn't create valid html, that's probably why firefox doesn't like it. It should be possible to get the script to rewrite the links when it loads the page, try contacting the author or coding it yourself.
Title: Re: Loading Coppermine via Ajax
Post by: jr1001 on June 05, 2006, 11:25:48 PM
Quote from: Iskander on May 08, 2006, 10:36:55 AM
The <base> tag solution doesn't seem to work in Firefox though. Is there some equivalent?  ???

I am interested in this as well - great topic. Please post if you figure this out. I'll work in it also and let you know if I can get it to work. AJAX rox!