thumbnail hinh anh cho trang chủ xenporta Xenforo

Thảo luận trong 'Style & Template Questions' bắt đầu bởi thb2014, 20/1/15.

  1. thb2014

    thb2014 New Member

    Bài viết:
    76
    Likes :
    11
    xin chào mọi người.
    làm cách nào cho trang home hiện hình ảnh mặc định của avatar khi bài viết ko có hình?
    xin cảm ơn.
    g
     
    Đang tải...
  2. thanhthanh

    thanhthanh Moderator Staff Member

    Bài viết:
    477
    Likes :
    133
    Bạn cho demo mới biết bạn dang dùng gì để làm trang chủ, nhưng cái hình to thế avatar nó vỡ ghê lắm.
     
    thb2014 thích bài này.
  3. blaysku

    blaysku Member

    Bài viết:
    230
    Likes :
    95
    vứt code recentnews lên đây mọi người giúp cho
     
    thb2014 thích bài này.
  4. thb2014

    thb2014 New Member

    Bài viết:
    76
    Likes :
    11
    recenews
    Mã:
    <xen:require css="message_user_info.css" />
    <xen:require css="bb_code.css" />
    <xen:require css="EWRblock_RecentNews.css" />
    
    <div id="recentNews">
           <div class="header_rc"><div class="title_rc">Tin mới nhất</div></div>
        <xen:foreach loop="$RecentNews" value="$news">
            <div class="section sectionMainportal recentNews" id="{$news.thread_id}">
                            <div class="cms_congnghe_img">
                    <xen:if is="{$news.promote_icon} != 'disabled'">
                    <xen:if hascontent="true">
    
                                <xen:contentcheck>
                                <xen:if is="{$news.attach}">
                                    <a href="{xen:link threads, $news}"><img src="http://res.cloudinary.com/tint/image/fetch/w_500,h_333,c_thumb/http://ytuonglamgiau.vn/{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" /></a>
                                <xen:elseif is="{$news.medio}" />
                                    <div style="background: url('{xen:helper medio, $news.medio}') no-repeat;">
                                        <a href="{xen:link 'full:media/media/popout', $news.medio}" class="OverlayTrigger"><img src="styles/8wayrun/EWRmedio_play.png" width="160" height="90" /></a>
                                    </div>
                                <xen:elseif is="{$news.image}" />
                                    <a href="{xen:link threads, $news}"><img src="http://res.cloudinary.com/tint/image/fetch/w_500,h_333,c_thumb/{$news.image}" alt="{$news.image}" /></a>
                                <xen:else />
                                    <a href="{xen:link threads, $news}"><img src="/images/news.jpg" /></a>
                                </xen:if>
                                </xen:contentcheck>
                    </xen:if>
                    </xen:if>
                           </div>
          
                           <div class="right_ct">
                             <div class="subHeadingportal">
                              <a href="{xen:link threads, $news}" class="newsTitle">{xen:helper threadPrefix, $news}{$news.title}</a>
                              <xen:if is="{$visitor.permissions.EWRporta.canPromote}">
                    (<a href="{xen:link 'threads/edit', $news}" class="OverlayTrigger">{xen:phrase edit}</a>)
                  </xen:if>
                              <div class="edit_btn" style="float: right; white-space: nowrap;">
                               </div>
                             </div>
                <div class="messageContent baseHtml">
                    <div class="postedBy">
                        <span class="posted iconKey">{xen:phrase by_x_at_y,
                            'user=<a href="{xen:link members, $news}" class="username">{$news.username}</a>,',
                            'date=<a href="{xen:link threads, $news}">{xen:time $news.post_date, 'absolute'}</a>'}</span>
                    </div>
                    <div class="newsText">{xen:helper snippet, $news.message, 300}</div>
                    <div class="postedStat">
                <span class="views"><span></span>{xen:number $news.view_count}</span>
                <span class="likes"><span></span>{xen:number $news.first_post_likes}</span>
                <span class="comments iconKey"><a href="{xen:link threads/unread, $news}"><span></span>{xen:number $news.reply_count}</a></span>
    
                    </div>
                            <div class="clearFix"></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:pagenav link="articles" linkdata="{$category}" page="{$page}" perpage="{$option.limit}" total="{$option.count}" />
            </xen:if>
            </xen:contentcheck>
        </div>
        </xen:if>
    </div>

    code recentnews1

    Mã:
    <xen:require css="message_user_info.css" />
    <xen:require css="bb_code.css" />
    <xen:require css="EWRblock_RecentNews1.css" />
    
    
    <div class="feature-slider">
    <div class="slide01">
    <xen:foreach loop="$RecentNews1" value="$news" i="$i">
               <xen:if is="{$i} < 2">
            <div class="items1">
            <xen:if is="{$news.promote_icon} != 'disabled'">
                        <xen:if hascontent="true">
                            <xen:contentcheck>
                            <xen:if is="{$news.attach}">
                                <a href="{xen:link threads, $news}"><img src="{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" /></a>
                            <xen:elseif is="{$news.medio}" />
                                <div style="background: url('{xen:helper medio, $news.medio}') no-repeat;">
                                    <a href="{xen:link 'full:media/popout', $news.medio}" class="OverlayTrigger"><img src="styles/8wayrun/EWRmedio_play.png" width="160" height="90" /></a>
                                </div>
                            <xen:elseif is="{$news.image}" />
                                <a href="{xen:link threads, $news}"><img src="{$news.image}" alt="{$news.image}" /></a>
                            <xen:else />
                                <xen:avatar user="$news" size="m" itemprop="photo" />
                            </xen:if>
                            </xen:contentcheck>
                        </xen:if>
                    </xen:if>
                 
                                          <span class="title"><a href="{xen:link threads, $news}">{$news.title}</a></span>
                </div>
                 <xen:elseif is="{$i} < 4"/>
                <div class="items2">
                       <xen:if is="{$news.promote_icon} != 'disabled'">
                        <xen:if hascontent="true">
                            <xen:contentcheck>
                            <xen:if is="{$news.attach}">
                                <a href="{xen:link threads, $news}"><img src="{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" /></a>
                            <xen:elseif is="{$news.medio}" />
                                <div style="background: url('{xen:helper medio, $news.medio}') no-repeat;">
                                    <a href="{xen:link 'full:media/popout', $news.medio}" class="OverlayTrigger"><img src="styles/8wayrun/EWRmedio_play.png" width="160" height="90" /></a>
                                </div>
                            <xen:elseif is="{$news.image}" />
                                <a href="{xen:link threads, $news}"><img src="{$news.image}" alt="{$news.image}" /></a>
                            <xen:else />
                                <xen:avatar user="$news" size="m" itemprop="photo" />
                            </xen:if>
                            </xen:contentcheck>
                        </xen:if>
                    </xen:if>
                                         <span class="title"><a href="{xen:link threads, $news}">{$news.title}</a></span>
                    </div>
                     <xen:elseif is="{$i} < 5"/>
                     </div>
                     <div class="slide02">            
                <div class="items3">
                    <xen:if is="{$news.promote_icon} != 'disabled'">
                        <xen:if hascontent="true">
                            <xen:contentcheck>
                            <xen:if is="{$news.attach}">
                                <a href="{xen:link threads, $news}"><img src="{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" /></a>
                            <xen:elseif is="{$news.medio}" />
                                <div style="background: url('{xen:helper medio, $news.medio}') no-repeat;">
                                    <a href="{xen:link 'full:media/popout', $news.medio}" class="OverlayTrigger"><img src="styles/8wayrun/EWRmedio_play.png" width="160" height="90" /></a>
                                </div>
                            <xen:elseif is="{$news.image}" />
                                <a href="{xen:link threads, $news}"><img src="{$news.image}" alt="{$news.image}" /></a>
                            <xen:else />
                                <xen:avatar user="$news" size="m" itemprop="photo" />
                            </xen:if>
                            </xen:contentcheck>
                        </xen:if>
                    </xen:if>
                                          <span class="title"><a href="{xen:link threads, $news}">{$news.title}</a></span>
                 </div>
                 <xen:else />
                 <div class="items3 items3_1">
                  
    <xen:if is="{$news.promote_icon} != 'disabled'">
    <xen:if hascontent="true">
    <xen:contentcheck>
    <xen:if is="{$news.attach}">
    <a href="{xen:link threads, $news}"><img src="{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" /></a>
    <xen:elseif is="{$news.medio}" />
    <div style="background: url('{xen:helper medio, $news.medio}') no-repeat;">
    <a href="{xen:link 'full:media/popout', $news.medio}" class="OverlayTrigger"><img src="styles/8wayrun/EWRmedio_play.png" width="160" height="90" /></a>
    </div>
    <xen:elseif is="{$news.image}" />
    <a href="{xen:link threads, $news}"><img src="{$news.image}" alt="{$news.image}" /></a>
    <xen:else />
    <xen:avatar user="$news" size="m" itemprop="photo" />
    </xen:if>
    </xen:contentcheck>
    </xen:if>
    </xen:if>
    <span class="title"><a href="{xen:link threads, $news}">{$news.title}</a></span>
                </div>
                </div>
          </xen:if>
        </xen:foreach>       
        <div class="clear"></div>
    </div>
     
  5. blaysku

    blaysku Member

    Bài viết:
    230
    Likes :
    95
    sửa recentnews thành
    PHP:
    <xen:require css="message_user_info.css" />
    <
    xen:require css="bb_code.css" />
    <
    xen:require css="EWRblock_RecentNews.css" />

    <
    div id="recentNews">
           <
    div class="header_rc"><div class="title_rc">Tin mới nhất</div></div>
        <
    xen:foreach loop="$RecentNewsvalue="$news">
            <
    div class="section sectionMainportal recentNews" id="{$news.thread_id}">
                            <
    div class="cms_congnghe_img">
                    <
    xen:if is="{$news.promote_icon} != 'disabled'">
                    <
    xen:if hascontent="true">

                                <
    xen:contentcheck>
                                <
    xen:if is="{$news.attach}">
                                    <
    a href="{xen:link threads, $news}"><img src="http://res.cloudinary.com/tint/image/fetch/w_500,h_333,c_thumb/http://ytuonglamgiau.vn/{$news.attach.thumbnailUrl}alt="{$news.attach.filename}/></a>
                                <
    xen:elseif is="{$news.medio}/>
                                    <
    div style="background: url('{xen:helper medio, $news.medio}') no-repeat;">
                                        <
    a href="{xen:link 'full:media/media/popout', $news.medio}" class="OverlayTrigger"><img src="styles/8wayrun/EWRmedio_play.png" width="160" height="90" /></a>
                                    </
    div>
                                <
    xen:elseif is="{$news.image}/>
                                    <
    a href="{xen:link threads, $news}"><img src="http://res.cloudinary.com/tint/image/fetch/w_500,h_333,c_thumb/{$news.image}alt="{$news.image}/></a>
                                <
    xen:else />
                                    <
    a href="{xen:link threads, $news}"><xen:avatar user="$newssize="l" itemprop="photo" /></a>
                                </
    xen:if>
                                </
    xen:contentcheck>
                    </
    xen:if>
                    </
    xen:if>
                           </
    div>
         
                           <
    div class="right_ct">
                             <
    div class="subHeadingportal">
                              <
    a href="{xen:link threads, $news}" class="newsTitle">{xen:helper threadPrefix$news}{$news.title}</a>
                              <
    xen:if is="{$visitor.permissions.EWRporta.canPromote}">
                    (<
    a href="{xen:link 'threads/edit', $news}" class="OverlayTrigger">{xen:phrase edit}</a>)
                  </
    xen:if>
                              <
    div class="edit_btn" style="float: right; white-space: nowrap;">
                               </
    div>
                             </
    div>
                <
    div class="messageContent baseHtml">
                    <
    div class="postedBy">
                        <
    span class="posted iconKey">{xen:phrase by_x_at_y,
                            
    'user=<a href="{xen:link members, $news}" class="username">{$news.username}</a>,',
                            
    'date=<a href="{xen:link threads, $news}">{xen:time $news.post_date, 'absolute'}</a>'}</span>
                    </
    div>
                    <
    div class="newsText">{xen:helper snippet$news.message300}</div>
                    <
    div class="postedStat">
                <
    span class="views"><span></span>{xen:number $news.view_count}</span>
                <
    span class="likes"><span></span>{xen:number $news.first_post_likes}</span>
                <
    span class="comments iconKey"><a href="{xen:link threads/unread, $news}"><span></span>{xen:number $news.reply_count}</a></span>

                    </
    div>
                            <
    div class="clearFix"></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:pagenav link="articles" linkdata="{$category}page="{$page}perpage="{$option.limit}total="{$option.count}/>
            </
    xen:if>
            </
    xen:contentcheck>
        </
    div>
        </
    xen:if>
    </
    div>
     
    thb2014 thích bài này.
  6. thb2014

    thb2014 New Member

    Bài viết:
    76
    Likes :
    11
    recentnews1 thì sao bác? nó cũng bị như vậy?
     
  7. thb2014

    thb2014 New Member

    Bài viết:
    76
    Likes :
    11
    nó bị một số lỗi bác nào giúp với.
    wf_widget_threads
    Mã:
    <style>
    .xp-thread-top .clear{
    clear:both;
    }
    .xp-thread-bottom .xp-left{
    float:left;
    }
    .xp-thread-bottom .xp-right a{
    font-size: 15px;
    }
    .sidebar .avatarList .avatar img {
    width:60px;
    height:60px;
    }
    </style>
    <xen:if hascontent="true">
        <div class="avatarList">
            <ul>
                <xen:contentcheck>
               <xen:foreach loop="$new" value="$thread">
                   <li>
                   <div class="xp-thread-bottom">
    <div class="xp-left">
    <xen:if is="{$thread.attachment}">
    <a href="{xen:link threads, $thread}" class="avatar" class="Tooltip">
    <img src="{$thread.attachment}" alt="{$thread.title}" title="{$thread.title}" />
    </a>
    <xen:else />
    <xen:avatar user="$thread" size="m" img="true" />
    </xen:if>
    </div>
                                <div class="xp-right">
       <xen:include template="wf_widget_threads_thread_title">
    <xen:set var="$_showPrefix">{$widget.options.display.show_prefix}</xen:set>
    </xen:include>
    <div class="userTitle">{xen:phrase wf_x_posted, 'user={$thread.username}'} <xen:datetime time="{$thread.post_date}" /></div>
                                </div>
                            </div>
                   </li>
               </xen:foreach>
               <xen:foreach loop="$recent" value="$thread">
                   <li>
                   <div class="xp-thread-bottom">
    <div class="xp-left">
    <xen:if is="{$thread.attachment}">
    <a href="{xen:link threads, $thread}" class="avatar" class="Tooltip">
    <img src="{$thread.attachment}" alt="{$thread.title}" title="{$thread.title}" />
    </a>
    <xen:else />
    <xen:avatar user="$thread" size="m" img="true" />
    </xen:if>
    </div>
                                <div class="xp-right">
                               <xen:include template="wf_widget_threads_thread_title">
    <xen:set var="$_showPrefix">{$widget.options.display.show_prefix}</xen:set>
    <xen:set var="$_threadLink">{xen:if '{$visitor.user_id} > 0', {xen:link threads/unread, $thread}, {xen:link posts, {xen:array 'post_id={$thread.last_post_id}'}}}</xen:set>
    </xen:include>
    <div class="userTitle">{xen:phrase wf_x_replied, 'user={$thread.username}'} <xen:datetime time="{$thread.last_post_date}" /></div>
                                </div>
                            </div>
                   </li>
               </xen:foreach>
               <xen:foreach loop="$popular" value="$thread">
                   <li>
                   <div class="xp-thread-bottom">
    <div class="xp-left">
    <xen:if is="{$thread.attachment}">
    <a href="{xen:link threads, $thread}" class="avatar" class="Tooltip">
    <img src="{$thread.attachment}" alt="{$thread.title}" title="{$thread.title}" />
    </a>
    <xen:else />
    <xen:avatar user="$thread" size="m" img="true" />
    </xen:if>
    </div>
                                <div class="xp-right">
                               <xen:include template="wf_widget_threads_thread_title">
                                    <xen:set var="$_showPrefix">{$widget.options.display.show_prefix}</xen:set>
    </xen:include>
    <div class="userTitle">{xen:phrase wf_x_posted, 'user={$thread.username}'} <xen:datetime time="{$thread.post_date}" /></div>
                                </div>
                            </div>
                   </li>
               </xen:foreach>
                    <xen:foreach loop="$mostReplied" value="$thread">
                   <li>
                   <div class="xp-thread-bottom">
    <div class="xp-left">
    <xen:if is="{$thread.attachment}">
    <a href="{xen:link threads, $thread}" class="avatar class="Tooltip">
    <img src="{$thread.attachment}" alt="{$thread.title}" title="{$thread.title}" />
    </a>
    <xen:else />
    <xen:avatar user="$thread" size="m" img="true" />
    </xen:if>
    </div>
                                <div class="xp-right">
                               <xen:include template="wf_widget_threads_thread_title">
                                    <xen:set var="$_showPrefix">{$widget.options.display.show_prefix}</xen:set>
    </xen:include>
    <div class="userTitle">{xen:phrase wf_x_posted, 'user={$thread.username}'}, {xen:phrase replies}: {xen:number $thread.reply_count}</div>
                                </div>
                            </div>
                       </li>
               </xen:foreach>
                    <xen:foreach loop="$mostLiked" value="$thread">
                        <li>
                   <div class="xp-thread-bottom">
    <div class="xp-left">
    <xen:if is="{$thread.attachment}">
    <a href="{xen:link threads, $thread}" class="avatar" class="Tooltip">
    <img src="{$thread.attachment}" alt="{$thread.title}" title="{$thread.title}" />
    </a>
    <xen:else />
    <xen:avatar user="$thread" size="m" img="true" />
    </xen:if>
    </div>
                                <div class="xp-right">
                               <xen:include template="wf_widget_threads_thread_title">
                                    <xen:set var="$_showPrefix">{$widget.options.display.show_prefix}</xen:set>
    </xen:include>
    <div class="userTitle">
                                    {xen:phrase wf_x_posted, 'user=<a href="{xen:link 'members', {$thread}}">{$thread.username}</a>'},
                                    {xen:phrase likes}: <a href="{xen:link 'posts/likes', {xen:array 'post_id={$thread.first_post_id}'}}" class="OverlayTrigger">{xen:number $thread.first_post_likes}</a>
                                </div>
                                </div>
                            </div>
                         </li>
               </xen:foreach>
               <xen:foreach loop="$polls" value="$thread">
                   <li>
                   <div class="xp-thread-bottom">
    <div class="xp-left">
    <xen:if is="{$thread.attachment}">
    <a href="{xen:link threads, $thread}" class="avatar" class="Tooltip">
    <img src="{$thread.attachment}" alt="{$thread.title}" title="{$thread.title}" />
    </a>
    <xen:else />
    <xen:avatar user="$thread" size="m" img="true" />
    </xen:if>
    </div>
                                <div class="xp-right">
                               <xen:include template="wf_widget_threads_thread_title">
    <xen:set var="$_showPrefix">{$widget.options.display.show_prefix}</xen:set>
    </xen:include>
    <div class="userTitle">{xen:phrase wf_x_posted, 'user={$thread.username}'} <xen:datetime time="{$thread.post_date}" /></div>
                                </div>
                            </div>
                          </li>
               </xen:foreach>
                </xen:contentcheck>
            </ul>
        </div>
    </xen:if>
    recenews

    Mã:
    <xen:require css="message_user_info.css" />
    <xen:require css="bb_code.css" />
    <xen:require css="EWRblock_RecentNews.css" />
    
    <div id="recentNews">
           <div class="header_rc"><div class="title_rc">Tin mới nhất</div></div>
        <xen:foreach loop="$RecentNews" value="$news">
            <div class="section sectionMainportal recentNews" id="{$news.thread_id}">
                            <div class="cms_congnghe_img">
                    <xen:if is="{$news.promote_icon} != 'disabled'">
                    <xen:if hascontent="true">
    
                                <xen:contentcheck>
                                <xen:if is="{$news.attach}">
                                    <a href="{xen:link threads, $news}"><img src="http://res.cloudinary.com/tint/image/fetch/w_500,h_333,c_thumb/http://ytuonglamgiau.vn/{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" /></a>
                                <xen:elseif is="{$news.medio}" />
                                    <div style="background: url('{xen:helper medio, $news.medio}') no-repeat;">
                                        <a href="{xen:link 'full:media/media/popout', $news.medio}" class="OverlayTrigger"><img src="styles/8wayrun/EWRmedio_play.png" width="160" height="90" /></a>
                                    </div>
                                <xen:elseif is="{$news.image}" />
                                    <a href="{xen:link threads, $news}"><img src="http://res.cloudinary.com/tint/image/fetch/w_500,h_333,c_thumb/{$news.image}" alt="{$news.image}" /></a>
                                <xen:else />
                                    <a href="{xen:link threads, $news}"><xen:avatar user="$news" size="l" itemprop="photo" /></a>
                                </xen:if>
                                </xen:contentcheck>
                    </xen:if>
                    </xen:if>
                           </div>
       
                           <div class="right_ct">
                             <div class="subHeadingportal">
                              <a href="{xen:link threads, $news}" class="newsTitle">{xen:helper threadPrefix, $news}{$news.title}</a>
                              <xen:if is="{$visitor.permissions.EWRporta.canPromote}">
                    (<a href="{xen:link 'threads/edit', $news}" class="OverlayTrigger">{xen:phrase edit}</a>)
                  </xen:if>
                              <div class="edit_btn" style="float: right; white-space: nowrap;">
                               </div>
                             </div>
                <div class="messageContent baseHtml">
                    <div class="postedBy">
                        <span class="posted iconKey">{xen:phrase by_x_at_y,
                            'user=<a href="{xen:link members, $news}" class="username">{$news.username}</a>,',
                            'date=<a href="{xen:link threads, $news}">{xen:time $news.post_date, 'absolute'}</a>'}</span>
                    </div>
                    <div class="newsText">{xen:helper snippet, $news.message, 300}</div>
                    <div class="postedStat">
                <span class="views"><span></span>{xen:number $news.view_count}</span>
                <span class="likes"><span></span>{xen:number $news.first_post_likes}</span>
                <span class="comments iconKey"><a href="{xen:link threads/unread, $news}"><span></span>{xen:number $news.reply_count}</a></span>
    
                    </div>
                            <div class="clearFix"></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:pagenav link="articles" linkdata="{$category}" page="{$page}" perpage="{$option.limit}" total="{$option.count}" />
            </xen:if>
            </xen:contentcheck>
        </div>
        </xen:if>
    </div>
    recenews1

    Mã:
    <xen:require css="message_user_info.css" />
    <xen:require css="bb_code.css" />
    <xen:require css="EWRblock_RecentNews1.css" />
    
    
    <div class="feature-slider">
    <div class="slide01">
    <xen:foreach loop="$RecentNews1" value="$news" i="$i">
               <xen:if is="{$i} < 2">
            <div class="items1">
            <xen:if is="{$news.promote_icon} != 'disabled'">
                        <xen:if hascontent="true">
                            <xen:contentcheck>
                            <xen:if is="{$news.attach}">
                                <a href="{xen:link threads, $news}"><img src="{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" /></a>
                            <xen:elseif is="{$news.medio}" />
                                <div style="background: url('{xen:helper medio, $news.medio}') no-repeat;">
                                    <a href="{xen:link 'full:media/popout', $news.medio}" class="OverlayTrigger"><img src="styles/8wayrun/EWRmedio_play.png" width="160" height="90" /></a>
                                </div>
                            <xen:elseif is="{$news.image}" />
                                <a href="{xen:link threads, $news}"><img src="{$news.image}" alt="{$news.image}" /></a>
                            <xen:else />
                                <xen:avatar user="$news" size="m" itemprop="photo" />
                            </xen:if>
                            </xen:contentcheck>
                        </xen:if>
                    </xen:if>
                
                                          <span class="title"><a href="{xen:link threads, $news}">{$news.title}</a></span>
                </div>
                 <xen:elseif is="{$i} < 4"/>
                <div class="items2">
                       <xen:if is="{$news.promote_icon} != 'disabled'">
                        <xen:if hascontent="true">
                            <xen:contentcheck>
                            <xen:if is="{$news.attach}">
                                <a href="{xen:link threads, $news}"><img src="{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" /></a>
                            <xen:elseif is="{$news.medio}" />
                                <div style="background: url('{xen:helper medio, $news.medio}') no-repeat;">
                                    <a href="{xen:link 'full:media/popout', $news.medio}" class="OverlayTrigger"><img src="styles/8wayrun/EWRmedio_play.png" width="160" height="90" /></a>
                                </div>
                            <xen:elseif is="{$news.image}" />
                                <a href="{xen:link threads, $news}"><img src="{$news.image}" alt="{$news.image}" /></a>
                            <xen:else />
                                <xen:avatar user="$news" size="m" itemprop="photo" />
                            </xen:if>
                            </xen:contentcheck>
                        </xen:if>
                    </xen:if>
                                         <span class="title"><a href="{xen:link threads, $news}">{$news.title}</a></span>
                    </div>
                     <xen:elseif is="{$i} < 5"/>
                     </div>
                     <div class="slide02">           
                <div class="items3">
                    <xen:if is="{$news.promote_icon} != 'disabled'">
                        <xen:if hascontent="true">
                            <xen:contentcheck>
                            <xen:if is="{$news.attach}">
                                <a href="{xen:link threads, $news}"><img src="{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" /></a>
                            <xen:elseif is="{$news.medio}" />
                                <div style="background: url('{xen:helper medio, $news.medio}') no-repeat;">
                                    <a href="{xen:link 'full:media/popout', $news.medio}" class="OverlayTrigger"><img src="styles/8wayrun/EWRmedio_play.png" width="160" height="90" /></a>
                                </div>
                            <xen:elseif is="{$news.image}" />
                                <a href="{xen:link threads, $news}"><img src="{$news.image}" alt="{$news.image}" /></a>
                            <xen:else />
                                <xen:avatar user="$news" size="m" itemprop="photo" />
                            </xen:if>
                            </xen:contentcheck>
                        </xen:if>
                    </xen:if>
                                          <span class="title"><a href="{xen:link threads, $news}">{$news.title}</a></span>
                 </div>
                 <xen:else />
                 <div class="items3 items3_1">
                 
    <xen:if is="{$news.promote_icon} != 'disabled'">
    <xen:if hascontent="true">
    <xen:contentcheck>
    <xen:if is="{$news.attach}">
    <a href="{xen:link threads, $news}"><img src="{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" /></a>
    <xen:elseif is="{$news.medio}" />
    <div style="background: url('{xen:helper medio, $news.medio}') no-repeat;">
    <a href="{xen:link 'full:media/popout', $news.medio}" class="OverlayTrigger"><img src="styles/8wayrun/EWRmedio_play.png" width="160" height="90" /></a>
    </div>
    <xen:elseif is="{$news.image}" />
    <a href="{xen:link threads, $news}"><img src="{$news.image}" alt="{$news.image}" /></a>
    <xen:else />
    <xen:avatar user="$news" size="m" itemprop="photo" />
    </xen:if>
    </xen:contentcheck>
    </xen:if>
    </xen:if>
    <span class="title"><a href="{xen:link threads, $news}">{$news.title}</a></span>
                </div>
                </div>
          </xen:if>
        </xen:foreach>      
        <div class="clear"></div>
    </div>
    và báo lỗi:ErrorException: Undefined index: sticky - library/EWRporta/Block/RecentNews.php:17
    có hình kèm theo.
    hình y5 làm theo bài này:
    http://vxf.vn/threads/widget-framework-thread-thumbnails-giong-tinh-te.5363/
    nó mất tiêu cái tiêu đề?
    xin cảm ơn.
     

    Các file đính kèm:

    • y5.JPG
      y5.JPG
      Kích thước:
      140.1 KB
      Đọc:
      0
    • y1.JPG
      y1.JPG
      Kích thước:
      92.6 KB
      Đọc:
      0
    • y2.JPG
      y2.JPG
      Kích thước:
      134.3 KB
      Đọc:
      0
    • y3.JPG
      y3.JPG
      Kích thước:
      150.3 KB
      Đọc:
      0
    • y4.JPG
      y4.JPG
      Kích thước:
      90.2 KB
      Đọc:
      0
  8. thb2014

    thb2014 New Member

    Bài viết:
    76
    Likes :
    11
    uppppppppp
     
comments powered by Disqus

Chia sẻ trang này

Đang tải...