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: Style on images  (Read 5408 times)

0 Members and 1 Guest are viewing this topic.

Thawane

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Style on images
« 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...  :)
Logged

Fabricio Ferrero

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
Re: Style on images
« Reply #1 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..."
Logged
Read Docs and Search the Forum before posting. - Soporte en espaņol
--*--
Fabricio Ferrero's Website

Catching up! :)

Thawane

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Style on images
« Reply #2 on: November 08, 2008, 11:09:49 pm »

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

Thawane

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Style on images
« Reply #3 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();
?>
Logged

Thawane

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Style on images
« Reply #4 on: November 16, 2008, 10:34:10 am »

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

Fabricio Ferrero

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
Re: Style on images
« Reply #5 on: November 16, 2008, 03:08:34 pm »

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

Catching up! :)
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.