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

Avatars in Report comments

Discussion in 'Styling and Customization Questions' started by Nudaii, Feb 23, 2012.

  1. Nudaii

    Nudaii Well-Known Member

    Is it possible to add in avatars to report comments?

    Or to make it look more like a "post" layout in general?
    ragtek likes this.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> report_view

    Add the red code:

    	<xen:foreach loop="$comments" value="$comment">
    		<li class="primaryContent reportComment {xen:if '{$comment.is_moderator} || {$comment.is_admin}', reportCommentModerator}">
    			<span style="float: left; margin-right: 10px;"><xen:avatar user="$comment" size="s" /></span>
    			<xen:username user="$comment" /> <span class="muted"><xen:datetime time="$comment.comment_date" /></span>
    			<xen:if is="{$comment.state_change}"><p class="statusChange">{xen:phrase status_changed}: {$comment.stateChange}</p></xen:if>
    			<xen:if is="{$comment.message}"><blockquote>{xen:helper bodyText, $comment.message}</blockquote></xen:if>
    The result:

    Screen shot 2012-02-24 at 3.30.18 PM.png
  3. Nudaii

    Nudaii Well-Known Member

    thanks jake!

Share This Page