XF 2.1 NewsFeed render() method

eggsy

Member
Hi everyone,


I've made an add-on where I've got a few templates. I'm building a new page for my forum. I've got the NewsFeed items in the template. I've found the macro with the part of the code that outputs on the regular /whats-new/latest-activity page. Here it is:

Code:
<xf:macro name="feed_item" arg-item="!">
    <div class="contentRow">
        <span class="contentRow-figure">
            <xf:avatar user="$item.User" size="s" defaultname="{$item.username}" />
        </span>
        <div class="contentRow-main">
            {{$item.render()|raw}}
        </div>
    </div>
</xf:macro>

As you can see, it outputs the content of the NewsFeed item with the render() method. It works fine, however, it does not convert the smilies, it outputs the smiley code, for example:

Code:
:rolleyes: :p :D :sleep: :ROFLMAO: :(

Is there a way to output the content with smilies converted, without much hassle. There is a bb_code() template function which I'm using to output Thread content with smilies converted and it works fine, but accepts 3 arguments, and I can't use it with render() method in NewsFeed.
 
Back
Top Bottom