forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: Starlight on May 14, 2009, 06:32:57 pm
-
Hi there,
today I installed cpmFetch and I got it to work on my mainpage.
http://starlights-graphics.de/index.php
But then, without editing the path it doesn't work on php.files in a different directory. But I don't know how to fix that.
http://starlights-graphics.de/tutorials/angeleternityictut.php
What is wrong?
I appreciate any kind of help. :)
-
I think you might have partially answered yourself.
The problem might be in the path as you have changed from your
home page to a page deeper in your site.
You might want to try an absolute path (specifiy everything) in that page.
Something like this....
hhttp://starlights-graphics.de/gallery/cpmfetch/your_cpm.php (typo intentional)
At some point you could change back to a relative path - watching for errors.
A very nice way to add cpmfetch via javascript is here http://forum.coppermine-gallery.net/index.php/topic,42440.0.html (http://forum.coppermine-gallery.net/index.php/topic,42440.0.html)
-
Thank u but the error still appears when I specify the path. :(
-
The only other suggestion is from a vague recollection of trouble I once had.
Try specifying a detailed path within the cpm_fetch_.php file that you are using.
include_once "./cpg/cpmfetch/cpmfetch.php";
$objCpm = new cpm('./cpg/cpmfetch/cpmfetch_config.php');
It mught be trying to find the cpmfetch_config.php, etc within directory that your troublesome page resides in.
-
??? It just doesn't seem to work.
I now decided to not display the random pics on pages within the directory.
But further help is still appreciated. ;)