OK i have this code to show the latest topic using SSI a certain way. i want it to show the "new" image on a topic if its new. how can i do this
<?php
$array = ssi_recentPosts(8, array(), 'array');
foreach ($array as $topic)
echo $topic['link'],' by ',$topic['poster']['link'], '<br />';
?>
Well, $topic['new'] is what you likely want.
-[Unknown]
na [Unknown} it didnt work. this is that i have
<?php
$array = ssi_recentPosts(8, array(), 'array');
foreach ($array as $topic)
echo $topic['link'],$topic['new'],' by ',$topic['poster']['link'], '<br />';
?>
this is the image imtalking about

sumthing like "new post

"
You have to show that image manually, just like it does it in the MessageIndex template:
<a href="', $scripturl, '?topic=', $topic['id'], '.from', $topic['newtime'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>
-[Unknown]
how do i put it in the code this is what i did and it didnt work
<?php
$array = ssi_recentPosts(8, array(), 'array');
foreach ($array as $topic)
echo $topic['link'],' by ',$topic['poster']['link'],$topic['new']<a href="', $scripturl, '?topic=', $topic['id'], '.from', $topic['newtime'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>, '<br />';
?>
<?php
$array = ssi_recentPosts(8, array(), 'array');
foreach ($array as $topic)
echo $topic['link'],' by ',$topic['poster']['link'], '<a href="', $scripturl, '?topic=', $topic['id'], '.from', $topic['newtime'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a><br />';
?>
-[Unknown]