Advanced search  

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]

Pages: [1]   Go Down

Author Topic: CPMFetch Doesn't Display Images Within Template, but Does on Install  (Read 8221 times)

0 Members and 1 Guest are viewing this topic.

grafx77

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24

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:

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


and this one:

Code: [Select]
<?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.
Logged

capecodgal

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 123
Re: CPMFetch Doesn't Display Images Within Template, but Does on Install
« Reply #1 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


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:

Code: [Select]

./cpg/cpmfetch/cpmfetch.php
or
Code: [Select]

/cpg/cpmfetch/cpmfetch.php
or
Code: [Select]

/home/ftp user/cpg/cpmfetch/cpmfetch.php
or if you are on a Windows server
Code: [Select]

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
Logged

grafx77

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: CPMFetch Doesn't Display Images Within Template, but Does on Install
« Reply #2 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?
Logged

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: CPMFetch Doesn't Display Images Within Template, but Does on Install
« Reply #3 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
Logged

grafx77

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: CPMFetch Doesn't Display Images Within Template, but Does on Install
« Reply #4 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.
Logged

grafx77

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: CPMFetch Doesn't Display Images Within Template, but Does on Install
« Reply #5 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.
Logged

poubao

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: la
  • Offline Offline
  • Gender: Male
  • Posts: 277
    • Collections du Laos
Re: CPMFetch Doesn't Display Images Within Template, but Does on Install
« Reply #6 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
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: CPMFetch Doesn't Display Images Within Template, but Does on Install
« Reply #7 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 .
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 16 queries.