• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Replacing user avatar with icons

#1
Hello,
I'm curious as to how I could replace the user avatars in the thread listing with your usual new posts / no new posts icons?

I know that I can remove the avatars by changing them to display:none; but that just leaves an empty space, not really useful either.

Thanks in advance.
 

Russ

Well-known member
#2
Hello,
I'm curious as to how I could replace the user avatars in the thread listing with your usual new posts / no new posts icons?

I know that I can remove the avatars by changing them to display:none; but that just leaves an empty space, not really useful either.

Thanks in advance.
You could try this: in the template thread_list_item

Find:
Code:
    <div class="listBlock posterAvatar">
        <span class="avatarContainer">
            <xen:avatar user="$thread" size="s" img="true" />
            <xen:if is="{$thread.user_post_count}"><xen:avatar user="$visitor" size="s" img="true" class="miniMe" title="{xen:phrase you_have_posted_x_messages_in_this_thread, 'count={xen:number $thread.user_post_count}'}" /></xen:if>
        </span>
    </div>
Replace:
Code:
<div class="listBlock posterAvatar">
    <span class="avatarContainer">
        <xen:if is="{$thread.isNew}">
        <img src="http://seastriper.com/forums/images/statusicon/forum_new.gif">
        <xen:else />
        <img src="http://seastriper.com/forums/images/statusicon/forum_old.gif">
        </xen:if>
    </span>
</div>
You'll have to mess with the spacing on them a bit but that should get you started.
 

Attachments

#3
Thanks a lot, that ought to get the job done with some tinkering... however, does isNew only check if the thread itself is new or if there are new posts?