SMF Support > SMF 2.0.x Support

The problem with the exception of the last topics

(1/1)

impreza:
Hi, I have this problem. On the forum I set last posts and topics discussed last 15 added manually code SSI functions. You can see in the code.

The problem is:

What can I do to turn off the last posts in the settings also disappeared last topics?
How do I edit the code

Thank you for the future help


--- Code: ---// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<dl id="ic_recentposts" class="middletext">';

/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt>
<dd>', $post['time'], '</dd>';
echo '
</dl>';
}
echo '
</div>';

}

echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<img class="icon" src="', $settings['images_url'], '/post/xx.gif" alt="Ostatnie tematy" />Ostatnio prouszone tematy
</span>
</h4>
</div>
<div class="hslice" id="recent_posts_content">';

ssi_recentTopics($num_recent = 15, $exclude_boards = null, $include_boards = null, $output_method = 'echo');

echo '</div>';
--- End code ---

Navigation

[0] Message Index

Go to full version