coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: grafx77 on June 04, 2008, 11:34:41 AM

Title: CPMFetch Doesn't Display Images Within Template, but Does on Install
Post by: grafx77 on June 04, 2008, 11:34:41 AM
I installed CPMFetch 2.0 successfully from the install.php file and my coppermine images are showing up properly within that page, but whenever I implement the code that is suggested to me on install page into my template (index.php) page, nothing shows up. I have used both codes:

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



and this one:

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



Nothing works. I just can't understand why my gallery images are showing up on the install.php page, but not my template??  ???

P.S. - I have been messing with this for hours and have checked the boards here, but have yet to find an answer.
Title: Re: CPMFetch Doesn't Display Images Within Template, but Does on Install
Post by: capecodgal on June 10, 2008, 11:23:39 PM
From the sticked post on cosmetic FAQ's: http://forum.coppermine-gallery.net/index.php/topic,51527.0.html (http://"http://forum.coppermine-gallery.net/index.php/topic,51527.0.html")


Depending on the setup of your server you will need to adjust the cpg directory to say gallery or photos or whatever you have named your cpg folder. Also the path may need to be adjusted if this example is not working for you. Some paths I have had to use include:



./cpg/cpmfetch/cpmfetch.php

or


/cpg/cpmfetch/cpmfetch.php

or


/home/ftp user/cpg/cpmfetch/cpmfetch.php

or if you are on a Windows server


C:\\inetpub\\wwwroot\\website\\cpg\\cpmfetch\\cpmfetch.php






In your first example you are indicating the folder cpmfetch is inside of the main website I believe; the second example may be correct on some servers but on others I was forced to use the /home/ftp user/ path..... try that one and see if it helps
Title: Re: CPMFetch Doesn't Display Images Within Template, but Does on Install
Post by: grafx77 on June 11, 2008, 11:14:35 AM
Thanks for your help, but none of the suggestions worked.  :-[  I input the absolute url, but this did not work. My cpmfetch folder is located within my gallery folder (cpg folder), so the relative URL is correct above in my example. I can't figure out why it isn't displaying within my template.

Here is the URL to my install page: http://largedogbreedz.com/gallery/cpmfetch/install.php

Just click on the the link "Click here to run the install [OPTIONAL]" on that page and you will see that my gallery images do show up.

Have any other suggestions?
Title: Re: CPMFetch Doesn't Display Images Within Template, but Does on Install
Post by: Pascal YAP on June 11, 2008, 12:13:51 PM
@ grafx77

Open this URL to see what's running !
http://largedogbreedz.com/gallery/cpmfetch/screen.php
Everything seem to be OK in my opinion !

PYAP
Title: Re: CPMFetch Doesn't Display Images Within Template, but Does on Install
Post by: grafx77 on June 17, 2008, 04:06:09 AM
Yeah....thats why I am stumped in the first place  ??? When implementing any one of the codes found on that page into my template (index.php) page...nothing shows up! Again...more help would be great.
Title: Re: CPMFetch Doesn't Display Images Within Template, but Does on Install
Post by: grafx77 on June 23, 2008, 10:56:40 AM
Ok....I am not willing to pay anyone who can get this working for me on my site $10 US dollars via Paypal. If interested, let me know.
Title: Re: CPMFetch Doesn't Display Images Within Template, but Does on Install
Post by: poubao on June 23, 2008, 06:51:05 PM
Where do you want to show your pics, on the index of cpg, or in a another web site.
If you want on your index of Coppermine, use a anycontent file.
On a another web site, change your path
Poubao :D
Title: Re: CPMFetch Doesn't Display Images Within Template, but Does on Install
Post by: grafx77 on June 23, 2008, 11:53:47 PM
On the website it resides on. This is already stated above! My site is largedogbreedz.com. My gallery is integrated within the site: largedogbreedz.com/gallery .