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

XF 1.4 Disable the sidebar blocks ?

Discussion in 'Styling and Customization Questions' started by Lemminator, Aug 24, 2014.

  1. Lemminator

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

    Amaury Well-Known Member

    There's an option to disable the New Profile Posts block from appearing in the sidebar in the admin control panel.
     
  3. Lemminator

    Lemminator Well-Known Member

    now i mean i will see only the new profile post in the sidebar , and no other blocks
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    You will need to edit the forum_list template and remove the code for the online users and stats blocks.
     
  5. Lemminator

    Lemminator Well-Known Member

    is this possible with <xen:comment></xen:comment> or i delete the code ?
     
  6. Amaury

    Amaury Well-Known Member

    Whatever you want to do. Both ways work, though commenting out the code is usually the safer route.
     
  7. Lemminator

    Lemminator Well-Known Member

    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>
    
     
  8. Lemminator

    Lemminator Well-Known Member

    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>
     

Share This Page