• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 smilie overloading

briansol

Active member
#1
I have 2 smilies,

one is
Code:
:p
the other is
Code:
:pop:
pop never works, I get psmilieOP:

is there a way to make both of these work without changing : p ?
 

briansol

Active member
#3
yeah, i'd like to keep it though. I have many others like : D , : P : J etc that basically kill half the alphabet.

it's almost like the regular expression match needs a $ end check too
 

Mike

XenForo developer
Staff member
#4
I can't reproduce this. It should always look for the longest match first. If you remove the :p smiley, can you confirm that :pop: works as expected?
 

briansol

Active member
#5
Further testing, it seems to fail only on one that has numbers in it. I used pop here only has a quick example.

:ph34r: is one we use... and it won't come out right. but :popcorn: does indeed render proper
 

Mike

XenForo developer
Staff member
#6
Sorry, I still can't reproduce this and I don't see any reason for the numbers to make a difference.
 

briansol

Active member
#7
I finally figured this out... apparently it doesn't work well when you have two :codes: on one line.

hitting enter between them enabled it. :X