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

XF 1.5 Adding Sidebar to Threads - No Stats or Posts Showing

#1
So I'm trying to add my sidebar to threads with the exact same widgets and information. I got it to show up but it is showing 0 stats in the Members Online Now, no posts in New Posts, 0 stats in Forums Statistics and the Share This Page buttons styles aren't matching. Not sure what I'm doing wrong here. Here is the code I've added to the thread_view template.

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

    
        
            <xen:include template="sidebar_online_users" />
        

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

        <!-- 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:sidebar>
 
#3
Is there a plugin that would do this? I don't do coding myself and was hoping I wouldn't have to hire a developer to do something that seems fairly simple.