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

XF 1.1 Quick Reply Avatar Missing

Discussion in 'Styling and Customization Questions' started by Amaury, Sep 26, 2013.

  1. Amaury

    Amaury Well-Known Member

    This is my own fault due to following some guidelines a while ago here to move the avatar above the username that I may have done incorrectly.

    http://i.imgur.com/rkWH84j.png

    I don't remember where the code I moved was originally, and I'm having no luck looking at an unedited message_user_info template to see where it goes.

    The style is DOTATalk 4.0, and this is the current code for message_user_info:


    PHP:
    <xen:require css="message_user_info.css" />

    <
    div class="messageUserInfo" itemscope="itemscope" itemtype="http://data-vocabulary.org/Person"
    <
    div class="messageUserBlock">
    <
    xen:if is="!{$isQuickReply}">
        <
    xen:hook name="message_user_info_text" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
            <
    h3 class="userText">
                <
    xen:username user="$useritemprop="name" rich="true" />
                <
    xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle$user}</xen:contentcheck></em></xen:if>
                <!-- 
    slotmessage_user_info_text -->
            </
    h3>
        </
    xen:hook>
        <
    xen:hook name="message_user_info_avatar" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
            <
    div class="avatarHolder">
                <
    span class="helper"></span>
                <
    xen:avatar user="$usersize="l" img="true" />
                <!-- 
    slotmessage_user_info_avatar -->
            </
    div>
        </
    xen:hook>

        <
    xen:if hascontent="true">
            <
    div class="extraUserInfo">
                <
    xen:contentcheck>
                <
    xen:hook name="message_user_info_extra" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
                    <
    xen:if is="@messageShowRegisterDate">
                        <
    dl class="pairsInline">
                            <
    dt>{xen:phrase member_since}:</dt>
                            <
    dd>{xen:date $user.register_date}</dd>
                        </
    dl>
                    </
    xen:if>
                 
                    <
    xen:if is="@messageShowMessageCount AND {$user.user_id}">
                        <
    dl class="pairsInline">
                            <
    dt>{xen:phrase message_count}:</dt>
                            <
    dd><a href="{xen:link search/member, '', 'user_id={$user.user_id}'}" class="concealed">{xen:number $user.message_count}</a></dd>
                        </
    dl>
                    </
    xen:if>
                 
                    <
    xen:if is="@messageShowTotalLikes AND {$user.user_id}">
                        <
    dl class="pairsInline">
                            <
    dt>{xen:phrase likes_received}:</dt>
                            <
    dd>{xen:number $user.like_count}</dd>
                        </
    dl>
                    </
    xen:if>
                 
                    <
    xen:if is="@messageShowTrophyPoints AND {$user.user_id}">
                        <
    dl class="pairsInline">
                            <
    dt>{xen:phrase trophy_points}:</dt>
                            <
    dd><a href="{xen:link 'members/trophies', $user}" class="OverlayTrigger concealed">{xen:number $user.trophy_points}</a></dd>
                        </
    dl>
                    </
    xen:if>
             
                    <
    xen:if is="@messageShowGender AND {$user.gender}">
                        <
    dl class="pairsInline">
                            <
    dt>{xen:phrase gender}:</dt>
                            <
    dd itemprop="gender"><xen:if is="{$user.gender} == 'male'">{xen:phrase male}<xen:else />{xen:phrase female}</xen:if></dd>
                        </
    dl>
                    </
    xen:if>
                 
                    <
    xen:if is="@messageShowOccupation AND {$user.occupation}">
                        <
    dl class="pairsInline">
                            <
    dt>{xen:phrase occupation}:</dt>
                            <
    dd itemprop="role">{xen:string censor$user.occupation}</dd>
                        </
    dl>
                    </
    xen:if>
                 
                    <
    xen:if is="@messageShowLocation AND {$user.location}">
                        <
    dl class="pairsInline">
                            <
    dt>{xen:phrase location}:</dt>
                            <
    dd><a href="{xen:link 'misc/location-info', '', 'location={xen:string censor, $user.location, '-'}'}" target="_blank" rel="nofollow" itemprop="address" class="concealed">{xen:string censor$user.location}</a></dd>
                        </
    dl>
                    </
    xen:if>
             
                    <
    xen:if is="@messageShowHomepage AND {$user.homepage}">
                        <
    dl class="pairsInline">
                            <
    dt>{xen:phrase home_page}:</dt>
                            <
    dd><a href="{xen:string censor, $user.homepage, '-'}" rel="nofollow" target="_blank" itemprop="url">{xen:string censor$user.homepage}</a></dd>
                        </
    dl>
                    </
    xen:if>
                             
                </
    xen:hook>         
                <
    xen:if is="@messageShowCustomFields AND {$user.customFields}">
                <
    xen:hook name="message_user_info_custom_fields" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
             
                    <
    xen:foreach loop="$userFieldsInfokey="$fieldIdvalue="$fieldInfo">
                        <
    xen:if is="{$fieldInfo.viewable_message}">
                            <
    xen:if hascontent="true">
                                <
    dl class="pairsInline userField_{$fieldId}">
                                    <
    dt>{xen:helper userFieldTitle$fieldId}:</dt>
                                    <
    dd><xen:contentcheck>{xen:helper userFieldValue$fieldInfo$user, {$user.customFields.{$fieldId}}}</xen:contentcheck></dd>
                                </
    dl>
                            </
    xen:if>
                        </
    xen:if>
                    </
    xen:foreach>
                 
                </
    xen:hook>
                </
    xen:if>
                </
    xen:contentcheck>
            </
    div>
        </
    xen:if>
         
    </
    xen:if>

        <
    span class="arrow"><span></span></span>
    </
    div>
    </
    div>
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Can't you just revert the template?
     
    Adam Howard likes this.
  3. Amaury

    Amaury Well-Known Member

    I've got other customizations in it from when I made the style (changing backgrounds, text colors, etc.).
     
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    You'll need to remove customizations until it returns. Your best bet would be to revert the template and manually reapply your customizations from a saved copy.
     
  5. Amaury

    Amaury Well-Known Member

    I don't think I have any saved copies, or does it do it automatically?
     
  6. Jeremy

    Jeremy XenForo Moderator Staff Member

    Before you revert, copy the template to a text file.
     
    Amaury likes this.
  7. Amaury

    Amaury Well-Known Member

    Actually, I just remembered it was unedited before this. I had completely forgotten. I used message_user_info.css for the styling, not this template, so I reverted it.

    Facepalm moment.
     

Share This Page