Topic: Smiley Size

I just added a new set of smilies, but they are varying sizes, all larger than 15px.  Where can I change the size, and is there a way to just remove to completely in order for them all to show correctly?

2 (edited by Falconey 2004-06-10 21:58)

Re: Smiley Size

Look into include/parser.php

Around line 250 you should see the part where smilies are parsed to images. Change or delete the width and height elements.

This part, around line 260:

$message = preg_replace("#(?<=.\W|\W.|^\W)".preg_quote($smiley_text[$i], '#')."(?=.\W|\W.|\W$)#m", '$1<img src="img/smilies/'.$smiley_img[$i].'" width="15" height="15" alt="'.$smiley_text[$i].'">$2', $message);

Edit:
in help.php edit this line (162):

echo ' '.$lang_help['produces'].' <img src="img/smilies/'.$cur_img.'" width="15" height="15" alt="'.$cur_text.'"><br>'."\n";

Re: Smiley Size

Thank you very much. smile

4 (edited by nuuskamuikkunen 2006-02-05 12:43)

Re: Smiley Size

Just wondering; why are html attributes width & height used, and not css properties in a style sheet somewhere?

Update: And I think that vertical-align: text-bottom should be added to that style sheet too.
See http://punbb.org/forums/viewtopic.php?id=9205