SMF Thailand.
SMF Development => SMF Coding Discussion => ข้อความที่เริ่มโดย: КёngЯacing ที่ 6/11/05, 20:09:41
-
หลายคนอาจจะเคยประสบปัญหาการแยกแยะระหว่างหัวข้อติดหมุดกับหัวข้อปกติ โค้ดตัวนี้ช่วยคุณได้
เปิดไฟล์ Themes/defeult/MessageIndex.template.php
<search for> ค้นหา
foreach ($context['topics'] as $topic)
{
</search for>
<Add after> ใส่ต่อจากที่ค้นหา
if (isset($previousTopicClass) && strpos($previousTopicClass, 'sticky') !== false && !$topic['is_sticky'])
echo '
<tr class="titlebg" style="font-size: 1ex;">
<td colspan="2"> </td>
<td colspan="7"> </td>
</tr>';
$previousTopicClass = $topic['class'];
</Add after>
ดูตัวอย่างได้ที่ http://rcweb.net/forums-test/?board=2.0
Code from RacingWeb Forum Develop SMF 1.1
-
ขอบคุณค่ะ
เอาไปใช้ที่เว็บ JustUsers.net ด้วยแล้ว :)