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

Display smilies in xen:helper snippets?

Discussion in 'XenForo Development Discussions' started by RichardKYA, Mar 4, 2016.

  1. RichardKYA

    RichardKYA Well-Known Member

    I'm trying to do this and I can get so far, but it's not being parsed and the they show up as <img> tags instead.

    Anyone have any idea how to do this?

    Thank you :)
  2. Jake B.

    Jake B. Well-Known Member

    Snippets strip out all styling and BB Code, so I don't think that's possible :\ Or is it a custom helper you're making?
  3. RichardKYA

    RichardKYA Well-Known Member

    Well at the moment I'm just having a play with the Helper/Core.php to try and see what works, I can get snippets to display html <img> tags in place of :example-smilie: but that's as far as I can get. I've tried adding "xen:raw" to the template, eg:
    {xen:helper snippet, {xen:raw $post.message}, 100}
    , but that doesn't work - Honestly not even sure if that can be done either :cautious:

Share This Page