Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Entering album iso viewing single picture with cpm_viewLastUpdatedAlbumsFrom  (Read 3864 times)

0 Members and 1 Guest are viewing this topic.

florennes-as.be

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46

Hello all !

  First, many thanks for the creator of this fabulous module !!!
  I have to confess i tried to use it with version 1.XX without success, and lot's of tries and coffees ... V2.00 was installed really easily !!!

  I would like to show the last three albums added to a category with a thumbnail of a picture. It can be done with cpm_viewLastUpdatedAlbumsFrom
  However, when i click the thumb, it shows the picture full size. I would have preferred to show the entire album (or at least the first thumbs of the album) instead of a picture full size.

  Is it possible ? Have i missed something ?

  Thanks in advance for the clues ... ;-)

L@urent
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

Hello all !

  First, many thanks for the creator of this fabulous module !!!
  I have to confess i tried to use it with version 1.XX without success, and lot's of tries and coffees ... V2.00 was installed really easily !!!

  I would like to show the last three albums added to a category with a thumbnail of a picture. It can be done with cpm_viewLastUpdatedAlbumsFrom
  However, when i click the thumb, it shows the picture full size. I would have preferred to show the entire album (or at least the first thumbs of the album) instead of a picture full size.

  Is it possible ? Have i missed something ?

  Thanks in advance for the clues ... ;-)

L@urent

Check the options array documentation - there are codes in there to tell it how to link, or even how to make your own custom links...

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

florennes-as.be

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46

Hello !

  That's right, i found it ! I have to set the 'imagelink' setting to 'album' in the $option array.

  So, i have to add ; $options = array( 'imagelink' => 'album'); ?
  First tries were not redirecting a hit to a picture to the relevant gallery ...

  Help welcomed as i am little into php.

  Thanks !!!

L@urent
Logged

florennes-as.be

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46

Mhhh, i was a bit too quick, this works, here is the small sample ;

<?php
  include "./engine/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./engine/cpmfetch/cpmfetch_config.php");
  $options = array( 'imagelink' => 'album');
  $objCpm->cpm_viewRandomMediaFrom("",1,4,$options);
  $objCpm->cpm_close();
?>

Regards,

L@urent
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.