Điền cái này vào đâu hở các bác ơi

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

1votes
5/5, 1 vote

  1. tongtulenh

    tongtulenh Member

    Bài viết:
    313
    Likes :
    42
    Em có đoạn code này muốn điền vào mà chưa biết điền vào đâu, tìm mãi mà chả ra.

    theo hình ạ:

    temp này tìm ở đâu

    Mục đích: em muốn cho hiện cái đếm số trang :D

    trước chắc xóa mất đoạn div này hay sao mà em tìm mãi ko thấy, giờ muốn tìm để gọi nó ra mà em tìm hoài đỏ mắt ko biết cho nó vào cái nào. bro nào chỉ em với
     
    Đang tải...
  2. Lê Tí

    Lê Tí Well-Known Member

    Bài viết:
    1,450
    Likes :
    620
    nhìn là biết xenporta
    đúng thì like rùi rep tiếp =))
     
    tongtulenh thích bài này.
  3. tongtulenh

    tongtulenh Member

    Bài viết:
    313
    Likes :
    42
    Chuẩn ạ, he he... em đã lai bác tí nhá :D
     
  4. Lê Tí

    Lê Tí Well-Known Member

    Bài viết:
    1,450
    Likes :
    620
    add code này trước cái </div> cuối cùng

    Mã:
        <xen:if hascontent="true">
        <div class="section sectionMain">
            <xen:contentcheck>
            <xen:if is="{$option.pagenav} && {$option.count} > {$option.limit}">
                <xen:if is="{$category}">
                    <xen:pagenav link="articles" linkdata="{$category}" page="{$page}" perpage="{$option.limit}" total="{$option.count}" />
                <xen:else />
                    <xen:pagenav link="portal" page="{$page}" perpage="{$option.limit}" total="{$option.count}" />
                </xen:if>
            </xen:if>
            </xen:contentcheck>
        </div>
        </xen:if>
     
  5. tongtulenh

    tongtulenh Member

    Bài viết:
    313
    Likes :
    42

    Dạ em cũng bít là điền vào chỗ đó, nhưng mà tìm cái temp nào(tên temp) để điền đoạn code trên í, sau khi tìm được tên temp đóa em sẽ tìm đến cái div đó rùi thêm vào ợ. :)

    bác chỉ em chi tiết phát ạ
     
  6. tongtulenh

    tongtulenh Member

    Bài viết:
    313
    Likes :
    42
    Trong temp:

    EWRblock_RecentNews

    PHP:
    <xen:require css="message_user_info.css" />
    <
    xen:require css="bb_code.css" />
    <
    xen:require css="EWRblock_RecentNews.css" />
     
    <
    div id="recentNews">
        <
    xen:foreach loop="$RecentNewsvalue="$news">
            <
    div class="content_container" id="{$news.thread_id}">
     
               
                    <
    div class="content_threadtitle">
                       
     
                        <
    h2><a href="{xen:link threads, $news}" class="newsTitle">{xen:helper threadPrefix$news}{$news.title}</a></h2>
                    </
    div>
     
                        <
    div class="content_threadinfo">
                            <
    span class="user"><a href="{xen:link members, $news}">{$news.username}</a></span>
                    <
    span class="time">{xen:time $news.post_date'absolute'}</span>
                    <
    span class="view">{xen:number $news.view_count}</span>
                    <
    span class="reply">{xen:number $news.reply_count}</span>
                    <
    span class="like">{xen:number $news.first_post_likes}</span>
                    </
    div>
                                    <
    div class="content_threadcontent">
                    <
    xen:if is="{$news.promote_icon} != 'disabled'">
                    <
    xen:if hascontent="true">
                        <
    div class="imgrcn">
                            <
    div class="avatarHolder">
                                <
    xen:contentcheck>
                                <
    xen:if is="{$news.attach}">
                                    <
    a href="{xen:link threads, $news}"><img src="{$news.attach.thumbnailUrl}alt="{$news.attach.filename}style="width: 400px;" /></a>
                                <
    xen:elseif is="{$news.medio}/>
                                    <
    div style="text-align: center;">
                                        <
    a href="{xen:link threads, $news}" class="imgrcn"><img src="{xen:helper medio, $news.medio}" width="320" height="180" /></a>
                                    </
    div>
                                <
    xen:elseif is="{$news.image}/>
                                    <
    a href="{xen:link threads, $news}"><img src="{$news.image}alt="{$news.image}style="max-width: 500px;" /></a>
                                <
    xen:else />
                                    <
    xen:avatar user="$newssize="l" itemprop="photo" />
                                </
    xen:if>
                                </
    xen:contentcheck>
                            </
    div>
                        </
    div>
                    </
    xen:if>
                    </
    xen:if>
     
                    <
    div class="messageContent baseHtml">
                       
     
                        <
    div class="newsText">{xen:helper stripHtml, {xen:raw $news.messageHtml}}</div>
                        <
    div class="clearFix"></div>
                    </
    div>
     
                    <
    div class="content_threadtools">
                        <
    xen:if is="{$option.social}">
                            <
    xen:if hascontent="true">
                                <
    div class="sharePage">
                                    <
    xen:require css="share_page.css" />
     
                                    <
    xen:contentcheck>
                                        <
    xen:hook name="recentnews_share_page_options" params="{xen:array 'url={xen:link canonical:threads, $news}'}">
                                        <
    xen:if is="{$xenOptions.tweet.enabled}">
                                            <
    div class="tweet shareControl">
                                                <
    a href="http://twitter.com/share" class="twitter-share-button"
                                                    
    data-count="horizontal"
                                                    
    data-lang="{xen:helper twitterLang, $visitorLanguage.language_code}"
                                                    
    data-url="{xen:link canonical:threads, $news}"
                                                    
    {xen:if {$news.title}, 'data-text="{$news.title}"'}
                                                    {
    xen:if {$xenOptions.tweet.via}, 'data-via="{$xenOptions.tweet.via}"'}
                                                    {
    xen:if {$xenOptions.tweet.related}, 'data-related="{$xenOptions.tweet.related}"'}>{xen:phrase tweet}</a>
                                            </
    div>
                                        </
    xen:if>
                                        <
    xen:if is="{$xenOptions.plusone}">
                                            <
    div class="plusone shareControl">
                                                <
    div class="g-plusone" data-size="medium" data-count="true" data-href="{xen:link canonical:threads, $news}" data-lang="{$visitorLanguage.language_code}"></div>
                                            </
    div>
                                        </
    xen:if>
                                        <
    xen:if is="{$xenOptions.facebookLike}">
                                            <
    div class="facebookLike shareControl">
                                                <
    xen:container var="$facebookSdk">1</xen:container>
                                                <
    fb:like href="{xen:link canonical:threads, $news}" layout="button_count" action="{$xenOptions.facebookLikeAction}font="trebuchet ms" colorscheme="@fbColorScheme"></fb:like>
                                            </
    div>
                                        </
    xen:if>
                                        </
    xen:hook>
                                    </
    xen:contentcheck>
                                </
    div>
                            </
    xen:if>
                        <
    xen:else />
                            <
    div class="categories">
                                <
    ul>
                                    <
    xen:if is="{$visitor.permissions.EWRporta.canPromote}">
                                        <
    a href="{xen:link 'threads/category', $news}" class="button OverlayTrigger">+</a>
                                    </
    xen:if>
                                    <
    xen:foreach loop="$news.categories" value="$subCat">
                                        <
    li><a href="{xen:link 'articles', $subCat}" class="button">{$subCat.category_name}</a></li>
                                    </
    xen:foreach>
     
    <
    class="content_readmore" href="{xen:link threads, $news}">
                                <
    div class="redirect"></div>
                                {
    xen:phrase continue_reading}
                                  </
    a>
                                </
    ul>
     
                                                       
                               
                                 
                            </
    div>
                        </
    xen:if>
     
                       
                    </
    div>
                                    </
    div>
           
            </
    div>
        </
    xen:foreach>
     
        <
    xen:if hascontent="true">
        <
    div class="section sectionMain">
            <
    xen:contentcheck>
            <
    xen:if is="{$option.pagenav} && {$option.count} > {$option.limit}">
                <
    xen:if is="{$category}">
                    <
    xen:pagenav link="articles" linkdata="{$category}page="{$page}perpage="{$option.limit}total="{$option.count}/>
                <
    xen:else />
     
                <
    xen:pagenav link="portal" page="{$page}perpage="{$option.limit}total="{$option.count}/>
     
                </
    xen:if>
     
     
        </
    xen:if>
            </
    xen:contentcheck>
        </
    div>
        </
    xen:if>
    </
    div>

    Hình như e phải gọi thêm 1 hàm nữa thì phải.
     
  7. Lê Tí

    Lê Tí Well-Known Member

    Bài viết:
    1,450
    Likes :
    620
    add vào cuối EWRblock_RecentNews ấy :v
     
  8. tongtulenh

    tongtulenh Member

    Bài viết:
    313
    Likes :
    42
    Em vừa thêm vào rồi

    nhưng mà vẫn ko được ạ

    PHP:
    <xen:require css="message_user_info.css" />
    <
    xen:require css="bb_code.css" />
    <
    xen:require css="EWRblock_RecentNews.css" />
     
    <
    div id="recentNews">
        <
    xen:foreach loop="$RecentNewsvalue="$news">
            <
    div class="content_container" id="{$news.thread_id}">
     
               
                    <
    div class="content_threadtitle">
                       
     
                        <
    h2><a href="{xen:link threads, $news}" class="newsTitle">{xen:helper threadPrefix$news}{$news.title}</a></h2>
                    </
    div>
     
                        <
    div class="content_threadinfo">
                            <
    span class="user"><a href="{xen:link members, $news}">{$news.username}</a></span>
                    <
    span class="time">{xen:time $news.post_date'absolute'}</span>
                    <
    span class="view">{xen:number $news.view_count}</span>
                    <
    span class="reply">{xen:number $news.reply_count}</span>
                    <
    span class="like">{xen:number $news.first_post_likes}</span>
                    </
    div>
                                    <
    div class="content_threadcontent">
                    <
    xen:if is="{$news.promote_icon} != 'disabled'">
                    <
    xen:if hascontent="true">
                        <
    div class="imgrcn">
                            <
    div class="avatarHolder">
                                <
    xen:contentcheck>
                                <
    xen:if is="{$news.attach}">
                                    <
    a href="{xen:link threads, $news}"><img src="{$news.attach.thumbnailUrl}alt="{$news.attach.filename}style="width: 400px;" /></a>
                                <
    xen:elseif is="{$news.medio}/>
                                    <
    div style="text-align: center;">
                                        <
    a href="{xen:link threads, $news}" class="imgrcn"><img src="{xen:helper medio, $news.medio}" width="320" height="180" /></a>
                                    </
    div>
                                <
    xen:elseif is="{$news.image}/>
                                    <
    a href="{xen:link threads, $news}"><img src="{$news.image}alt="{$news.image}style="max-width: 500px;" /></a>
                                <
    xen:else />
                                    <
    xen:avatar user="$newssize="l" itemprop="photo" />
                                </
    xen:if>
                                </
    xen:contentcheck>
                            </
    div>
                        </
    div>
                    </
    xen:if>
                    </
    xen:if>
     
                    <
    div class="messageContent baseHtml">
                       
     
                        <
    div class="newsText">{xen:helper stripHtml, {xen:raw $news.messageHtml}}</div>
                        <
    div class="clearFix"></div>
                    </
    div>
     
                    <
    div class="content_threadtools">
                        <
    xen:if is="{$option.social}">
                            <
    xen:if hascontent="true">
                                <
    div class="sharePage">
                                    <
    xen:require css="share_page.css" />
     
                                    <
    xen:contentcheck>
                                        <
    xen:hook name="recentnews_share_page_options" params="{xen:array 'url={xen:link canonical:threads, $news}'}">
                                        <
    xen:if is="{$xenOptions.tweet.enabled}">
                                            <
    div class="tweet shareControl">
                                                <
    a href="http://twitter.com/share" class="twitter-share-button"
                                                    
    data-count="horizontal"
                                                    
    data-lang="{xen:helper twitterLang, $visitorLanguage.language_code}"
                                                    
    data-url="{xen:link canonical:threads, $news}"
                                                    
    {xen:if {$news.title}, 'data-text="{$news.title}"'}
                                                    {
    xen:if {$xenOptions.tweet.via}, 'data-via="{$xenOptions.tweet.via}"'}
                                                    {
    xen:if {$xenOptions.tweet.related}, 'data-related="{$xenOptions.tweet.related}"'}>{xen:phrase tweet}</a>
                                            </
    div>
                                        </
    xen:if>
                                        <
    xen:if is="{$xenOptions.plusone}">
                                            <
    div class="plusone shareControl">
                                                <
    div class="g-plusone" data-size="medium" data-count="true" data-href="{xen:link canonical:threads, $news}" data-lang="{$visitorLanguage.language_code}"></div>
                                            </
    div>
                                        </
    xen:if>
                                        <
    xen:if is="{$xenOptions.facebookLike}">
                                            <
    div class="facebookLike shareControl">
                                                <
    xen:container var="$facebookSdk">1</xen:container>
                                                <
    fb:like href="{xen:link canonical:threads, $news}" layout="button_count" action="{$xenOptions.facebookLikeAction}font="trebuchet ms" colorscheme="@fbColorScheme"></fb:like>
                                            </
    div>
                                        </
    xen:if>
                                        </
    xen:hook>
                                    </
    xen:contentcheck>
                                </
    div>
                            </
    xen:if>
                        <
    xen:else />
                            <
    div class="categories">
                                <
    ul>
                                    <
    xen:if is="{$visitor.permissions.EWRporta.canPromote}">
                                        <
    a href="{xen:link 'threads/category', $news}" class="button OverlayTrigger">+</a>
                                    </
    xen:if>
                                    <
    xen:foreach loop="$news.categories" value="$subCat">
                                        <
    li><a href="{xen:link 'articles', $subCat}" class="button">{$subCat.category_name}</a></li>
                                    </
    xen:foreach>
     
    <
    class="content_readmore" href="{xen:link threads, $news}">
                                <
    div class="redirect"></div>
                                {
    xen:phrase continue_reading}
                                  </
    a>
                                </
    ul>
     
                                                       
                               
                                 
                            </
    div>
                        </
    xen:if>
     
                       
                    </
    div>
                                    </
    div>
           
            </
    div>
        </
    xen:foreach>
     
        <
    xen:if hascontent="true">
        <
    div class="section sectionMain">
            <
    xen:contentcheck>
            <
    xen:if is="{$option.pagenav} && {$option.count} > {$option.limit}">
                <
    xen:if is="{$category}">
                    <
    xen:pagenav link="articles" linkdata="{$category}page="{$page}perpage="{$option.limit}total="{$option.count}/>
                <
    xen:else />
     
                <
    xen:pagenav link="portal" page="{$page}perpage="{$option.limit}total="{$option.count}/>
     
                </
    xen:if>
        </
    xen:if>
            </
    xen:contentcheck>
        </
    div>
        </
    xen:if>
     
    //* đoạn em vừa thêm nhưng chưa được bác ợ
     
        
    <xen:if hascontent="true">
        <
    div class="section sectionMain">
            <
    xen:contentcheck>
            <
    xen:if is="{$option.pagenav} && {$option.count} > {$option.limit}">
                <
    xen:if is="{$category}">
                    <
    xen:pagenav link="articles" linkdata="{$category}page="{$page}perpage="{$option.limit}total="{$option.count}/>
                <
    xen:else />
                    <
    xen:pagenav link="portal" page="{$page}perpage="{$option.limit}total="{$option.count}/>
                </
    xen:if>
            </
    xen:if>
            </
    xen:contentcheck>
        </
    div>
        </
    xen:if>
     
     
     
    </
    div>
     
     
     
  9. Lê Tí

    Lê Tí Well-Known Member

    Bài viết:
    1,450
    Likes :
    620
    bị recentnews đè lên chứ gì, vứt site lên hay là muốn edit bằng paint đây :v
     
  10. tongtulenh

    tongtulenh Member

    Bài viết:
    313
    Likes :
    42

    Hình như thế ạ, em cũng đoán khả năng bị đè nhưng mà chưa rõ nguyên nhân:

    site đây bác ợ:

    http://www.114.vn/
     
  11. Lê Tí

    Lê Tí Well-Known Member

    Bài viết:
    1,450
    Likes :
    620
    Free server CPU usage exceeded!
     
    tongtulenh thích bài này.
  12. tongtulenh

    tongtulenh Member

    Bài viết:
    313
    Likes :
    42
    Ặc ... chết em. server của bọn này nó lại limit roài ....:confused:

    đành lại chờ ngày mai trời lại sáng, bác giúp em tiếp nhé. híc...
     
  13. p3iu18

    p3iu18 Member

    Bài viết:
    298
    Likes :
    123
    Đăng ký acc khác rồi típ tục chứ gì đâu đợi ngày mai :))
     
    tongtulenh thích bài này.
  14. tongtulenh

    tongtulenh Member

    Bài viết:
    313
    Likes :
    42

    Vâng để tăng phần đam mê, bác chờ em chuyển sang 1 domain khác với nội dung vừa rồi để em tiếp tục được nhờ bác ợ. bác chờ em chút nhé
     
  15. p3iu18

    p3iu18 Member

    Bài viết:
    298
    Likes :
    123
    Mình chỉ vào đây nghe ngóng + góp ý thế thôi. Chứ ko sài xenporta :">
     
    o0MongCo0o thích bài này.
  16. tongtulenh

    tongtulenh Member

    Bài viết:
    313
    Likes :
    42
    EM chờ chuyển host mà lâu quá, sốt hết cả ruột, các bác đi ngủ chưa ợ
     
  17. thuatdl

    thuatdl Member

    Bài viết:
    672
    Likes :
    182
    Chưa ;))
     
comments powered by Disqus

Chia sẻ trang này

Đang tải...