Style on images Style on images
 

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

Style on images

Started by Thawane, November 08, 2008, 05:44:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Thawane

Hey! I couldn't find a thread explaining how to put style on the images... :)
Here is my code:
<?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:
<a href="photos" class="op"><img src="lastimage" height="60" width="60" class="imgnews2"></a>
Thank you, sorry if it has already been asked...  :)

Fabricio Ferrero

A whole sticky thread already created. Always read FAQ's before posting. Cosmetic FAQ's - "How do I make it look like this..."
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

Thawane

Yes i tried it but it did not seem to work. I will try again tomorrow...

Thawane

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

Thawane

Simply, i put 2, 2 and it worked  ::) So sorry lol  ;D

Fabricio Ferrero

Thanks for coming back and mark this thread as solved.  ;)
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)