Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Smileys  (Read 13124 times)

0 Members and 1 Guest are viewing this topic.

ziolko

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Smileys
« on: November 22, 2003, 08:30:58 pm »

Hello.

Ive changed smileys to non standard, some of them are not 15x15 images, but they are displayed as 15x15 and it sux.
Actually Im trying to modify smileys.inc.php
Quote
<td width="5%"><a href="javascript:emoticon_' . $form . '(\'' . $smiley[0] . '\')"><img src="images/smiles/' . $smiley[1] . '" alt="' . $caption . '" width="15" height="15" border="0" title="' . $caption . '"></a></td>
When I change width and height to "100%" smileys are not displayed at all.
Anybody knows how to fix it ?

--
Sorry for my English.
« Last Edit: November 17, 2007, 03:52:43 pm by Frantz »
Logged

ziolko

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Smileys
« Reply #1 on: November 22, 2003, 10:37:39 pm »

:D  Problem solved by deleting "width=" "height="
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Smileys
« Reply #2 on: November 23, 2003, 02:02:42 am »

width and height attributes in <img>-tags can never be "%", they're always numbers (in pixels). You can only specify % values in tables (and in fact some other html tags as well). If your smileys are all the same size, you should have the width and height attributes, makes your page look nicer during loading (and is more standards compliant as well).
[This statement does of course not only apply to coppermine, as it's html-related]

GauGau
Logged

LeaX

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 96
    • Lost Jack and Kate
Re: Smileys
« Reply #3 on: November 17, 2007, 03:20:17 pm »

And what if they'are of different size? (though not big at all - about 21*20, 23*20, 26*20?
So what should I do to make each of them look good?
Logged

LeaX

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 96
    • Lost Jack and Kate
Re: Smileys
« Reply #4 on: November 17, 2007, 03:33:09 pm »

Oh I've got it so no need to explain.
Logged

LeaX

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 96
    • Lost Jack and Kate
Re: Smileys
« Reply #5 on: November 17, 2007, 03:35:08 pm »

Though here it is a very good pack of mini smiles for a gallery.
They're really cool.
I wish they were here in this forum.
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Smileys
« Reply #6 on: November 17, 2007, 03:51:40 pm »

@leaX
your posts have nothin to do with this very old post.
Please next time post in the right board.
locking this thread
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.