xin hỏi về lỗi của xenporta

Thảo luận trong 'General Discussions' bắt đầu bởi tuancanhtg, 16/12/14.

1votes
5/5, 1 vote

  1. tuancanhtg

    tuancanhtg New Member

    Bài viết:
    15
    Likes :
    1
    Đây là ảnh của em nó

    Capture
    Mình muốn nó to lên như tinh tế, nhưng trình độ gà quá, không biết sửa ra sao. Mong các cao thủ giúp đỡ
    Đây là EWRblock_RecentNews
    Mã:
    <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="$RecentNews" value="$news">
            <div class="content_container" id="{$news.thread_id}">
                    <div id="VQ_DT" class="content_threadtitle">
                        <div style="float: right; white-space: nowrap;">
                            <xen:if is="{$visitor.permissions.EWRporta.canPromote}">
                                &nbsp; (<a href="{xen:link 'threads/edit', $news}" class="OverlayTrigger">{xen:phrase edit}</a>)
                            </xen:if>
                        </div>
                        <h2 title="{$news.title}"><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}" title="{$news.title}" alt="{xen:helper stripHtml,{xen:helper Tinhte_XenTag_getImplodedTagsFromThread, $news, 1}}" style="width: 400px;" /></a>
                                <xen:elseif is="{$news.medio}" />
                                    <div style="text-align: center;">
                                        <a href="{xen:link threads, $news}" class="imgrcn"><img alt="{xen:helper stripHtml,{xen:helper Tinhte_XenTag_getImplodedTagsFromThread, $news, 1}}" title="{$news.title}" src="{xen:helper medio, $news.medio}" width="320" height="180" /></a>
                                    </div>
                                <xen:elseif is="{$news.image}" />
                                    <a href="{xen:link threads, $news}"><img title="{$news.title}" src="{$news.image}" alt="{xen:helper stripHtml,{xen:helper Tinhte_XenTag_getImplodedTagsFromThread, $news, 1}}" style="max-width: 500px;" /></a>
                                <xen:else />
                                    <xen:avatar user="$news" size="l" itemprop="photo" />
                                </xen:if>
                                </xen:contentcheck>
                            </div>
                        </div>
                    </xen:if>
                    </xen:if>
                    <div class="messageContent baseHtml">
                        <div class="newsText"><xen:set var="$leti">{xen:raw $news.messageHtml}</xen:set>{xen:helper stripHtml, $leti}</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>
                                </ul>
                            </div>
                        </xen:if>
                        <div class="continue">
                            <a class="content_readmore" href="{xen:link threads, $news}">
                                <div class="redirect"></div>
                                {xen:phrase continue_reading}
                            </a>
                        </div>
                    </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>
    Đây là EWRblock_RecentNews.css
    Mã:
    .content_container {
        margin-top: 5px;
        padding: 5px;
        background-color: #FFF;
        box-shadow: 0 0 6px #EBEBEB;
        width:900px;
    }
    
    .content_threadtitle {
        font-family: Arial,Tahoma,sans-serif;
        font-size: 13pt;
        font-weight: normal;
        color: #2b2b2b;
        text-align: left;
        display: block;
        padding: 8px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        background-color: #176093;
        margin: -6px -5px;
        margin-bottom: 0px;
        color: #FFF;
    }
    
    .content_threadtitle h2 {
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .content_threadtitle a:hover {
        text-decoration: none;
        color: #EEE;
    }
    
    .content_threadtitle a {
        color: #FFF;
        text-decoration: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .content_threadtools .continue {
        float: right;
    }
    
    .content_threadtools .sharePage {
        float: left;
    }
    
    .content_threadinfo {
        display: block;
        font-family: Tahoma,Arial,sans-serif;
        font-size: 12px;
        font-weight: normal;
        color: #999999;
        text-align: left;
        margin: 0px -5px;
        padding: 8px 5px 7px 9px;
        position: relative;
        background-color: #EAF3FB;
    }
    
    .content_threadtools {
        display: block;
        margin: 0;
        max-height: 25px;
        overflow: hidden;
        margin-top: 10px;
    }
    
    .content_threadtools .content_readmore {
        display: block !important;
        background-color: #FFB636;
        color: #FFF !important;
        padding: 5px 10px !important;
        margin: -2px 0 0 0;
        float: right !important;
        text-decoration: none;
    }
    
    .content_threadcontent {
        display: block;
        text-align: justify;
        margin-top: 17px;
        margin-bottom: 5px;
        font-family: Arial,Tahoma,sans-serif;
        font-size: 15px;
        font-weight: normal;
        color: #333333;
        line-height: 1.4;
        padding: 0 10px;
    }
    
    content_container img {
        text-align: center;
        max-width: 600px;
    }
    
    .avatarHolder {
        text-align: center;
    }
    
    .content_threadinfo .user,.content_threadinfo .time,.content_threadinfo .view,.content_threadinfo .reply,.content_threadinfo .like {
        display: inline-block;
        background: url("http://ngoinhaonline.net/iconanh/homeicon.png") no-repeat;
        padding: 3px 0 0 24px;
        margin: 0 10px 0 0;
        height: 20px;
        color: #999 !important;
    }
    
    .content_threadinfo .user {
        background-position: 0 0;
    }
    
    .content_threadinfo .user a {
        color: #999;
    }
    
    .content_threadinfo .user a:hover {
        color: #FF5302;
    }
    
    .content_threadinfo .time {
        background-position: 0 -32px;
    }
    
    .content_threadinfo .view {
        padding-left: 32px;
        background-position: 0 -57px;
    }
    
    .content_threadinfo .reply {
        background-position: 0 -84px;
    }
    
    .content_threadinfo .like {
        background-position: 0 -111px;
    }
    

    Đây là bb_code.css:
    Mã:
    /* .bbCodeX classes are designed to exist inside .baseHtml. ie: they have no CSS reset applied */
    .bbCodeBlock
    {
        @property "bbCodeBlock";
        margin: 1em 2em 1em 0;
        border: 1px solid @primaryLighterStill;
        border-radius: 5px;
        @property "/bbCodeBlock";
    }
        .messageList.withSidebar .bbCodeBlock
        {
            margin-right: 0;
        }
        /* mini CSS reset */
        .bbCodeBlock pre,
        .bbCodeBlock blockquote
        {
            margin: 0;
        }
      
        .bbCodeBlock img
        {
            border: none;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
        }
    .bbCodeBlock .type
    {
        @property "bbCodeBlockType";
        font-size: 11px;
        font-family: @body.font-family;
        color: @primaryLight;
        background: @primaryLighterStill url('@imagePath/xenforo/gradients/form-button-white-25px.png') repeat-x top;
        padding: 3px 8px;
        border-bottom: 1px solid @primaryLighter;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
        @property "/bbCodeBlockType";
    }
    .bbCodeBlock pre,
    .bbCodeBlock .code
    {
        @property "bbCodeCode";
        font-size: 10pt;
        font-family: Consolas, 'Courier New', Courier, monospace;
        background: @primaryLightest url('@imagePath/xenforo/gradients/category-23px-light.png') repeat-x top;
        padding: 10px;
        border-radius: 5px;
        word-wrap: normal;
        overflow: auto;
        line-height: 1.24;
        min-height: 30px;
        max-height: 500px;
        _width: 600px;
        direction: ltr;
        @property "/bbCodeCode";
    }
    .bbCodeBlock .code
    {
        white-space: nowrap;
    }
    .bbCodeQuote
    {
        @property "bbCodeQuote";
        border-top-color: rgb(173,;
        border-right-color: 229,;
        border-bottom-color: 255);
        border-left-color: 229,;
        @property "/bbCodeQuote";
    }
    .bbCodeQuote .attribution
    {
        @property "bbCodeQuoteAttribution";
        color: @contentText;
        background: rgb(173, 229, 255) url('@imagePath/xenforo/gradients/form-button-white-25px.png') repeat-x top;
        border-bottom: 1px solid rgb(152, 204, 230);
        @property "/bbCodeQuoteAttribution";
    }
    .bbCodeQuote blockquote
    {
        @property "bbCodeQuoteMessage";
        font-style: italic;
        font-size: 9pt;
        background: rgb(241, 249, 251) url('@imagePath/xenforo/gradients/category-23px-light.png') repeat-x top;
        padding: 10px;
        border-radius: 4px;
        @property "/bbCodeQuoteMessage";
    }
    Đây là message_user_info.css
    Mã:
    .messageUserInfo
    {
        @property "messageUserInfo";
        float: left;
        width: 140px;
        @property "/messageUserInfo";
    }
    
        .messageUserBlock
        {
            @property "messageUserBlock";
            border-radius: 5px;
    //// @primaryLighterStill url('@imagePath/xenforo/gradients/tab-selected-light.png') repeat-x bottom;
            /*background-color: #f2fbff;
            border: 1px solid #aad5e9;*/
            @property "/messageUserBlock";
           
            position: relative;
        }
           
            .messageUserBlock div.avatarHolder
            {
                @property "messageAvatarHolder";
                background-color: #f2fbff;
                padding: 10px 18px 5px;
                margin: auto;
                border-radius: 5px;
    /// @primaryLightest;
                @property "/messageAvatarHolder";   
            }
           
                .messageUserBlock div.avatarHolder a
                {
                    display: block;
                }
               
            /*.messageUserBlock .ipLink
            {
                display: block;
                float: right;
                font-size: 8px;
                width: 12px;
                height: 12px;
                line-height: 12px;
                text-align: center;
                background-color: @primaryLighter;
                border-radius: 3px;
            }
           
                .messageUserBlock .ipLink:hover
                {
                    background-color: @primaryLightest;
                    text-decoration: none;
                }*/
               
            .messageUserBlock h3.userText
            {
                @property "messageUserText";
                padding: 6px;
                @property "/messageUserText";
            }
       
            .messageUserBlock a.username
            {
                @property "messageUsername";
                font-weight: bold;
                padding-bottom: 5px;
                display: block;
                overflow: hidden;
                line-height: 16px;
                text-align: center;
                @property "/messageUsername";
               
            }
           
            .messageUserBlock .userTitle
            {
                @property "messageUserTitle";
                font-size: 11px;
                display: block;
                text-align: center;
                @property "/messageUserTitle";
            }
           
            .messageUserBlock .extraUserInfo
            {
                @property "messageExtraUserInfo";
                font-size: 9px;
                background-color: none;
                padding: 4px 6px;
                border-radius: 4px;
    #DEEFF7;
               
               
    @primaryLightest;
                @property "/messageExtraUserInfo";
            }
           
                .messageUserBlock .extraUserInfo dl
                {
                    margin: 2px 0;
                }
               
                    .messageUserBlock .extraUserInfo dt
                    {
                        font-size: 9px;
                       
                    }
                   
                .messageUserBlock .extraUserInfo img
                {
                    max-width: 100%;
                }
           
            .messageUserBlock .arrow
            {
                position: absolute;
                top: 30px;
                right: -10px;
               
                display: block;
                width: 0px;
                height: 0px;
                line-height: 0px;
               
                border: 10px solid transparent;
                border-left-color: @messageUserBlock.border-color;
                border-right: none;
               
                /* Hide from IE6 */
                display: none;
            }
           
                .messageUserBlock .arrow span
                {
                    position: absolute;
                    top: -10px;
                    left: -11px;
                   
                    display: block;
                    width: 0px;
                    height: 0px;
                    line-height: 0px;
                   
                    border: 10px solid transparent;
                    border-left-color: @messageAvatarHolder.background-color;
                    border-right: none;
                }
     
    Đang tải...
  2. Coolboyhn

    Coolboyhn Member

    Bài viết:
    503
    Likes :
    138
    đưa demo online ra check xem sao
     
  3. tuancanhtg

    tuancanhtg New Member

    Bài viết:
    15
    Likes :
    1
    đang dựng trên localhost. :)
     
  4. tuancanhtg

    tuancanhtg New Member

    Bài viết:
    15
    Likes :
    1
    hay bạn có code recentnews giống giống tinhte không, cho mình xin với. :)
     
  5. ssssssssss

    ssssssssss Active Member

    Bài viết:
    763
    Likes :
    298
    code này thấy quen ak nha :D
     
  6. tuancanhtg

    tuancanhtg New Member

    Bài viết:
    15
    Likes :
    1
    :D:D:D:D:D quá quen. Bác nào help mình phát. :D
     
  7. ssssssssss

    ssssssssss Active Member

    Bài viết:
    763
    Likes :
    298
    trong bai viet ban co hinh khong hih kich thuong the nao :D
     
  8. tuancanhtg

    tuancanhtg New Member

    Bài viết:
    15
    Likes :
    1
    đã tạm thời tìm ra nguyên nhân, chắc là do Attachment Thumbnail Dimensions, các bạn thường set giá trị này bằng bao nhiêu vậy?
     
  9. tuancanhtg

    tuancanhtg New Member

    Bài viết:
    15
    Likes :
    1
    Sẵn đây cho mình hỏi là set permissions như thế nào để khách chưa đăng ký vẫn có thể xem ảnh bình thường thay vì ảnh thu nhỏ?
     
comments powered by Disqus

Chia sẻ trang này

Đang tải...