XF 1.4 Disable the sidebar blocks ?

Lemminator

Well-known member
hi

i would like disable the sibar blocks without the new profile post . where or what i must do ?

Can anybody help me ?


greetz
 
i did anything wrong when i commenting out the codes :( sry its my first time to do this

Code:
<xen:comment><xen:hook name="forum_list_sidebar">
        <xen:if is="{$canViewMemberList}">
            <xen:include template="sidebar_online_users" />
        </xen:if>
</xen:comment>
      
        <xen:if is="{$profilePosts}">
            <div class="section">
                <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:comment><!-- 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:comment>
</xen:sidebar>
 
now its working ^^

with this
Code:
<xen:sidebar>
    <xen:edithint template="sidebar.css" />
   
    <xen:hook name="forum_list_sidebar">
    <xen:comment>
        <xen:if is="{$canViewMemberList}">
            <xen:include template="sidebar_online_users" />
        </xen:if>
        </xen:comment>
       
        <xen:if is="{$profilePosts}">
            <div class="section">
                <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:comment>
        <!-- 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>
        </xen:comment>
        <xen:comment>
        <!-- end block: forum_stats -->
        <xen:include template="sidebar_share_page">
            <xen:set var="$url">{xen:link canonical:forums}</xen:set>
        </xen:include>
        </xen:comment>
    </xen:hook>
</xen:sidebar>
 
Back
Top Bottom