Topic: SOLVED: Problem with smiles.
Hi.
I?m really confused?
I got some problems with custom smiles..
I just installed PunBB and added some ?smiles? by editing parser.php and adding them to the array. Now, the problem I have is that ONE of the smiles doesn?t want to parse correctly.
This is what I wrote in the parser.php
$smiley_text = array(':)', '=)', ':|', '=|', ':(', '=(', ':D', '=D', ':o', ':O', ';)', ':/', ':P', ':lol:', ':mad:', ':rolleyes:', ':cool:','!As', '!2s', '!3s', '!4s', '!5s', '!6s', '!7s', '!8s', '!9s', '!10s', '!Js', '!Qs', '!Ks','!Ah', '!2h', '!3h', '!4h', '!5h', '!6h', '!7h', '!8h', '!9h', '!10h', '!Jh', '!Qh', '!Kh', '!Ac', '!2c', '!3c', '!4c', '!5c', '!6c', '!7c', '!8c', '!9c', '!10c', '!Jc', '!Qc', '!Kc','!Ad', '!2d', '!3d', '!4d', '!5d', '!6d', '!7d', '!8d', '!9d', '!10d', '!Jd', '!Qd', '!Kd');
$smiley_img = array('smile.png', 'smile.png', 'neutral.png', 'neutral.png', 'sad.png', 'sad.png', 'big_smile.png', 'big_smile.png', 'yikes.png', 'yikes.png', 'wink.png', 'hmm.png', 'tongue.png', 'lol.png', 'mad.png', 'roll.png', 'cool.png','As.gif', '2s.gif', '3s.gif', '4s.gif', '5s.gif', '6s.gif', '7s.gif', '8s.gif', '9s.gif', '10s.gif', 'Js.gif', 'Qs.gif', 'Ks.gif', 'Ah.gif', '2h.gif', '3h.gif', '4h.gif', '5h.gif', '6h.gif', '7h.gif', '8h.gif', '9h.gif', '10h.gif', 'Jh.gif', 'Qh.gif', 'Kh.gif', 'Ac.gif', '2c.gif', '3c.gif', '4c.gif', '5c.gif', '6c.gif', '7c.gif', '8c.gif', '9c.gif', '10c.gif', 'Jc.gif', 'Qc.gif', 'Kc.gif', 'Ad.gif', '2d.gif', '3d.gif', '4d.gif', '5d.gif', '6d.gif', '7d.gif', '8d.gif', '9d.gif', '10d.gif', 'Jd.gif', 'Qd.gif', 'Kd.gif');
And if I do a var_dump on smiles_img and smiles_text this is the output:
array(69) {
[0]=> string(9) "smile.png"
[1]=> string(9) "smile.png"
[2]=> string(11) "neutral.png"
[3]=> string(11) "neutral.png"
[4]=> string(7) "sad.png"
[5]=> string(7) "sad.png"
[6]=> string(13) "big_smile.png"
[7]=> string(13) "big_smile.png"
[8]=> string(9) "yikes.png"
[9]=> string(9) "yikes.png"
[10]=> string(8) "wink.png"
[11]=> string(7) "hmm.png"
[12]=> string(10) "tongue.png"
[13]=> string(7) "lol.png"
[14]=> string(7) "mad.png"
[15]=> string(8) "roll.png"
[16]=> string(8) "cool.png"
[17]=> string(6) "As.gif"
[18]=> string(6) "2s.gif"
[19]=> string(6) "3s.gif"
[20]=> string(6) "4s.gif"
[21]=> string(6) "5s.gif"
[22]=> string(6) "6s.gif"
[23]=> string(6) "7s.gif"
[24]=> string(6) "8s.gif"
[25]=> string(6) "9s.gif"
[26]=> string(7) "10s.gif"
[27]=> string(6) "Js.gif"
[28]=> string(6) "Qs.gif"
[29]=> string(6) "Ks.gif"
[30]=> string(6) "Ah.gif"
[31]=> string(6) "2h.gif"
[32]=> string(6) "3h.gif"
[33]=> string(6) "4h.gif"
[34]=> string(6) "5h.gif"
[35]=> string(6) "6h.gif"
[36]=> string(6) "7h.gif"
[37]=> string(6) "8h.gif"
[38]=> string(6) "9h.gif"
[39]=> string(7) "10h.gif"
[40]=> string(6) "Jh.gif"
[41]=> string(6) "Qh.gif"
[42]=> string(6) "Kh.gif"
[43]=> string(6) "Ac.gif"
[44]=> string(6) "2c.gif"
[45]=> string(6) "3c.gif"
[46]=> string(6) "4c.gif"
[47]=> string(6) "5c.gif"
[48]=> string(6) "6c.gif"
[49]=> string(6) "7c.gif"
[50]=> string(6) "8c.gif"
[51]=> string(6) "9c.gif"
[52]=> string(7) "10c.gif"
[53]=> string(6) "Jc.gif"
[54]=> string(6) "Qc.gif"
[55]=> string(6) "Kc.gif"
[56]=> string(6) "Ad.gif"
[57]=> string(6) "2d.gif"
[58]=> string(6) "3d.gif"
[59]=> string(6) "4d.gif"
[60]=> string(6) "5d.gif"
[61]=> string(6) "6d.gif"
[62]=> string(6) "7d.gif"
[63]=> string(6) "8d.gif"
[64]=> string(6) "9d.gif"
[65]=> string(7) "10d.gif"
[66]=> string(6) "Jd.gif"
[67]=> string(6) "Qd.gif"
[68]=> string(6) "Kd.gif"
}
array(69) {
[0]=> string(2) ":)"
[1]=> string(2) "=)"
[2]=> string(2) ":|"
[3]=> string(2) "=|"
[4]=> string(2) ":("
[5]=> string(2) "=("
[6]=> string(2) ":D"
[7]=> string(2) "=D"
[8]=> string(2) ":o"
[9]=> string(2) ":O"
[10]=> string(2) ";)"
[11]=> string(2) ":/"
[12]=> string(2) ":P"
[13]=> string(5) ":lol:"
[14]=> string(5) ":mad:"
[15]=> string(10) ":rolleyes:"
[16]=> string(6) ":cool:"
[17]=> string(3) "!As"
[18]=> string(3) "!2s"
[19]=> string(3) "!3s"
[20]=> string(3) "!4s"
[21]=> string(3) "!5s"
[22]=> string(3) "!6s"
[23]=> string(3) "!7s"
[24]=> string(3) "!8s"
[25]=> string(3) "!9s"
[26]=> string(4) "!10s"
[27]=> string(3) "!Js"
[28]=> string(3) "!Qs"
[29]=> string(3) "!Ks"
[30]=> string(3) "!Ah"
[31]=> string(3) "!2h"
[32]=> string(3) "!3h"
[33]=> string(3) "!4h"
[34]=> string(3) "!5h"
[35]=> string(3) "!6h"
[36]=> string(3) "!7h"
[37]=> string(3) "!8h"
[38]=> string(3) "!9h"
[39]=> string(4) "!10h"
[40]=> string(3) "!Jh"
[41]=> string(3) "!Qh"
[42]=> string(3) "!Kh"
[43]=> string(3) "!Ac"
[44]=> string(3) "!2c"
[45]=> string(3) "!3c"
[46]=> string(3) "!4c"
[47]=> string(3) "!5c"
[48]=> string(3) "!6c"
[49]=> string(3) "!7c"
[50]=> string(3) "!8c"
[51]=> string(3) "!9c"
[52]=> string(4) "!10c"
[53]=> string(3) "!Jc"
[54]=> string(3) "!Qc"
[55]=> string(3) "!Kc"
[56]=> string(3) "!Ad"
[57]=> string(3) "!2d"
[58]=> string(3) "!3d"
[59]=> string(3) "!4d"
[60]=> string(3) "!5d"
[61]=> string(3) "!6d"
[62]=> string(3) "!7d"
[63]=> string(3) "!8d"
[64]=> string(3) "!9d"
[65]=> string(4) "!10d"
[66]=> string(3) "!Jd"
[67]=> string(3) "!Qd"
[68]=> string(3) "!Kd"
}
Looks ok to me.
But the !Ad (Ace of diamond) doesn?t parse? it just doesn?t show any image? it?s just blank.
You can see it here: http://www.luckyriver.se/forum/viewtopic.php?id=6
But I can access the gif directly http://www.luckyriver.se/forum/img/smilies/Ad.gif
It?s probably just a simple typo from my part, or something else simple I didn?t think of? But I just cant find it..
Plz help
Cheers