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

XF 1.5 Duplicate Blocks in Sidebar

#1
Just upgraded to XF 1.5 and for some reason I'm now getting duplicate blocks in the sidebar on our forum list page. Specifically, 'Staff Online Now' and 'Members Online Now' appear twice, separated vertically by a recent posts block. Any suggestions on how to fix greatly appreciated.
 

wang

Well-known member
#6
Can you please post here the contents of the forum_list template for the style that you are using as default?
 
#7
Thanks @wang , here it is...

<xen:h1>{$xenOptions.boardTitle}</xen:h1>

<xen:container var="$head.canonical"><link rel="canonical" href="{xen:link 'canonical:forums'}" /></xen:container>
<xen:if is="{$xenOptions.boardDescription}"><xen:container var="$head.description">
<meta name="description" content="{$xenOptions.boardDescription}" /></xen:container></xen:if>
<xen:container var="$head.openGraph">
<xen:include template="open_graph_meta">
<xen:set var="$url">{xen:link 'canonical:forums'}</xen:set>
<xen:set var="$title">{$xenOptions.boardTitle}</xen:set>
<xen:set var="$description">{$xenOptions.boardDescription}</xen:set>
<xen:set var="$ogType">website</xen:set>
</xen:include></xen:container>

<xen:hook name="forum_list_nodes">
<xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>
</xen:hook>

<xen:sidebar>
<xen:edithint template="sidebar.css" />

<xen:hook name="forum_list_sidebar">
<xen:if is="{$canViewMemberList}">
<xen:include template="sidebar_online_users" />
</xen:if>

<xen:if is="{$threads}">
<div class="section threadList">
<div class="secondaryContent">
<h3><a href="{xen:link find-new/posts}">{xen:phrase new_posts}</a></h3>
<xen:include template="sidebar_new_posts" />
</div>
</div>
</xen:if>

<xen:if is="{$profilePosts}">
<div class="section profilePostList">
<div class="secondaryContent">
<h3><a href="{xen:link find-new/profile-posts}">{xen:phrase new_profile_posts}</a></h3>
<xen:include template="sidebar_profile_post_list" />
</div>
</div>
</xen:if>
<xen:include template="dark_taigachat" />
<xen:include template="sidebar_online_users" />

<!-- block: forum_stats -->
<div class="section">
<div class="secondaryContent statsList" id="boardStats">
<h3>{xen:phrase forum_statistics}</h3>
<div class="pairsJustified">
<dl class="discussionCount"><dt>{xen:phrase discussions}:</dt>
<dd>{xen:number $boardTotals.discussions}</dd></dl>
<dl class="messageCount"><dt>{xen:phrase messages}:</dt>
<dd>{xen:number $boardTotals.messages}</dd></dl>
<dl class="memberCount"><dt>{xen:phrase members_count}:</dt>
<dd>{xen:number $boardTotals.users}</dd></dl>
<dl><dt>{xen:phrase latest_member}:</dt>
<dd><xen:username user="$boardTotals.latestUser" /></dd></dl>
<!-- slot: forum_stats_extra -->
</div>
</div>
</div>
<!-- end block: forum_stats -->

<xen:include template="sidebar_share_page">
<xen:set var="$url">{xen:link canonical:forums}</xen:set>
</xen:include>

</xen:hook>
</xen:sidebar>
 
Last edited:

wang

Well-known member
#8
Remove the second instance of this code:

HTML:
<xen:include template="sidebar_online_users" />
(The one below <xen:include template="dark_taigachat" />)