SMF อยากย้ายการเรียงกระทู้ล่าสุด

เริ่มโดย Mep8.Net, 15 มิถุนายน 2013, 13:21:00

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

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

Mep8.Net

ตามภาพเลยครับ


คือผมอยากย้ายในส่วนของประเภทบอร์ดไปแสดงไว้ด้านหลัง ชื่อผู้ตั้ง/ตอบ หรือด้านหน้าของ วันที่/เวลาที่ตั้ง

ผมต้องแก้ไขและปรับแต่งตรงไหนครับ

(นี่โค้ดในส่วนของกระทู้ล่าสุด ที่อยู่ใน BoardIndex.template.php)
[noae]//Show Recent Post Before Categories
echo '

<div id="upshrinkHeaderIC">
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="bordercolor">
<tr>
<td class="titlebg" colspan="2"><div align=center><style type="text/css">
<!--
.style1 {
color: #FF0000;
font-weight: bold;
}
-->
</style>
<span class="style1">กระทู้ล่าสุด</span></div></td>
</tr>

<tr>
<td class="windowbg2">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td class="smalltext"  valign="top">';
ssi_recentTopics(40);

echo '</td>
</tr>
</table>
</td>
</tr></tr></table>';
[/noae]
 *Link Removed*

tortra

รอผู้รู้ smf มาตอบครับ อยากทราบเหมือนกัน

gooloo

น่าจะโยกโค้ดเป็นชุดได้ป่าวไม่รู้นะ

9designthai

#3
ลองดู .>> // 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>';
}


ในส่วนของ <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>
เป็นตัวกำหนดชื่อกระทู้ ,คนตั้ง, หมวดหมู่ และวันเวลาที่ตั้งกระทู้ครับ

Mep8.Net

ขอบคุณท่าน 9designthai มากๆนะครับ

แต่พอผมลงไปแล้วปรากฏว่าไม่มีขอบตารางเลยครับ

แล้วอีกอย่างเวลาสมาชิกมา ตึ้งกระทู้ หรือตอบกระทู้ ผมอยากให้มันเด้งอัพเดทขึ้นมาเพียงกระทู้เดียวหน่ะครับ โดยไม่จำเป็นต้องมี RE: เด้งขึ้นมาหลายๆกระทู้ ผมเลยไม่รู้ว่าจะต้องลบส่วนไหนออก ยังไงช่วยแนะนำผมด้วยครับ


 *Link Removed*

Mep8.Net

ง่ายๆเลยคือ อยากได้เหมือนของ thaiseoboard.com อ่ะครับ

ใครพอช่วยผมได้บ้าง จะเป็นพระคุณอย่างยิ่งครับ
 *Link Removed*

Mep8.Net

 *Link Removed*

aussawa77

อยากรู้ เหมือนกัน กำลังหาอยู่เลยครับ ขอบคุณครับ :wanwan017:

newbie-pro