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?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → 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?
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";
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
PunBB Forums → PunBB 1.2 troubleshooting → Smiley Size
Powered by PunBB, supported by Informer Technologies, Inc.