You're absolutely right, my mistake
Try the following:
Replace:
ssi_recentTopics
With:
ssi_recentPosts
Using the previous code I showed you.
I have don this and its still same result as the first error i got with the first code you gave me for the Recently Updated Topic.
Can you check the raw code that is running this one on your forum?
I have been looking at the code for quite some minute now, i decided to remove some code from this line
$what = ssi_recentPosts('30', $bb,'array');
and it worked.
Here is what i removed
$bb,'array', but i dont know what is the function of this small piece of code in the main code as you have written.
Here is the full code that worked<div id="tcontent3" class="tabcontent">';
global $scripturl, $context, $settings, $txt, $modSettings;
// leave out the recycle board, if any
if(isset($modSettings['recycle_board']))
$bb = array($modSettings['recycle_board']);
else
$bb = array();
$what = ssi_recentPosts('30');
// Output the topics
echo '
<ul class="recent_topics" style="overflow: auto; margin-top: -1ex; padding: 0;">';
$coun = 1;
foreach($what as $wi => $w)
{
echo '
<li' , $coun<count($what) ? ' style="border-bottom: dashed 1px #bbb;"' : ' style="border: none; margin-bottom: 0; padding-bottom: 0; list-style-type: none;"' , '>
<!--This should not be here, but I added it to include avatars-->
<span class="tpavatar"><a href="' . $scripturl. '?action=profile;u=' . $w['poster']['id'] . '">';
$w['poster']['avatar'] = str_replace('src','style="width: 35px; height: 35px;" src', $w['poster']['avatar']);
echo'',$w['poster']['id'] == '0' ? '<img src="'.$modSettings['default_avatar_url'].'" alt="default">' : $w['poster']['avatar'],'</a></span>
<a href="' . $w['href'] . '" title="' . $w['subject'] . '">' . $w['subject'] . '</a>
<br/>', $txt['by'], ' <b>', $w['poster']['link'],'</b> in <i>' . $w['board']['link'] . '</i>';
if(!$w['new'])
echo ' <a href="'.$w['href'].'"><img src="'. $settings['images_url'].'/'.$context['user']['language'].'/new.gif" alt="new" /></a> ';
echo '<br /><span class="smalltext">['.$w['time'].']</span>
</li>';
$coun++;
}
echo '
</ul>';
echo '</div>
More so i notice that the out come was not as arranged as the initial ones we did in both the Unanswered questions and the latest questions.
Bellow is a screenshot of how it look. May be you can help me improve on it