forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: Thawane on November 08, 2008, 05:44:26 pm

Title: Style on images
Post by: Thawane on November 08, 2008, 05:44:26 pm
Hey! I couldn't find a thread explaining how to put style on the images... :)
Here is my code:
Code: [Select]
<?php
  
include "./videos/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./videos/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(1,2);
  
$objCpm->cpm_close();
?>
I would like my pictures to be like this:
Code: [Select]
<a href="photos" class="op"><img src="lastimage" height="60" width="60" class="imgnews2"></a>Thank you, sorry if it has already been asked...  :)
Title: Re: Style on images
Post by: Fabricio Ferrero on November 08, 2008, 08:07:29 pm
A whole sticky thread already created. Always read FAQ's before posting. Cosmetic FAQ's - "How do I make it look like this..." (http://forum.coppermine-gallery.net/index.php/topic,51527.0.html)
Title: Re: Style on images
Post by: Thawane on November 08, 2008, 11:09:49 pm
Yes i tried it but it did not seem to work. I will try again tomorrow...
Title: Re: Style on images
Post by: Thawane on November 13, 2008, 07:03:57 pm
I got it, after an hour, i hadn't read the last post :p
I have another problem now, I would like the two first pics to show, then to have a <br>, then to show 2 more. Is it possible? Here is my code:
Code: [Select]
<?php
  
include "./photos/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./photos/cpmfetch/cpmfetch_config.php");
$options = array('windowtarget' => '_blank''linkstyle' => 'image');
$objCpm->cpm_viewLastAddedMedia(1,2,$options);
  
$objCpm->cpm_close();
?>
Title: Re: Style on images
Post by: Thawane on November 16, 2008, 10:34:10 am
Simply, i put 2, 2 and it worked  ::) So sorry lol  ;D
Title: Re: Style on images
Post by: Fabricio Ferrero on November 16, 2008, 03:08:34 pm
Thanks for coming back and mark this thread as solved.  ;)