XF 2.0 Using a Set Default Icon for All Threads

I'm not a big fan of the dynamic avatar icons also becoming thread icons, I much prefer the more traditional forum style where you have a single newspaper style icon in front of every thread. Is there any way to do that in XenForo 2?
 

Russ

Well-known member
We have an option built into our styles that let you do this (a few display options) if you use a custom style you could check with your author to see if it exists.

However, it's easy to apply:
Template: thread_list_macros

Find:
Code:
                <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"
                        title="{{ phrase('you_have_posted_x_messages_in_this_thread', {'count': $thread.getUserPostCount() }) }}" />
                </xf:if>

Replace with:

Code:
                <i class="fa fa-newspaper-o" aria-hidden="true"></i>

Add to extra.less:
Code:
.structItem-cell.structItem-cell--icon {
    vertical-align: middle;
    text-align: center;
}

Result:

Screenshot_2.png
 
I sat a default icon in front of every thread too (actually I'm using image instead of font awesome icon), but I'd like to set a different icon for those kind of threads ''you_have_posted_x_messages_in_this_thread'' so that users could see which threads they've posted in.
Is there any way to do that?
 
Top