forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: AllOverThePlace on October 22, 2006, 05:33:51 am

Title: Using cpmFetch with add-on domains?
Post by: AllOverThePlace on October 22, 2006, 05:33:51 am
I saw the topic about <a href="http://forum.coppermine-gallery.net/index.php?topic=36358.0">using cpmFetch across subdomains</a> and thought that might work with my issue, but it is not.

I have a lot of add-on domains under my main website and use them as such. I've tried including a php file in the main directory on the sudomains, but cpmFetch still thinks that there's a separate gallery installed in my add-on domain. It is not.

Is there any way around the error? Other than a nasty iframe?

I'm sure I didn't explain that well, so to recap:

- I have a site; mysite.com
- I have lots of add-on domains
- cpmFetch will return an error using the add-on domain, and only fucntions properly with real physical URL. My add-on domain is the only way I use my site, so using the subdomain isn't a viable option.
Title: Re: Using cpmFetch with add-on domains?
Post by: vuud on October 26, 2006, 06:23:58 am
I saw the topic about <a href="http://forum.coppermine-gallery.net/index.php?topic=36358.0">using cpmFetch across subdomains</a> and thought that might work with my issue, but it is not.

I have a lot of add-on domains under my main website and use them as such. I've tried including a php file in the main directory on the sudomains, but cpmFetch still thinks that there's a separate gallery installed in my add-on domain. It is not.

Is there any way around the error? Other than a nasty iframe?

I'm sure I didn't explain that well, so to recap:

- I have a site; mysite.com
- I have lots of add-on domains
- cpmFetch will return an error using the add-on domain, and only fucntions properly with real physical URL. My add-on domain is the only way I use my site, so using the subdomain isn't a viable option.


This comes up so infrequently that I should really write down any solutions that come along...

One thing to try... On your CPG domain (the one hosting CPG) install CpmFetch and put a php file with just the calls you want to make from the subdomain (or add-on if thats the same).  Then, from the subdomain do an include "http://www.realcpgdomain.com/filename.php"

It executes on the other host and feeds back the html




Title: Re: Using cpmFetch with add-on domains?
Post by: AllOverThePlace on October 28, 2006, 03:48:10 am
I thought that that was what I initially tried...that or I'm really confused now :D

Should my first attempt have had cpmFetch installed in the add-on domain and not the real gallery directory?
Title: Re: Using cpmFetch with add-on domains?
Post by: vuud on October 28, 2006, 04:56:28 pm
I thought that that was what I initially tried...that or I'm really confused now :D

Should my first attempt have had cpmFetch installed in the add-on domain and not the real gallery directory?


cpmfetch goes in with your Coppermine Photo Gallery.  It needs to cause it needs to find the photos in the albums to decide what to display
Title: Re: Using cpmFetch with add-on domains?
Post by: AllOverThePlace on October 31, 2006, 02:38:57 am
Ok, that's what I did. I then placed a file in the main domain with the call to cpmFetch and tried to include the file on the add-on domain. It didn't work.
Title: Re: Using cpmFetch with add-on domains?
Post by: vuud on October 31, 2006, 05:10:09 pm
Ok, that's what I did. I then placed a file in the main domain with the call to cpmFetch and tried to include the file on the add-on domain. It didn't work.

Can you PM me a link to your file on the main server, and a link to the file on the add-on domain?
Title: Re: Using cpmFetch with add-on domains?
Post by: Joachim Müller on November 17, 2006, 08:29:06 am
Split unrelated reply into a separate thread (http://forum.coppermine-gallery.net/index.php?topic=38547.0)
Title: Re: Using cpmFetch with add-on domains?
Post by: cgc0202 on November 20, 2006, 05:52:28 pm
I hope this will work, I tried to do this before but it did not.  It was too complicated at the time for me, as I have no scripting skills at all, so  I did not know then how to deal with the issue. I have to rearrange my entire website design to be able to make CPMFetch -- and for now, it is only within one domain.  If it can be done over multiple domains in different servers -- that will be great.  I hope the solution will be posted.

Thanks.

CGC
Title: Re: Using cpmFetch with add-on domains?
Post by: muuu on November 23, 2006, 02:00:37 pm
Ok, everthink works good
but i would like to use this script
on my web page, but on diferent server - CPG instaled on www.ZZZZZZZ.dot.com/CPG/ and I want to display thumbs last added pic on www.XYYYYVVV.be
What I must do?? :>
Title: Re: Using cpmFetch with add-on domains?
Post by: Joachim Müller on November 23, 2006, 06:39:53 pm
Post real URLs there instead of dummy placeholder ones.
Title: Re: Using cpmFetch with add-on domains?
Post by: muuu on November 23, 2006, 09:23:33 pm
http://www.wlokniarz.inds.pl/wystawa/cpmfetch/
and i have gallery on this server, imgaes are display (only one): http://www.wlokniarz.inds.pl/wystawa/cpmfetch/cfig_random.php and http://www.wlokniarz.inds.pl/wystawa/cpmfetch/cpg.php

A would like to display random image on other server by include ("http://www.wlokniarz.inds.pl/wystawa/cpmfetch/cpg.php") and this dont work.
Title: Re: Using cpmFetch with add-on domains?
Post by: muuu on November 25, 2006, 12:11:37 pm
hmmm. smb hellps me? :>
Title: Re: Using cpmFetch with add-on domains?
Post by: muuu on November 25, 2006, 06:49:53 pm
ok, i place them by:
<img src="code do cmpfeet.php"> :D
Title: Re: Using cpmFetch with add-on domains?
Post by: muuu on November 25, 2006, 07:44:09 pm
But this display me only image
but no link to photo and any description :/
Title: Re: Using cpmFetch with add-on domains?
Post by: Gizmo on November 25, 2006, 08:59:23 pm
This script only gives one image with no other info. To give you additional images follow this - http://www.fistfullofcode.com/projects/copperminefetch/manual/ch09s05.html (http://www.fistfullofcode.com/projects/copperminefetch/manual/ch09s05.html). You should check out this site for lots of info on cpmFetch.
Title: Re: Using cpmFetch with add-on domains?
Post by: muuu on November 26, 2006, 10:32:03 am
Yes, but i used cfig_random.php
b'kz cfimageget.php don't display any picture.