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

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

ThaiSEOBoard.comพัฒนาเว็บไซต์CMS & Free Script[SMF2.0.9]++ขอวิธีย้ายกระทู้ล่าสุดมาไว้ด้านบนหน่อยครับ ++
หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: [SMF2.0.9]++ขอวิธีย้ายกระทู้ล่าสุดมาไว้ด้านบนหน่อยครับ ++  (อ่าน 560 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
boardseo
Global Moderator
เจ้าพ่อบอร์ดเสียว
*****

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

กระทู้: 4,643



ดูรายละเอียด เว็บไซต์
« เมื่อ: 27 พฤศจิกายน 2014, 23:57:22 »

ผมลองค้นจากกูเกิลแล้ว ทำตามก็ทำไม่ได้เช่น

แก้ไขที่ไฟล์ /Themes/default/BoardIndex.template.php
ค้นหา
โค๊ด:
// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']) && (!empty($context['latest_posts']) || !empty($context['latest_post'])))
{
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'], '" /></a>
', $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'], '</a>
</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'], '</a></strong>
<p id="infocenter_onepost" class="middletext">
', $txt['recent_view'], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ')<br />
</p>';
}
// Show lots of posts.
elseif (!empty($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>';
}

แทนที่ด้วย
โค๊ด:
//remove by recent posts.

ค้นหา
โค๊ด:
// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))

วางต่อข้างล่าง
โค๊ด:
// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<h4 class="titlebg"><span class="left"></span>
<a href="', $scripturl, '?action=recent"><img class="icon" src="', $settings['images_url'], '/post/xx.gif" alt="', $txt['recent_posts'], '" /></a>
<span>', $txt['recent_posts'], '</span>
</h4>
<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'], '</a>
</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'], '</a></strong>
<p id="infocenter_onepost" class="middletext">
', $txt['recent_view'], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ')<br />
</p>';
}
// Show lots of posts.
elseif (!empty($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 recent posts

ที่มา:http://custom.simplemachines.org/mods/index.php?action=parse

=====================================================
หรือจะเป็นแบบนี้ก็ไม่ได้ครับ
ไฟล์ Boardindex.template.php
ค้นหาโค้ดด้านล่างนี้แล้วลบทิ้งครับ
โค๊ด:
// This is the "Recent Posts" bar.
if (!empty($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'], '" /></a>
', $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'], '</a>
</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'], '</a></strong>
<p id="infocenter_onepost" class="middletext">
', $txt['recent_view'], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ')<br />
</p>';
}
// Show lots of posts.
elseif (!empty($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>';
}

จากนั้นหาโค้ดนี้
โค๊ด:
<table class="table_list">';

แล้วเพิ่มโค้ดนี้ไว้หลังที่หาครับ
โค๊ด:
// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<h4 class="titlebg"><span class="left"></span>
<a href="', $scripturl, '?action=recent"><img class="icon" src="', $settings['images_url'], '/post/xx.gif" alt="', $txt['recent_posts'], '" /></a>
<span>', $txt['recent_posts'], '</span>
</h4>
<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'], '</a>
</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'], '</a></strong>
<p id="infocenter_onepost" class="middletext">
', $txt['recent_view'], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ')<br />
</p>';
}
// Show lots of posts.
elseif (!empty($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>';
}
===================================================

หรืออื่นลองทำตามแล้วไม่ได้ซักท่าน วอนท่านเทพช่วยด้วยครับ  wanwan017 wanwan017
บันทึกการเข้า

nociouz
หัวหน้าแก๊งเสียว
*

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

กระทู้: 2,021



ดูรายละเอียด
« ตอบ #1 เมื่อ: 27 พฤศจิกายน 2014, 23:59:07 »

ทำได้อยู่นะครับ
ต้องดูดีๆ หน่อย ดูที่หัวท้ายก็พอ
บันทึกการเข้า
boardseo
Global Moderator
เจ้าพ่อบอร์ดเสียว
*****

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

กระทู้: 4,643



ดูรายละเอียด เว็บไซต์
« ตอบ #2 เมื่อ: 28 พฤศจิกายน 2014, 00:05:07 »

ทำได้อยู่นะครับ
ต้องดูดีๆ หน่อย ดูที่หัวท้ายก็พอ

วิธีไหนครับท่าน อันแรกหรืออันสอง  wanwan044
บันทึกการเข้า

boardseo
Global Moderator
เจ้าพ่อบอร์ดเสียว
*****

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

กระทู้: 4,643



ดูรายละเอียด เว็บไซต์
« ตอบ #3 เมื่อ: 28 พฤศจิกายน 2014, 00:14:55 »

ทำได้อยู่นะครับ
ต้องดูดีๆ หน่อย ดูที่หัวท้ายก็พอ

วิธีไหนครับท่าน อันแรกหรืออันสอง  wanwan044

โอเคร มาแล้ว 555+ ลืมตั้งค่าโชว์กระทู้  wanwan012
บันทึกการเข้า

หน้า: [1]   ขึ้นบน
พิมพ์