merhaba resimleri blokta göstermek için aşağıdaki kodu kullanıyorum fakat link olarak ekelenen resimler dışında eklenti olarak eklenen resimleri bir türlü gösteremiyorum.bunun için eklenebilecek kodlar var mıdır?
global $smcFunc, $scripturl;
$boards = array(48);
$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 m.subject',
array(
'boards' => $boards,
)
);
$topics = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$topics[] = array(
'id_topic' => $row['id_topic'],
'first_image' => preg_match_all('~\[img\]([^\]]+)\[\/img\]~i',$row['body'], $images) ? '<img src="' . $images[1][0] . '" alt="' . $row['subject'] . '" height="200" />' : '',
);
$smcFunc['db_free_result']($request);
echo '
<table>
<tr>
<td><input type="button" value="«" onclick="document.getElementById(\'images_marquee\').direction = \'left\';" /></td>
<td width="100%">
<marquee id="images_marquee" behavior="scroll" direction="left" scrollamount="6" height="200" width="100%" onmouseover="this.stop();" onmouseout="this.start();">
<table>
<tr>';
foreach ($topics as $topic)
echo '
<td>
<a href="', $scripturl, '?topic=', $topic['id_topic'], '.0">', $topic['first_image'], '<br /><span>', $topic['subject'], '</span></a>
</td>';
echo '
</tr>
</table>
</marquee>
</td>
<td><input type="button" value="»" onclick="document.getElementById(\'images_marquee\').direction = \'right\';" /></td>
</tr>
</table>';