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: Can i tidy this up? (different shaped thumbs)  (Read 3930 times)

0 Members and 1 Guest are viewing this topic.

The_blue

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Can i tidy this up? (different shaped thumbs)
« on: February 22, 2010, 05:57:11 pm »

Afternoon all.

This is my clubs website.
http://ccgi.theblue.plus.com/CSAC_website/

We are using CPMfetch to load thumbs onto the right.

I'm having trouble working out how to stop any portrait shaped thumbs being used. The issue is that the 5 pictures being pulled are causing the depth to change. 5 landscape ones wouldn't.

I'm using a basic code.

Code: [Select]
<center><?php
include_once "../cpg1414/cpmfetch/cpmfetch.php"
  
$objCpm = new cpm("../cpg1414/cpmfetch/cpmfetch_config.php");
  
$options = array('windowtarget' => '_parent');
  
$objCpm->cpm_viewRandomMediaFrom("cat=1,2,3,4,5",51$options);
  
$objCpm->cpm_close(); 
?>
</center>


Is it possible to make the thumbs an even size?
Logged

The_blue

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Can i tidy this up? (different shaped thumbs)
« Reply #1 on: February 22, 2010, 06:07:16 pm »

You wouldn't belive it but 5 mins later and i've done it!

Code: [Select]
$options = array('windowtarget' => '_parent',"imageheight"=>"112","imagewidth"=>"150",);
Been looking for an answer for 2 days :(
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Can i tidy this up? (different shaped thumbs)
« Reply #2 on: February 23, 2010, 07:13:51 am »

Thanks for returning and properly resolving your thread. I wish everybody would do that.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.