ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: ถามหน่อยครับ smf  (อ่าน 559 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
prempcc
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 94
ออฟไลน์ ออฟไลน์

กระทู้: 1,276



ดูรายละเอียด เว็บไซต์
« เมื่อ: 20 พฤษภาคม 2009, 19:25:29 »

คือตอนนี้ผมใช้ smf 1.1.8 คือผมอยากทราบว่าผมจะทำใหมันแสง post ล่าสุดเหมือน thaiseo ยังไงครับขอความกรุณาด้วยครับ Kiss
บันทึกการเข้า

indy-club
ก๊วนเสียว
*

พลังน้ำใจ: 12
ออฟไลน์ ออฟไลน์

กระทู้: 269



ดูรายละเอียด เว็บไซต์
« ตอบ #1 เมื่อ: 20 พฤษภาคม 2009, 19:36:59 »

ผู้ดูแล > ตั้งค่าธีมปัจจุบัน > จำนวนกระทู้ล่าสุดที่แสดงผลบนหน้ารวมบอร์ด 

อยากให้แสดงเท่าไหร่ ก้อใส่จำนวนเป็นตัวเลขเข้าไปเลยครับ  :Smiley
บันทึกการเข้า

HostThaiOnline.com เพราะบริการ...คืองานของเรา
Linux Hosting เริ่มต้น 5 GB ราคาเพียง 800 บาทปีเท่านั้น!
รับประกันความพอใจ ยินดีคืนเงินเต็มจำนวนใน 30 วัน นับตั้งแต่วันแรก ที่ท่านใช้บริการกับเรา
Hotline : 0866672884  MSN & Email : support[at]hostthaionline.com     เพราะบริการ...คืองานของเรา
prempcc
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 94
ออฟไลน์ ออฟไลน์

กระทู้: 1,276



ดูรายละเอียด เว็บไซต์
« ตอบ #2 เมื่อ: 20 พฤษภาคม 2009, 20:10:37 »

ขอบคุณมากครับ

แต่ถามอีกนิดหนึ่งครับจะให้มันแสงข้างบนทำไงเออครับ
บันทึกการเข้า

indy-club
ก๊วนเสียว
*

พลังน้ำใจ: 12
ออฟไลน์ ออฟไลน์

กระทู้: 269



ดูรายละเอียด เว็บไซต์
« ตอบ #3 เมื่อ: 20 พฤษภาคม 2009, 20:24:51 »

ขอบคุณมากครับ

แต่ถามอีกนิดหนึ่งครับจะให้มันแสงข้างบนทำไงเออครับ

file BoardIndex.template.php

ค้นหา ==>>
โค๊ด:
// Show information about events, birthdays, and holidays on the calendar.
เพิ่มไว้ก่อน ==>>
โค๊ด:
echo'
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">';

ค้นหา ==>>
โค๊ด:
// Here's where the "Info Center" starts...
echo '<br />
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">
<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="', $settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
', $txt[685], '
</div>
<div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">';

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=recent"><img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" /></a>
</td>
<td class="windowbg2">';

// 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 '
<b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
<div class="smalltext">
', $txt[234], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
</div>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="0" width="100%" border="0">';

/* 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 '
<tr>
<td class="middletext" valign="top"><b>', $post['link'], '</b> ', $txt[525], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</td>
<td class="middletext" align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
</tr>';
echo '
</table>';
}
echo '
</td>
</tr>';
}
ลบทิ้ง

ค้นหา ==>>
โค๊ด:
// ]]></script>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
</td>
</tr>
</table>';
}
เพิ่มไว้หลัง ==>>
โค๊ด:
// Here's where the "Info Center" starts...
echo '<br />
<div class="tborder" style="margin-bottom: 5px; margin-top: 5px;" ' , $first ? '0;' : '1ex;' , '' , $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' : '', '">
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">
<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="', $settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
', $txt[685], '
</div>
<div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">';

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=recent"><img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" /></a>
</td>
<td class="windowbg2">';

// 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 '
<b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
<div class="smalltext">
', $txt[234], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
</div>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
               <td class="titlebg3" style="text-align:left; padding-left:10px; font-size:10pt;" colspan="1" > ', $txt[70] ,'</td>
               <td class="titlebg3" style="text-align:left; font-size:10pt;">', $txt[29] ,'</td>
<td class="titlebg3" style="text-align:left; font-size:10pt;">', $txt[20] ,'</td>
               <td class="titlebg3" style="text-align:right; padding-right:10px; font-size:10pt;">', $txt[317] ,'</td>
             </tr>';

/* 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 '
<tr>
<td class="windowbg" valign="middle" width="40%" style="padding-left: 10px; font-size:85%">', $post['link'], '</td>
<td class="windowbg" valign="middle" width="15%" style="padding-left: 10px; font-size:85%" nowrap="nowrap">', $post['poster']['link'], '</td>
<td class="windowbg" valign="middle" width="25%" style="padding-left: 10px; font-size:85%" nowrap="nowrap">', $post['board']['link'], '</td>
<td class="windowbg" valign="middle" width="20%" style="padding-left: 10px; font-size:85%" nowrap="nowrap">', $post['time'], '</td>
</tr>';
echo '
</table>';
}
echo '
</td>
</tr>
</table>
</div>
</div>';
}


อย่าลืม สำรองไฟล์ต้นฉบับไว้ก่อนนะครับ  :Smiley

เครดิต: ลุงหนุ่ย UnclEo ณ dexmore.com
บันทึกการเข้า

HostThaiOnline.com เพราะบริการ...คืองานของเรา
Linux Hosting เริ่มต้น 5 GB ราคาเพียง 800 บาทปีเท่านั้น!
รับประกันความพอใจ ยินดีคืนเงินเต็มจำนวนใน 30 วัน นับตั้งแต่วันแรก ที่ท่านใช้บริการกับเรา
Hotline : 0866672884  MSN & Email : support[at]hostthaionline.com     เพราะบริการ...คืองานของเรา
หน้า: [1]   ขึ้นบน
พิมพ์