How to display minithumbs How to display minithumbs
 

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]

Main Menu

How to display minithumbs

Started by cohassetsteve, March 18, 2009, 11:39:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cohassetsteve

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

Quote from: dwo on June 25, 2008, 02:23:35 PM
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!

cohassetsteve

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

<?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(); 
?>