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: How to display minithumbs  (Read 3930 times)

0 Members and 1 Guest are viewing this topic.

cohassetsteve

  • Tester
  • Coppermine newbie
  • *
  • Offline Offline
  • Posts: 4
How to display minithumbs
« on: March 18, 2009, 11:39:30 pm »

I am using 2.2.1 (I know, no support [gulp]). I would like to display a block of 2 rows and 2 columns of mini  thumbs in a Drupal block. I found a 1 year old post that explains how to do this but [gulp] I'm not using the version that is referenced

HI.

easy.

Mini thumbs have the prefix _mini.

So, we need to change "thumb" into "mini" in cpmfetch.php at line 1546 and cpmfetchdao 266

Now, when you sort by thumbs, the minis are displayed.

regards, Dietmar

Those line numbers don't correspond to my version, does anybody have the correct line numbers to change?

Thanks
Steve

BTW, thanks to the author for a nice addition to CPG!
Logged

cohassetsteve

  • Tester
  • Coppermine newbie
  • *
  • Offline Offline
  • Posts: 4
Re: How to display minithumbs
« Reply #1 on: March 18, 2009, 11:49:29 pm »

In my previous post I neglected to show the code that I am using here it is...
My site is at http:\\www.cohassetsteve.com

Code: [Select]
<?php
  
include_once "../cpg/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("../cpg/cpmfetch/cpmfetch_config.php");
  
$options = array("subtitle" => "File name : {{pFilename}}");
  
$objCpm->cpm_viewRandomMediaFrom("",31$options);
  
$objCpm->cpm_close(); 
?>
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 21 queries.