Warning: The author of this contribution does not provide support for it anymore.

Avatar of poster on Index and Viewforum

Double Avatars Showing - Avatar of poster on Index and Viewforum

Double Avatars Showing

by clove28 » Tue May 27, 2014 9:06 am

Hi. I installed this mod but there are two avatars showing. Where can I edit to make it single?
double avatar.JPG
clove28
Registered User
Posts: 97
Joined: Mon Apr 21, 2014 11:00 am

Re: Double Avatars Showing

by clove28 » Tue May 27, 2014 8:10 pm

I hope someone could help me with this problem.. :(
clove28
Registered User
Posts: 97
Joined: Mon Apr 21, 2014 11:00 am

Re: Double Avatars Showing

by 5hocK » Tue May 27, 2014 9:09 pm

Double avatars would mean double code (double anything means somethings been added twice)
What edits have you checked?
5hocK
Registered User
Posts: 3148
Joined: Wed Nov 23, 2011 7:00 pm
Location: UK

Re: Double Avatars Showing

by clove28 » Wed May 28, 2014 8:16 am

I installed this mod using automod and I edited 2 files manually. viewforum_body.html and forumlist_body.html. I checked both files and they only have single code for this mod.

Here's for the part in forumlist_body.html

Code: Select all

<!-- ELSEIF not forumrow.S_IS_LINK -->
               <dd class="topics">{forumrow.TOPICS} <dfn>{L_TOPICS}</dfn></dd>
               <dd class="posts">{forumrow.POSTS} <dfn>{L_POSTS}</dfn></dd>
               <!-- BEGIN reput -->
                  <!-- IF forumrow.reput.S_THANKS_FORUM_REPUT_VIEW and not S_IS_BOT  and forumrow.reput.S_THANKS_FORUM_REPUT_VIEW_COLUMN -->      
                  <dd style="display: block; width: {forumrow.reput.THANKS_REPUT_GRAPHIC_WIDTH};">
                     <!-- IF  forumrow.reput.FORUM_REPUT -->   
                     <span style="display: block;">{forumrow.reput.FORUM_REPUT}
                        <!-- IF forumrow.reput.S_THANKS_REPUT_GRAPHIC -->
                        <span style="display: block; width: {forumrow.reput.THANKS_REPUT_GRAPHIC_WIDTH}; height: {forumrow.reput.THANKS_REPUT_HEIGHT}; background: url({forumrow.reput.THANKS_REPUT_IMAGE_BACK}); background-repeat: repeat-x;"><span style="display: block; height: {forumrow.reput.THANKS_REPUT_HEIGHT}; width: {forumrow.reput.FORUM_REPUT}; background: url({forumrow.reput.THANKS_REPUT_IMAGE}); background-repeat: repeat-x;">&nbsp;</span></span>
                        <!-- ENDIF -->
                     </span><dfn>{L_REPUT}</dfn>   
                     <!-- ENDIF -->
                  </dd>   
                  <!-- ENDIF -->
               <!-- END reput -->                  
               <dd class="lastpost<!-- IF forumrow.S_THANKS_FORUM_REPUT_VIEW_COLUMN and not S_IS_BOT --> lastpostthanks<!-- ENDIF -->"><!-- IF forumrow.FORUM_LAST_POSTER_AVATAR --><div style="float: left; padding-top: 0px; margin-left: 5px; margin-right: {forumrow.FORUM_LAST_POSTER_AVATAR_MARGIN}px;">{forumrow.FORUM_LAST_POSTER_AVATAR}</div><!-- ENDIF --><span>
                  <!-- IF forumrow.U_UNAPPROVED_TOPICS --><a href="{forumrow.U_UNAPPROVED_TOPICS}">{UNAPPROVED_IMG}</a><!-- ENDIF -->
                  <!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn> <!-- IF forumrow.S_AUTH_READ --><!-- IF not S_IS_BOT --><!-- IF S_LTT_ICONS && forumrow.TOPIC_ICON_IMG --><img src="{T_ICONS_PATH}{forumrow.TOPIC_ICON_IMG}" width="{forumrow.TOPIC_ICON_IMG_WIDTH}" height="{forumrow.TOPIC_ICON_IMG_HEIGHT}" alt="" /> <!-- ENDIF --><a href="<!-- IF S_LTT == 1 -->{forumrow.U_LAST_POST}<!-- ELSEIF S_LTT == 2 -->{forumrow.U_NEWEST_POST}<!-- ELSE -->{forumrow.U_FIRST_POST}<!-- ENDIF -->" title="{forumrow.LATEST_TOPIC_TITLE_FULL}">{forumrow.LATEST_TOPIC_TITLE_SHORT}</a><!-- ENDIF --><br />{L_POST_BY_AUTHOR} {forumrow.LAST_POSTER_FULL}
                  <!-- IF not S_IS_BOT --><!-- IF S_LTT != 1 --><a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a> <!-- ENDIF --><!-- ENDIF --><br />{forumrow.LAST_POST_TIME}<!-- ELSE -->{L_SORRY_AUTH_READ}<!-- ENDIF --><!-- ELSE -->{L_NO_POSTS}<br />&nbsp;<!-- ENDIF --></span>
               </dd>
            <!-- ENDIF -->


Here's the part for viewforum_body.html

Code: Select all

      <li class="row<!-- IF topicrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- IF topicrow.S_POST_GLOBAL --> global-announce<!-- ENDIF --><!-- IF topicrow.S_POST_ANNOUNCE --> announce<!-- ENDIF --><!-- IF topicrow.S_POST_STICKY --> sticky<!-- ENDIF --><!-- IF topicrow.S_TOPIC_REPORTED --> reported<!-- ENDIF -->">
         <dl class="<!-- BEGIN reput --><!-- IF topicrow.reput.S_THANKS_TOPIC_REPUT_VIEW_COLUMN and not S_IS_BOT -->thanks<!-- ELSE -->icon<!-- ENDIF --><!-- END reput -->" style="background-image: url({topicrow.TOPIC_FOLDER_IMG_SRC}); background-repeat: no-repeat;">
            <dt<!-- IF topicrow.TOPIC_ICON_IMG and S_TOPIC_ICONS --> style="background-image: url({T_ICONS_PATH}{topicrow.TOPIC_ICON_IMG}); background-repeat: no-repeat;"<!-- ENDIF --> id="t{topicrow.TOPIC_ID}" title="<!-- IF topicrow.TOPIC_PREVIEW_TEXT -->{topicrow.TOPIC_PREVIEW_TEXT}<!-- ELSE -->{topicrow.TOPIC_FOLDER_IMG_ALT}<!-- ENDIF -->"><!-- IF topicrow.TOPIC_FIRST_POSTER_AVATAR --><span style="float: left; padding-top: 3px; margin-right: {topicrow.TOPIC_FIRST_POSTER_AVATAR_MARGIN}px;">{topicrow.TOPIC_FIRST_POSTER_AVATAR}</span><!-- ENDIF --><!-- IF topicrow.S_UNREAD_TOPIC --><a href="{topicrow.U_NEWEST_POST}">{NEWEST_POST_IMG}</a> <!-- ENDIF --><a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>
               <!-- IF topicrow.S_TOPIC_UNAPPROVED or topicrow.S_POSTS_UNAPPROVED --><a href="{topicrow.U_MCP_QUEUE}">{topicrow.UNAPPROVED_IMG}</a> <!-- ENDIF -->
               <!-- IF topicrow.S_TOPIC_REPORTED --><a href="{topicrow.U_MCP_REPORT}">{REPORTED_IMG}</a><!-- ENDIF --><br />
               <!-- IF topicrow.PAGINATION --><strong class="pagination"><span>{topicrow.PAGINATION}</span></strong><!-- ENDIF -->
               <!-- IF topicrow.ATTACH_ICON_IMG -->{topicrow.ATTACH_ICON_IMG} <!-- ENDIF -->{L_POST_BY_AUTHOR} {topicrow.TOPIC_AUTHOR_FULL} &raquo; {topicrow.FIRST_POST_TIME}
               <!-- BEGIN reput -->
                  <!-- IF topicrow.reput.S_THANKS_TOPIC_REPUT_VIEW and topicrow.reput.TOPIC_REPUT and not S_IS_BOT  and not topicrow.reput.S_THANKS_TOPIC_REPUT_VIEW_COLUMN -->
                  <span style="display: block;">
                     <!-- IF topicrow.reput.S_THANKS_REPUT_GRAPHIC -->
                     <span style="display: block; float: left; width: {topicrow.reput.THANKS_REPUT_GRAPHIC_WIDTH}; height: {topicrow.reput.THANKS_REPUT_HEIGHT}; background: url({topicrow.reput.THANKS_REPUT_IMAGE_BACK}); background-repeat: repeat-x;"><span style="display: block; height: {topicrow.reput.THANKS_REPUT_HEIGHT}; width: {topicrow.reput.TOPIC_REPUT}; background: url({topicrow.reput.THANKS_REPUT_IMAGE}); background-repeat: repeat-x;"></span></span>&nbsp;
                     <!-- ENDIF -->
                  {L_REPUT}:&nbsp;{topicrow.reput.TOPIC_REPUT}
                  </span>
                  <!-- ENDIF -->
               <!-- END reput -->
            </dt>
            <dd class="posts">{topicrow.REPLIES} <dfn>{L_REPLIES}</dfn></dd>
            <dd class="views">{topicrow.VIEWS} <dfn>{L_VIEWS}</dfn></dd>
               <!-- BEGIN reput -->
                  <!-- IF topicrow.reput.S_THANKS_TOPIC_REPUT_VIEW and not S_IS_BOT  and topicrow.reput.S_THANKS_TOPIC_REPUT_VIEW_COLUMN -->      
                  <dd style="display: block; width: {topicrow.reput.THANKS_REPUT_GRAPHIC_WIDTH};">
                     <!-- IF  topicrow.reput.TOPIC_REPUT -->   
                     <span style="display: block;">{topicrow.reput.TOPIC_REPUT}
                        <!-- IF topicrow.reput.S_THANKS_REPUT_GRAPHIC -->
                        <span style="display: block; width: {topicrow.reput.THANKS_REPUT_GRAPHIC_WIDTH}; height: {topicrow.reput.THANKS_REPUT_HEIGHT}; background: url({topicrow.reput.THANKS_REPUT_IMAGE_BACK}); background-repeat: repeat-x;"><span style="display: block; height: {topicrow.reput.THANKS_REPUT_HEIGHT}; width: {topicrow.reput.TOPIC_REPUT}; background: url({topicrow.reput.THANKS_REPUT_IMAGE}); background-repeat: repeat-x;">&nbsp;</span></span>
                        <!-- ENDIF -->
                     </span><dfn>{L_REPUT}</dfn>   
                     <!-- ENDIF -->
                  </dd>            
                  <!-- ENDIF -->
               <!-- END reput -->            
            <dd class="lastpost<!-- BEGIN reput --><!-- IF topicrow.reput.S_THANKS_TOPIC_REPUT_VIEW_COLUMN and not S_IS_BOT --> lastpostthanks<!-- ENDIF --><!-- END reput -->"><!-- IF topicrow.TOPIC_LAST_POSTER_AVATAR --><div style="float: left; padding-top: 0px; margin-left: 5px; margin-right: {topicrow.TOPIC_LAST_POSTER_AVATAR_MARGIN}px;">{topicrow.TOPIC_LAST_POSTER_AVATAR}</div><!-- ENDIF --><span><dfn>{L_LAST_POST} </dfn>{L_POST_BY_AUTHOR} {topicrow.LAST_POST_AUTHOR_FULL}
               <!-- IF not S_IS_BOT --><a href="{topicrow.U_LAST_POST}">{LAST_POST_IMG}</a> <!-- ENDIF --><br />{topicrow.LAST_POST_TIME}</span>
            </dd>
         </dl>
         <!-- IF topicrow.TOPIC_PREVIEW_TEXT and S_JQUERY_TOPIC_PREVIEW -->
            <div id="topic_preview_t{topicrow.TOPIC_ID}" style="display:none;">
               <!-- IF topicrow.TOPIC_PREVIEW_TEXT2 --><strong>{L_FIRST_POST}</strong><hr /><!-- ENDIF -->
               <!-- IF topicrow.TOPIC_PREVIEW_AVATAR --><div class="topic_preview_avatar">{topicrow.TOPIC_PREVIEW_AVATAR}</div><!-- ENDIF -->
               <div class="topic_preview_text_first"></div>
               <!-- IF topicrow.TOPIC_PREVIEW_TEXT2 -->
                  <div class="topic_preview_break"></div>
                  <strong>{L_LAST_POST}</strong><hr />
                  <!-- IF topicrow.TOPIC_PREVIEW_AVATAR2 --><div class="topic_preview_avatar">{topicrow.TOPIC_PREVIEW_AVATAR2}</div><!-- ENDIF -->
                  <div class="topic_preview_text_last">{topicrow.TOPIC_PREVIEW_TEXT2}</div>
               <!-- ENDIF -->
            </div>
         <!-- ENDIF -->
      </li>


I can't figure out which line shows 2 avatars. :D Thank you for your help 5hock! ;)
clove28
Registered User
Posts: 97
Joined: Mon Apr 21, 2014 11:00 am