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: How to install CPMFetch  (Read 2969 times)

0 Members and 1 Guest are viewing this topic.

AncaGabriela_

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
How to install CPMFetch
« on: January 31, 2014, 12:40:38 pm »

Hy  sorry   for   disturb   like   this   and  sorry  for my  bad english.Look  i  follow this   tutorial http://tutorials.fanfusion.org/coppermine/how-to-install-cpmfetch/   i   install   like in  tutorial  and     now   i  have  this http://pilaloversro.celebwire.org/Photos/cpmfetch/install.php
but not  i   dont   understand   what  is  next i  whant    tu put in  sidebar   in my web please  is  urgent   i need   to open  my  webs   thanks!
Logged

AncaGabriela_

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: How to install CPMFetch
« Reply #1 on: January 31, 2014, 12:49:58 pm »

Logged

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery
Re: How to install CPMFetch
« Reply #2 on: January 31, 2014, 02:03:41 pm »

You have successfully installed cpmfetch - and the screen picture you attached gives the code you need.

Assuming you are trying to display on your homepage written in php - and your gallery is in a subdirectory named gallery, you would include:
Code: [Select]
<?php
  
include "./gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(1,4);
  
$objCpm->cpm_close();
?>

will display a row of the 4 last added pictures.

If you want a column of 4 images (you mentioned sidebar), the 3rd line would become:
Code: [Select]
  $objCpm->cpm_viewLastAddedMedia(4,1);

Does that help?
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

AncaGabriela_

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: How to install CPMFetch
« Reply #3 on: February 01, 2014, 10:30:05 pm »

i  will  try   thanks  you   for  help 
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.