coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: lostemilie on June 12, 2009, 11:09:34 PM

Title: Gallery is a subdomain... how to use it?
Post by: lostemilie on June 12, 2009, 11:09:34 PM
Hi!
My website is http://www.90210-media.org
and my gallery is http://photo.90210-media.org.

I now installed cpmFetch and had to tweak the include to make it work on my site

<?php
  include "/home/myusername/public_html/photos/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("/home/myusername/public_html/photos/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

when I use that in wordpress it does include 4 pictures but the link to the pic and the grapics links are wrong

it goes to http://90210-media.org/img/displayimage.php?pos=-45473
instead of http://photos.90210-media.org/displayimage.php?pos=-45473

How can I change that?
I did search here but couldn“t find anything to help me...
Title: Re: Gallery is a subdomain... how to use it?
Post by: Nibbler on June 12, 2009, 11:12:21 PM
It will link to where you told it Coppermine was installed. Set the correct URL to your gallery in Coppermine's configuration panel.
Title: Re: Gallery is a subdomain... how to use it?
Post by: lostemilie on June 12, 2009, 11:16:49 PM
Thank you so much :)
I got the site from someone else and never noticed that. It works now :)
Title: Re: Gallery is a subdomain... how to use it?
Post by: phill104 on June 12, 2009, 11:32:20 PM
And thank you for coming back and resolving your thread.