SMF Support > ไทย (Thai)

เอารวมกระทู้ล่าสุดมาไว้ข้างบนยังครับ

(1/4) > >>

thairealmoney:
เอารวมกระทู้ล่าสุดที่เอาไว้ดูว่าล่าสุดใครโพสไรมั่ง ตอนนี้มันอยู่ข้างล่าง ทำยังให้ให้มันมาอยู่ข้างบนครับ (ข้างบนของตารางหมวดหมู่ของกระทู้หน่ะครับ)
ใครรู้ช่วยตอบด้วยครับ เอาแบบละเอียดๆหน่อยนะครับ มือใหม่เพิ่งหัดทำได้สี่ห้าวัน
ขอบคุณครับ  :)

Graphic-D:
เข้าไปแก้ไขไฟล์ Boardindex.template.php
(อย่าลืมคัดลอกไฟล์นี้ไว้ก่อนเผื่อพลาดจะได้เอามาทับได้เหมือนเก่า)

ค้นหาโค้ดนี้ copy ไว้แล้วลบออก


--- Code: ---// This is the "Recent Posts" bar. 
   if (!emptyempty($settings['number_recent_posts'])) 
   { 
      echo ' 
         <div class="title_barIC"> 
            <h4 class="titlebg"> 
               <span class="ie6_header floatleft"> 
                  <a href="', $scripturl, '?action=recent"><img class="icon" src="', $settings['images_url'], '/post/xx.gif" alt="', $txt['recent_posts'], '" />[/url] 
                  ', $txt['recent_posts'], ' 
               </span> 
            </h4> 
         </div> 
         <div class="hslice" id="recent_posts_content"> 
            <div class="entry-title" style="display: none;">', $context['forum_name_html_safe'], ' - ', $txt['recent_posts'], '</div> 
            <div class="entry-content" style="display: none;"> 
               <a rel="feedurl" href="', $scripturl, '?action=.xml;type=webslice">', $txt['subscribe_webslice'], '[/url] 
            </div>'; 
 
      // Only show one post. 
      if ($settings['number_recent_posts'] == 1) 
      { 
         // latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.) 
         echo ' 
            <strong><a href="', $scripturl, '?action=recent">', $txt['recent_posts'], '[/url]</strong> 
            <p id="infocenter_onepost" class="middletext"> 
               ', $txt['recent_view'], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ') 
 
            </p>'; 
      } 
      // Show lots of posts. 
      elseif (!emptyempty($context['latest_posts'])) 
      { 
         echo ' 
            <dl id="ic_recentposts" class="middletext">'; 
 
         /* Each post in latest_posts has:
               board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
               subject, short_subject (shortened with...), time, link, and href. */ 
         foreach ($context['latest_posts'] as $post) 
            echo ' 
               <dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt> 
               <dd>', $post['time'], '</dd>'; 
         echo ' 
            </dl>'; 
      } 
      echo ' 
         </div>'; 
   }

--- End code ---

ค้นหาโค้ดนี้ แล้วเอาโค้ดที่ copy ด้านบนมาวางไว้ที่บรรทัดล่างต่อจากโค้ดนี้


--- Code: ---<table class="table_list">';
--- End code ---

wissanu:
ขอบคุณครับกำลังหาอยู่เลย

thairealmoney:

--- Quote from: Graphic-D on August 11, 2012, 09:52:51 AM ---เข้าไปแก้ไขไฟล์ Boardindex.template.php
(อย่าลืมคัดลอกไฟล์นี้ไว้ก่อนเผื่อพลาดจะได้เอามาทับได้เหมือนเก่า)

ค้นหาโค้ดนี้ copy ไว้แล้วลบออก


--- Code: ---// This is the "Recent Posts" bar. 
   if (!emptyempty($settings['number_recent_posts'])) 
   { 
      echo ' 
         <div class="title_barIC"> 
            <h4 class="titlebg"> 
               <span class="ie6_header floatleft"> 
                  <a href="', $scripturl, '?action=recent"><img class="icon" src="', $settings['images_url'], '/post/xx.gif" alt="', $txt['recent_posts'], '" />[/url] 
                  ', $txt['recent_posts'], ' 
               </span> 
            </h4> 
         </div> 
         <div class="hslice" id="recent_posts_content"> 
            <div class="entry-title" style="display: none;">', $context['forum_name_html_safe'], ' - ', $txt['recent_posts'], '</div> 
            <div class="entry-content" style="display: none;"> 
               <a rel="feedurl" href="', $scripturl, '?action=.xml;type=webslice">', $txt['subscribe_webslice'], '[/url] 
            </div>'; 
 
      // Only show one post. 
      if ($settings['number_recent_posts'] == 1) 
      { 
         // latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.) 
         echo ' 
            <strong><a href="', $scripturl, '?action=recent">', $txt['recent_posts'], '[/url]</strong> 
            <p id="infocenter_onepost" class="middletext"> 
               ', $txt['recent_view'], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ') 
 
            </p>'; 
      } 
      // Show lots of posts. 
      elseif (!emptyempty($context['latest_posts'])) 
      { 
         echo ' 
            <dl id="ic_recentposts" class="middletext">'; 
 
         /* Each post in latest_posts has:
               board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
               subject, short_subject (shortened with...), time, link, and href. */ 
         foreach ($context['latest_posts'] as $post) 
            echo ' 
               <dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt> 
               <dd>', $post['time'], '</dd>'; 
         echo ' 
            </dl>'; 
      } 
      echo ' 
         </div>'; 
   }

--- End code ---

ค้นหาโค้ดนี้ แล้วเอาโค้ดที่ copy ด้านบนมาวางไว้ที่บรรทัดล่างต่อจากโค้ดนี้


--- Code: ---<table class="table_list">';
--- End code ---

--- End quote ---

ยังไม่เจอเลยครับ (มือใหม่จริงๆ) ไฟล์ Boardindex.template.php มันอยู่ในไหนครับ ผมเจอแต่ index.template.php อยู่ในดฟลเดอร์ Themes ที่ใช้อยู่ไม่ทราบใช่อันเดียวกันไหมครับ ถ้าใช่ผมเปลี่ยนเป็น Themes อื่นแล้ว มันจะมีอันนี้เหมือนกันไหมครับ หาไม่เจอจริงๆ
ขอบคุณครับ

Graphic-D:
ถ้าในแฟ้มธีมที่ใช้ไม่มีไฟล์ BoardIndex.template.php ก็เข้าไปแก้ที่ธีม default ครับ (ลืมบอกไปอันนี้สำหรับเวอร์ชั่น 2.0X)
Themes >> default >> BoardIndex.template.php

Navigation

[0] Message Index

[#] Next page

Go to full version