Topic: Smilies in Internet Explorer

Well, a while ago I installed EasySmilies and added a couple of smilies in different sizes to my forum. It worked great, I thought... Well, smilies won't show up in Internet Explorer anymore. They work fine in Opera & Firefox though.

I've searched but not found any solution, the problem can be seen here. At the end of the post, there are 2 smilies, only visible for non-IE users.

Re: Smilies in Internet Explorer

Might have something to do with the width and height being ""...

On a sidenote, what skin are you using? It's sw33t tongue

Re: Smilies in Internet Explorer

width="" height=""

probably that's the reason for the trouble

you either need to remove all of the width and height tag, or add special stuff to keep track of width and height of the smilies ...
(but removing them will make it not to follow the w3c standard)

4 (edited by Tartin 2006-03-20 17:59)

Re: Smilies in Internet Explorer

So, instead of

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

I should have

        $text = preg_replace("#(?<=.\W|\W.|^\W)".preg_quote($smiley_text[$i], '#')."(?=.\W|\W.|\W$)#m", '$1<img src="img/smilies/'.$smiley_img[$i].substr($smiley_img[$i], 0, strrpos($smiley_img[$i], '.')).'" />$2', $text);

Well, I tryed it but then smilies won't show at all...

Edit: Stupid me, got it to work now. Thanks!

@elbekko: The skin is called Vpun, it is avalible for download at www.punres.org