XF 2.3 Which template should I edit for Whatsnew/New post's avatar cell?

They use the same template via a macro. So thread_list_macros will show on the forum view + what's new + new post.

What are you trying to do?
 
I installed AndyB's Article Forums (https://xenforo.com/community/resources/article-forums.9177/) which convert avatars in thread list to thumbnails in the first post.

1727247997595.webp

I would also like to have this in What's New, etc list.

The only temp mod for this add-on is in thread_list_macros:

Replace:

Code:
        <div class="structItem-cell structItem-cell--icon">
            <div class="structItem-iconContainer">
                <xf:avatar user="$thread.User" size="s" defaultname="{$thread.username}" />
                <xf:if is="$thread.getUserPostCount()">
                    <xf:avatar user="$xf.visitor" size="s"
                        href=""
                        class="avatar--separated structItem-secondaryIcon"
                        tabindex="0"
                        data-xf-init="tooltip"
                        data-trigger="auto"
                        title="{{ phrase('you_have_posted_x_messages_in_this_thread', {'count': $thread.getUserPostCount() }) }}" />
                </xf:if>
            </div>
        </div>

with

Code:
<xf:if is="$forum">
    <xf:if is="in_array({$forum.node_id}, $xf.options.articleForumsIncludeForums)">
        <xf:css src="andy_article_forums.less" />
        <div class="article-forums">
            <xf:if is="$thread.discussion_type != 'redirect'">
                <xf:if is="{$thread.FirstPost.Attachments.first().Data.thumbnail_url}">
                    <a href="{{ link('threads' . (($thread.isUnread() AND !$forceRead) ? '/unread' : ''), $thread) }}"><img src="{$thread.FirstPost.Attachments.first().Data.thumbnail_url}"></a>
                <xf:else />   
                    <a href="{{ link('threads' . (($thread.isUnread() AND !$forceRead) ? '/unread' : ''), $thread) }}"><img src="{$xf.options.articleForumsNoImage}"></a>
                </xf:if>
            </xf:if>
        </div>
    <xf:else />
        $0
    </xf:if>
<xf:else />
    $0
</xf:if>

so I wonder if I can change something in templates and get what I want.
 
If I had to guess, the conditional is causing it to only load in the forum view:

<xf:if is="$forum">

You need to reach out to him directly on his site or the resource thread.
 
Back
Top Bottom