1

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..

Re: Smilies? (They're automatically resized!)

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);

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3

Re: Smilies? (They're automatically resized!)

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 wink

Re: Smilies? (They're automatically resized!)

I'm blushing :)

"Programming is like sex: one mistake and you have to support it for the rest of your life."

5

Re: Smilies? (They're automatically resized!)

haha well no need to be modest wink

6

Re: Smilies? (They're automatically resized!)

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.. sad

Re: Smilies? (They're automatically resized!)

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";

8 (edited by Evie 2004-01-20 12:15)

Re: Smilies? (They're automatically resized!)

It works, thanks Chacmool.. can't believe I couldn't find it myself sad

edit btw you've got some awesome mods there! the only downside on punBB was the lack of pm and polls.. thanks so much wink

Re: Smilies? (They're automatically resized!)

Evie wrote:

It works, thanks Chacmool.. can't believe I couldn't find it myself sad

edit btw you've got some awesome mods there! the only downside on punBB was the lack of pm and polls.. thanks so much wink

Thanks! smile
Always nice when people use the stuff you've made. It makes it much funnier to make them actually smile

10

Re: Smilies? (They're automatically resized!)

I can imagine wink