1

(5 replies, posted in PunBB 1.2 troubleshooting)

// Here you can add additional smilies if you like (please note that you must escape singlequote and backslash)
$smiley_text = array(':)', '=)', ':(', '=(', ':D', '=D', ';)', ':x', ':rolleyes:', ':scared:', ':afro:', ':blink:', ':bash:', ':cyklop:', ':gun:', ':aniolek:', ':ok:', ':down:', ':kujon:', ':oops:', ':cool:', ':eek:');
$smiley_img = array('smile.gif', 'smile.gif', 'sad.gif', 'sad.gif', 'laugh.gif', 'laugh.gif', 'wink2.gif', 'mad.gif', 'rolleyes.gif', 'scared.gif', 'afro.gif', 'blink.gif', 'bash.gif', 'cyklop.gif', 'gunsmilie.gif', 'hypocrite.gif', 'thumbsup.gif', 'thumbdown.gif', 'smartass.gif', 'oops.gif', 'cool.gif', 'eek.gif');

// Uncomment the next row if you add smilies that contain any of the characters &"'<>
//$smiley_text = array_map('pun_htmlspecialchars', $smiley_text);

Could you check is it correct?

And this is the part where I deleted

width="15" height="15"

I think it should be ok.

$num_smilies = count($smiley_text);
    for ($i = 0; $i < $num_smilies; ++$i)
        $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);

2

(5 replies, posted in PunBB 1.2 troubleshooting)

Still doesn't work - my emots are in various sizes so I deleted

width="15" height="15" ,

I also changed all pictures in parser php to my own gifs... But when I visit my forum, there are only grey squares in place, where the smilies should be...

And another strange thing - when I click the grey square and choose properties, there's something like that:

http://mysite/forum/img/smilies/happy.png

But all of my pictures defined in parser.php are gifs! So what did I wrong? I've got no idea...

3

(5 replies, posted in PunBB 1.2 troubleshooting)

Ok, thanks a lot. I'll post if it doesn't work smile

4

(5 replies, posted in PunBB 1.2 troubleshooting)

I know this topic has been probably posted for 100 times, but I'm new user of punBB and I don't know what to do:

I wanted to have a lot of smilies on my site (about 70) so I deleted those already existing in "smilies" folder and I pasted my own. But where can I define for example that ":)" smilie will appear after typing :happy: ? And how can I create javascript popup that will appear after clicking on the "smilies" link and will show all the smilies from smilies folder (clicking on each picture will insert it's signature into post which is being writter, for example after clicking at ";)" there will appear :wink: in the post... )?

TIA for answers and sorry for mistakes - English itn't my mother's tongue...:)