Topic: Smilies? (They're automatically resized!)
I just added my own smilies to my board but the ones that aren't exactly square are automatically resized.. I can't find it in my CSS, what am I supposed to do? Thanks so much in advance..
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → Smilies? (They're automatically resized!)
I just added my own smilies to my board but the ones that aren't exactly square are automatically resized.. I can't find it in my CSS, what am I supposed to do? Thanks so much in advance..
Open up include/parser.php and look up:
$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);
It's on line 258. Replace it with:
$message = preg_replace("#(?<=.\W|\W.|^\W)".preg_quote($smiley_text[$i], '#')."(?=.\W|\W.|\W$)#m", '$1<img src="img/smilies/'.$smiley_img[$i].'" alt="'.$smiley_text[$i].'">$2', $message);
wow, awesome. thank you so much. and you're so fast!
I gotta tell you I love PunBB. It's incredibly customizable and nice and clean.. EXACTLY what I was looking for. thank you so much for that, too
I'm blushing :)
haha well no need to be modest
eek, Kennel.. the smilies on the help page are still automatically resized.. where can I edit this? I've been looking for it myself but I can't find it, sorry..
In help.php on line 162 change:
echo ' '.$lang_help['produces'].' <img src="img/smilies/'.$cur_img.'" width="15" height="15" alt="'.$cur_text.'"><br>'."\n";
To:
echo ' '.$lang_help['produces'].' <img src="img/smilies/'.$cur_img.'" alt="'.$cur_text.'"><br>'."\n";
It works, thanks Chacmool.. can't believe I couldn't find it myself
edit btw you've got some awesome mods there! the only downside on punBB was the lack of pm and polls.. thanks so much
It works, thanks Chacmool.. can't believe I couldn't find it myself
edit btw you've got some awesome mods there! the only downside on punBB was the lack of pm and polls.. thanks so much
Thanks!
Always nice when people use the stuff you've made. It makes it much funnier to make them actually
I can imagine
PunBB Forums → PunBB 1.2 troubleshooting → Smilies? (They're automatically resized!)
Powered by PunBB, supported by Informer Technologies, Inc.