07-22-2006, 01:48 AM
Directions for version 1.07
search for this code in the index.template.php file:
place the code below AFTER the code above:
some of the code above may already be there, if it is, the section below is what controls the unread posts function link display:
search for this code in the index.template.php file:
Code:
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '<hr />
<b>', $txt[616], '</b>';
if (isset($context['user']['awaiting_mod']))
echo '
' . $context['user']['awaiting_mod'];
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=regcenter">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'];
place the code below AFTER the code above:
Code:
echo '<td width="60%" valign="middle" class="headerbodies" style="padding: 2px 10px 2px 10px; background-color: ' .$mycolors_unread[$set_mycol]. ';"><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a>
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></td>';
echo '</tr></table>';
}
some of the code above may already be there, if it is, the section below is what controls the unread posts function link display:
Code:
echo '
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a>
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a>
';