1. 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

Discussion in 'Styling and Customization Questions' started by the_Predator, Sep 25, 2011.

  1. the_Predator

    the_Predator New Member

    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.
     
  2. Russ

    Russ Well-Known Member

    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.
     

    Attached Files:

    the_Predator likes this.
  3. the_Predator

    the_Predator New Member

    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?
     
  4. Russ

    Russ Well-Known Member

    Just tested on my test forum and I replied, still works :), also uploaded an image.
     
    the_Predator likes this.
  5. the_Predator

    the_Predator New Member

    Alrighty, many thanks, you've been a great help. :)
     

Share This Page