Ai giúp mình Forum chồng lên Forum với

Thảo luận trong 'Style & Template Questions' bắt đầu bởi anhtdvnit, 27/10/13.

1votes
5/5, 1 vote

  1. anhtdvnit

    anhtdvnit Member

    Bài viết:
    101
    Likes :
    16
    Không hiểu thế nào web của mình vào phần diễn đàn, kéo xuống cuối thì lại thấy 1 phần diễn đàn lặp lại giống y hệt nhau. Có cách nào nỏ nó đi hộ mình được không ả?

    Demo: http://hoangmaionline.com/forums/
     
    Đang tải...
  2. ltgbao97

    ltgbao97 Member

    Bài viết:
    282
    Likes :
    34
    xem trong template forum_list
     
    anhtdvnit thích bài này.
  3. kaizencoming

    kaizencoming Member

    Bài viết:
    636
    Likes :
    127
    xem PAGE_CONTAINER có trùng 2 dòng forum_list hay ko :)
     
    anhtdvnit thích bài này.
  4. anhtdvnit

    anhtdvnit Member

    Bài viết:
    101
    Likes :
    16
    Bạn nhìn hộ mình với: Forum_list
    PHP:
    <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="$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: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:include template="sidebar_online_users" />
           
            <!-- 
    blockforum_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>
                        <!-- 
    slotforum_stats_extra -->
                    </
    div>
                </
    div>
            </
    div>
            <!-- 
    end blockforum_stats -->
           
            <
    xen:include template="sidebar_share_page">
                <
    xen:set var="$url">{xen:link canonical:forums}</xen:set>
            </
    xen:include>
           
        </
    xen:hook>
    </
    xen:sidebar>
     
  5. anhtdvnit

    anhtdvnit Member

    Bài viết:
    101
    Likes :
    16
    Bạn kiểm tra hộ mình xem PAGE_CONTAINER:
    PHP:
    <!DOCTYPE html><xen:set var="$isResponsivevalue="{xen:if '@enableResponsive AND !{$noResponsive}', 1, 0}" />
    <
    html id="XenForo" lang="{$visitorLanguage.language_code}dir="{$visitorLanguage.text_direction}class="Public {xen:if {$visitor.user_id}, 'LoggedIn', 'LoggedOut'} {xen:if {$sidebar}, 'Sidebar', 'NoSidebar'} {xen:if $hasAutoDeferred, RunDeferred} {xen:if $isResponsive, Responsive, NoResponsive}" xmlns:fb="http://www.facebook.com/2008/fbml">
    <
    head>
    <
    xen:hook name="page_container_head">
        <
    meta charset="utf-8" />
        <
    meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
        <
    xen:if is="{$isResponsive}">
            <
    meta name="viewport" content="width=device-width, initial-scale=1">
        </
    xen:if>
        <
    xen:if is="{$requestPaths.fullBasePath}">
            <
    base href="{$requestPaths.fullBasePath}/>
            <
    script><xen:comment>/* Chrome bug and for Google cache */</xen:comment>
                var 
    _b document.getElementsByTagName('base')[0], _bH "{xen:jsescape $requestPaths.fullBasePath}";
                if (
    _b && _b.href != _bH_b.href _bH;
            
    </script>
        </xen:if>

        <title><xen:if is="{$title}">{xen:raw $title} | {$xenOptions.boardTitle}<xen:else />{$xenOptions.boardTitle}</xen:if></title>
       
        <noscript><style>.JsOnly { display: none !important; }</style></noscript>
        <link rel="stylesheet" href="css.php?css=xenforo,form,public&amp;style={xen:urlencode $_styleId}&amp;dir={$visitorLanguage.text_direction}&amp;d={$visitorStyle.last_modified_date}" />
        <!--XenForo_Require:CSS-->   
        {xen:helper ignoredCss, {$visitor.ignoredUsers}}

        <xen:include template="google_analytics" />
        <xen:include template="page_container_js_head" />
       
        <link rel="apple-touch-icon" href="{xen:helper fullurl, @ogLogoPath, 1}" />
        <link rel="alternate" type="application/rss+xml" title="{xen:phrase rss_feed_for_x, 'title={$xenOptions.boardTitle}'}" href="{xen:link forums/-/index.rss}" />
        <xen:if is="{$pageDescription.content} AND !{$pageDescription.skipmeta} AND !{$head.description}"><meta name="description" content="{xen:string wordTrim, {xen:helper stripHtml, {xen:raw $pageDescription.content}}, 200}" /></xen:if>
        <xen:if is="{$head}"><xen:foreach loop="$head" value="$headElement">{xen:raw $headElement}</xen:foreach></xen:if>
    </xen:hook>
    </head>

    <body{xen:if {$bodyClasses}, ' class="{$bodyClasses}"'}>
    <xen:hook name="body">

    <xen:if is="{$visitor.is_moderator} || {$visitor.is_admin}">
        <xen:include template="moderator_bar" />
    <xen:elseif is="!{$visitor.user_id} && !{$hideLoginBar}" />
        <xen:include template="login_bar" />
    </xen:if>

    <div id="headerMover">
        <div id="headerProxy"></div>

    <div id="content" class="{$contentTemplate}">
        <div class="pageWidth">
            <div class="pageContent">
                <!-- main content area -->
               
                <xen:hook name="page_container_content_top" />
               
                <xen:if is="{$sidebar}">
                    <div class="mainContainer">
                        <div class="mainContent"></xen:if>
                           
                            <xen:include template="ad_above_top_breadcrumb" />
                           
                            <xen:hook name="page_container_breadcrumb_top">
                            <div class="breadBoxTop {xen:if $topctrl, withTopCtrl}">
                                <xen:if is="{$topctrl}"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
                                <xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
                            </div>
                            </xen:hook>
                           
                            <xen:include template="ad_below_top_breadcrumb" />
                       
                            <!--[if lt IE 8]>
                                <p class="importantMessage">{xen:phrase you_are_using_out_of_date_browser_upgrade}</p>
                            <![endif]-->

                            <xen:hook name="page_container_notices">
                            <xen:include template="notices" />                       
                            </xen:hook>
                           
                            <xen:hook name="page_container_content_title_bar">
                            <xen:if is="!{$noH1}">                       
                                <!-- h1 title, description -->
                                <div class="titleBar">
                                    {xen:raw $beforeH1}
                                    <h1><xen:if
                                        is="{$h1}">{xen:raw $h1}<xen:elseif
                                        is="{$title}" />{xen:raw $title}<xen:else
                                        />{$xenOptions.boardTitle}</xen:if></h1>
                                   
                                    <xen:if is="{$pageDescription.content}"><p id="pageDescription" class="muted {$pageDescription.class}">{xen:raw $pageDescription.content}</p></xen:if>
                                </div>
                            </xen:if>
                            </xen:hook>
                           
                            <xen:include template="ad_above_content" />
                           
                            <!-- main template -->
                            {xen:raw $contents}
                           
                            <xen:include template="ad_below_content" />
                           
                            <xen:if is="!{$visitor.user_id} && !{$hideLoginBar}">
                                <!-- login form, to be moved to the upper drop-down -->
                                <xen:include template="login_bar_form" />
                            </xen:if>
                           
                        <xen:if is="{$sidebar}"></div>
                    </div>
                   
                    <!-- sidebar -->
                    <aside>
                        <div class="sidebar">
                            <xen:hook name="page_container_sidebar">
                            <xen:include template="ad_sidebar_top" />
                            <xen:if is="!{$noVisitorPanel}"><xen:include template="sidebar_visitor_panel" /></xen:if>
                            {xen:raw $sidebar}
                            <xen:include template="ad_sidebar_bottom" />
                            </xen:hook>
                        </div>
                    </aside>
                </xen:if>
               
                <xen:hook name="page_container_breadcrumb_bottom">           
                <div class="breadBoxBottom"><xen:include template="breadcrumb" /></div>
                </xen:hook>
                           
                <xen:include template="ad_below_bottom_breadcrumb" />
                           
            </div>
        </div>
    </div>

    <header>
        <xen:include template="header" />
        <xen:edithint template="navigation" />
        <xen:edithint template="search_bar" />
    </header>

    </div>

    <footer>
        <xen:include template="footer" />
    </footer>

    <xen:include template="page_container_js_body" />

    </xen:hook>
    <div class="slide_likebox"> <div style="color: rgb(255, 255, 255); padding: 8px 5px 0pt 50px;"><div class="FB_Loader"></div><span><iframe src="http://www.facebook.com/plugins/likebox.php?href=http://www.facebook.com/HoangMaiOnline&amp;width=198&amp;colorscheme=light&amp;show_faces=true&amp;stream=false&amp;header=false&amp;height=368" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:198px; height:368px;" allowTransparency="true"></iframe></span></div></div></body>
    </html>
     
  6. Hayate

    Hayate Member

    Bài viết:
    125
    Likes :
    36
    Thừa 1 cái rồi kìa bạn, xóa mấy dòng này đi :
    Mã:
    <xen:hook name="forum_list_nodes">
        <xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>
    </xen:hook>
     
    anhtdvnit thích bài này.
  7. anhtdvnit

    anhtdvnit Member

    Bài viết:
    101
    Likes :
    16
    Cảm ơn mọi người. Cảm ơn Hayate nhé! Làm được rồi. Cái này chắc tối qua ngủ gật nên thêm vào mà không biết.
     
    kaizencoming thích bài này.
  8. Hayate

    Hayate Member

    Bài viết:
    125
    Likes :
    36
    Ko có chi, lúc mới vào mình cũng đc nhiều người giúp mà, giờ biết đc chỗ nào là mình support liền :))
     
    anhtdvnit thích bài này.
comments powered by Disqus

Chia sẻ trang này

Đang tải...