News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

[3117] SMF2 RC1 MessageIndex and anchor Top in default theme - Small mistake

Started by .LORD., February 14, 2009, 01:45:34 PM

Previous topic - Next topic

.LORD.

Hi.

In MessageIndex.template default theme there is a small mistake.

The named anchor "top" isn't always printed, but, only when there is "board children".

So in many cases the link anchor is orphan.

Search:

if (!empty($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0))
{
echo '
<a name="top"></a>
<div class="tborder marginbottom" id="childboards">


Replace (for example):


echo '
<a name="top"></a>';

if (!empty($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0))
{
echo '
<div class="tborder marginbottom" id="childboards">



Advertisement: