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 display minithumbs  (Read 3326 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.117 seconds with 20 queries.