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

Discussion in 'Troubleshooting and Problems' started by TechnicalFisherman, May 13, 2016.

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

    wang Well-Known Member

    Are you using a custom style or the bd Widget Framework add on?
  3. Steve F

    Steve F Well-Known Member

    Are you using the [bd] Widget Framework?
  4. Brogan

    Brogan XenForo Moderator Staff Member

    In that case it's likely an outdated or customised template.
  5. wang

    wang Well-Known Member

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


    <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:hook name="forum_list_nodes">
    <xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>

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

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

    <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" />

    <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" />
    <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 -->
    <!-- end block: forum_stats -->

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

    Last edited: May 13, 2016
  7. wang

    wang Well-Known Member

    Remove the second instance of this code:

    <xen:include template="sidebar_online_users" />
    (The one below <xen:include template="dark_taigachat" />)
  8. @wang thanks so much, I'd looked at it several times and missed that. Thanks again!
    wang likes this.
  9. wang

    wang Well-Known Member

    You are welcome sir. :)

Share This Page