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

XF 1.5 Anyway to exclude specific text from smiley replacements?

Kevin

Well-known member
#1
Even if I have to change some hard-coding, is there a way of excluding specific text from being picked up by the smiley replacements?

In particular, every time I try to write ST:DS9 it comes out as ST:DS9. D'oh! Rather than change the default 'big grin' replacement I'd rather jury rig it to skip that one particular text.
 

Mike

XenForo developer
Staff member
#2
I was going to say you could use plain tags, but you actually did that in your post... :)

That's really the only option. There isn't anything automatic.
 

Kevin

Well-known member
#3
I was going to say you could use plain tags, but you actually did that in your post... :)

That's really the only option. There isn't anything automatic.
Mike, thanks. Any chance of there being a quick & dirty hard-coded edit I could do to exclude a specific string from being replaced?
 

Chris D

XenForo developer
Staff member
#5
Mike, thanks. Any chance of there being a quick & dirty hard-coded edit I could do to exclude a specific string from being replaced?
I've got a cheat for you.

Use the Censoring system.

Word:
ST:DS9

Replacement:
ST∶DS9

In the replacement, the ∶ character is a colon, but it's a slightly different colon - it's used in ratios. Somewhat indistinguishable but essentially the censoring happens before the smilie replacement so it prevents it from being rendered as a smilie.
 

Kevin

Well-known member
#6
I've got a cheat for you.

Use the Censoring system.

Word:
ST:DS9

Replacement:
ST∶DS9

In the replacement, the ∶ character is a colon, but it's a slightly different colon - it's used in ratios. Somewhat indistinguishable but essentially the censoring happens before the smilie replacement so it prevents it from being rendered as a smilie.
Nice! I just tried it out and that works perfectly, thank you. :D