Elbette yapılır. Ancak Foruma kayıt olurken Durum eklemek gerek.
Sonra aşağıdaki son konular modifikasyonu kullanılabilir.
Ama biraz uğraş ister.
global $smcFunc, $scripturl;
$boards = array(20, 21, 22, 23, 24);
$request = $smcFunc['db_query']('', '
SELECT t.id_topic, m.subject, m.body
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
WHERE t.id_board IN ({array_int:boards})
ORDER BY t.id_topic DESC
LIMIT {int:limit}',
array(
'boards' => $boards,
'limit' => 15,
)
);
$topics = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$topics[] = array(
'id_topic' => $row['id_topic'],
'subject' => $row['subject'],
'body' => $row['body'],
'first_image' => preg_match_all('~\[img\]([^\]]+)\[\/img\]~i', $row['body'], $images) ? '<img src="' . $images[1][0] . '" alt="' . $row['subject'] . '" height="50" width="60" />' : '',
);
$smcFunc['db_free_result']($request);
echo '
<div align="center">
<table border="1" width="100%" style="border-width: 0px">';
foreach ($topics as $topic)
{
echo '
<tr>
<td style="border-style: none; border-width: medium" align="left" height="auto">
<a href="', $scripturl, '?topic=', $topic['id_topic'], '.0">
<font color=red size=2 ALIGN=Center>', shorten_subject($topic['subject'], 30), '</font></a>
</td>
</tr> ';
}
echo '
</table>
</div>';