[ SMF 2.0.2 ] ช่วยด้วยครับ ลองหาแล้ว แต่หาไม่เจอสักที

เริ่มโดย elunius, 02 มกราคม 2012, 18:39:15

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

elunius

คือ อยากสลับตำแหน่งระหว่าง ช่อง"กระทู้ล่าสุด" กับ ช่อง"ตอบ/อ่าน"

ให้ช่อง "ตอบ/อ่าน" มาอยู่ตรงกลางแทน

(จากรูปที่ 1 ไปเป็นเหมือนรูปที่ 2 น่ะครับ)

ต้องแก้ตรงไหนครับ งมมา 2 วันแล้วครับ

#1 จากแบบนี้


#2 ไปเป็นแบบนี้


ขอบคุณมากๆครับ  :wanwan017:

elunius


ganginwpop

ปกติจะอยู่ใน Boardindex.template.php ครับ

ต้อง firebug ดู แล้วหาดูครับ
รับโม ปรับแต่ง ติดตั้ง แก้ไข [direct=http://www.simpleyoursite.com]บอร์ด SMF[/direct] ผลงาน [direct=http://www.simpleyoursite.com/portfolio.html]คลิกที่นี่[/direct]

อ่านการ์ตูนออนไลน์ ที่ MangaOnlines.com
Auto Pic Post to SMF from Mthai DEMO : MangaOnlines.com

[direct=http://www.simpleyoursite.com]รับทำเว็บไซต์เชียงใหม่[/direct] | [direct=http://www.simpleyoursite.com]รับทำเว็บไซต์[/direct]

elunius

ขอบคุณมากครับ ลองใช้ Firebug ดูแ้ล้วนะครับ แก้ส่วนล่างได้แล้ว ยังติดอยู่แค่ส่วนหัว ตามรูปครับ



โค้ด (Theme/zentoa/MessageIndex.template.php) เลือก
{
echo '
<th scope="col" class="first_th" width="6%">&nbsp;</th>
<th scope="col" class="lefttext2"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a> / <a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['started_by'], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="righttext" width="25%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['last_post'], '</a></th>';

// Show a "select all" box for quick moderation?
if (empty($context['can_quick_mod']))
echo '
<th scope="col" class="lefttext last_th" width="15%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=replies', $context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['replies'], $context['sort_by'] == 'replies' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a> / <a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['views'], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
else
echo '
<th scope="col" class="lefttext" width="15%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=replies', $context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['replies'], $context['sort_by'] == 'replies' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a> / <a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['views'], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';

// Show a "select all" box for quick moderation?
if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] == 1)
echo '
<th scope="col" class="last_th" width="24"><input type="checkbox" onclick="invertAll(this, this.form, \'topics[]\');" class="input_check" /></th>';

// If it's on in "image" mode, don't show anything but the column.
elseif (!empty($context['can_quick_mod']))
echo '
<th class="last_th" width="4%">&nbsp;</th>';

}


ผมลองสลับบรรทัด <th scope="col" class="righttext" width="25%"> ... <a></th>'; ดูแล้ว มัน error page น่ะครับพี่