'lastPost' => array(
'time' => $row['lastTime'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.new;topicseen#new',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.new;topicseen#new">' . $row['subject'] . '</a>'
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$context['topics'][] = array(
'id' => $row['id_topic'],
'subject' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
'replies' => $row['num_replies'],
'board' => array(
'id' => $row['id_board'],
'name' => $row['bName'],
'href' => $scripturl . '?board=' . $row['id_board'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row['id_board'] . '.0">' . $row['bName'] . '</a>'
),
'firstPoster' => array(
'id' => $row['id_first_poster'],
'name' => $row['firstPoster'],
'time' => (time() - $row['firstTime'] < 3600) ? round((time() - $row['firstTime'])/60, 0) . $txt['minutes_ago'] : timeformat($row['firstTime']),
'href' => $scripturl . '?action=profile;u=' . $row['id_first_poster'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_first_poster'] . '">' . $row['firstPoster'] . '</a>'
),
'lastPoster' => array(
'id' => $row['id_last_poster'],
'name' => $row['lastPoster'],
'time' => (time() - $row['lastTime'] < 3600) ? round((time() - $row['lastTime'])/60, 0) . $txt['minutes_ago'] : timeformat($row['lastTime']),
'href' => $scripturl . '?action=profile;u=' . $row['id_last_poster'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_last_poster'] . '">' . $row['lastPoster'] . '</a>'
),
'lastPost' => array(
'time' => $row['lastTime'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.new;topicseen#new',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.new;topicseen#new">' . $row['subject'] . '</a>'
),
);
}