XF 2.0 Latest posts

In the thread_list_macros template find
HTML:
            <div class="contentRow-minor contentRow-minor--hideLinks">
                <ul class="listInline listInline--bullet">
                    <li>{{ phrase('latest_x', {'name': $thread.last_post_cache.username}) }}</li>
                    <li><xf:date time="{$thread.last_post_date}" /></li>
                </ul>
            </div>
add above this:
HTML:
<div class="contentRow-minor">
    {{ snippet($thread.FirstPost.message, 120, {'stripBbCode': true}) }}
</div>
Change the number (120) to the desired character limit.
 
In the thread_list_macros template find
HTML:
            <div class="contentRow-minor contentRow-minor--hideLinks">
                <ul class="listInline listInline--bullet">
                    <li>{{ phrase('latest_x', {'name': $thread.last_post_cache.username}) }}</li>
                    <li><xf:date time="{$thread.last_post_date}" /></li>
                </ul>
            </div>
add above this:
HTML:
<div class="contentRow-minor">
    {{ snippet($thread.FirstPost.message, 120, {'stripBbCode': true}) }}
</div>
Change the number (120) to the desired character limit.

Ah yes, thats great thanks but the gif image was mostly for the fact the posts slide up and wanted to know how I can do that too?
 
In the thread_list_macros template find
HTML:
            <div class="contentRow-minor contentRow-minor--hideLinks">
                <ul class="listInline listInline--bullet">
                    <li>{{ phrase('latest_x', {'name': $thread.last_post_cache.username}) }}</li>
                    <li><xf:date time="{$thread.last_post_date}" /></li>
                </ul>
            </div>
add above this:
HTML:
<div class="contentRow-minor">
    {{ snippet($thread.FirstPost.message, 120, {'stripBbCode': true}) }}
</div>
Change the number (120) to the desired character limit.

we want to only change this to OP name.....will anyone share the syntax pls?

something like {'name': $thread.original_poster_cache.username}

you know what i mean? i dont think i could ever guess it hmm...
 
Back
Top Bottom