How to display minithumbs How to display minithumbs
 

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

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