News:

Wondering if this will always be free?  See why free is better.

Main Menu

Problem z wyłączeniem ostatnich tematów

Started by impreza, August 19, 2012, 03:21:20 PM

Previous topic - Next topic

impreza

Cześć, mam taki problem. Na forum mam ustawione ostatnie posty oraz ostatnie 15 poruszonych  tematów dodanych kodem ręcznie na funkcji SSI. Widać w kodzie.

Problem polega na tym:

Co mam zrobić aby gdy wyłączam ostatnie posty w ustawieniach także znikały ostatnie tematy ?
Jak edytować ten kod

Za przyszłą pomoc dziekuję


// 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>';
Portal ToTemat.pl - treści w postaci artykułów i filmów tematycznych.

Adrek

Nie wiem... może: // 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>';

}

if (!empty($context['latest_posts']))
{
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>';
}


?
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

impreza

phantomm - wydaje się super rozwiązanie. Wielkie dzięki ci za pomoc. Ostatnio staram zrobić inne rozwiązanie niż do tej pory, przez co wiele pytań. Pozdrawiam i dzięki!
Portal ToTemat.pl - treści w postaci artykułów i filmów tematycznych.

Advertisement: