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: Display mini thumbs with cpmFetch?  (Read 5929 times)

0 Members and 1 Guest are viewing this topic.

Sunnefa

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Display mini thumbs with cpmFetch?
« on: February 20, 2008, 01:38:46 am »

Hi, thanks for an awesome add on to Coppermine  :)
I have it installed on my site, and I managed to make cpmFetch fetch info from two different installations of Cpm  ;D
But what I want to know now is: Can I make cpmFetch display minithumbs (as made with the modpack from Stramm) instead of regular thumbs?
Is it something I'd have to edit in cpmFetch itself or is it something I'd put into the code I put on my site to display the pics?
Here's the code I'm using to fetch images now:

Code: [Select]
<?php 
$objCpm 
= new cpm("./cpmfetch/cpmfetch_config.php");
$options = array('imagewidth' => '80''windowtarget' => '_blank''imagelink' => 'album');
$objCpm->cpm_viewLastAddedMedia(2,2,$options);

I know that I can always decrease the "imagewidth" value, but that makes the pictures look all resized and blurred...
Logged

dwo

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 143
Re: Display mini thumbs with cpmFetch?
« Reply #1 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
Logged
Pages: [1]   Go Up
 

Page created in 0.038 seconds with 19 queries.