CPMFetch Doesn't Display Images Within Template, but Does on Install CPMFetch Doesn't Display Images Within Template, but Does on Install
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

CPMFetch Doesn't Display Images Within Template, but Does on Install

Started by grafx77, June 04, 2008, 11:34:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

grafx77

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.

capecodgal

From the sticked post on cosmetic FAQ's: 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

grafx77

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?

Pascal YAP


grafx77

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.

grafx77

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.

poubao

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
L'incohérence de ceux qui nous dirigent, l'incompétence de ceux qui nous commandent,sont un vibrant hommage pour ceux qui exécutent.
                                          **Général Patton**

grafx77

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 .