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], ' "', $context['latest_post']['link'], '" ', $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], ' "', $context['latest_post']['link'], '" ', $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>'; } อย่าลืม สำรองไฟล์ต้นฉบับไว้ก่อนนะครับ :  เครดิต: ลุงหนุ่ย UnclEo ณ dexmore.com
|