admin_
I try to replace a smiley in BBtool :
<a href="javascript:forum_tag(' :clap:',' ')"><img src="/smiley/mysmiley.gif" alt="*" title=":clap:" /></a>
Copy code
And it only change the smiley preview if we click smiley button, but it back to original smiley in post result.
How to replace the smiley in post result with custom smiley?
Graham
admin_ in the block {% block post_view %} under {# Get message #} where you see
{{post.body|raw}} (2 places) change it to this
{{post.body|replace({ ("http://xtgem.com/images/smilies"): "/smiley"})|raw }}
Copy code what this will do is fetch the images from your own folder
/smiley instead of xtgems the actual image names must be the same as the xtgem ones
admin_
Graham Ok thanks. I get it.
And I think also need to replace "message_parsed|raw" on preview block.
admin_
Graham I use old 28split twig with no BBtool. And I see in
http://baretest.xtgem.com/ with new twig BBtool. Im so frustated to change all div class name in my structure. Can I activate BBtool without change other my old twig?
Graham
admin_ so you want this tool to fit with original css forum or do you have your own
admin_
Graham modify css and also twig.
but i use old 28 split twig , and in the structure have different div name ( if i compare with twig from baretest ).
but i get both have same structure, but different name in their div structure.
i replace new block structure with my old twig, but its need little change to repair unmatch css ( because different div name ).