In the first instruction instead of replacing with this:
// --------------------------
// Which folder do we display
$boardfolder = "nonewposts.gif";
$markallstart = "";
$markallend = "";
$marktitle = "";
if ( ($checker < $Last) ){
$boardfolder = "newposts.gif";
if ($Username) {
$markallstart = "<a href="{$config['phpurl']}/markallread.php?Cat=$Cat&singleforum=$Keyword">";
$markallend = "</a>";
$marktitle = "title="". $ubbt_lang['MARK_TEXT'] . """;
}
}
Replace with this (Move the inner if to the outside of the new check):
// --------------------------
// Which folder do we display
$boardfolder = "nonewposts.gif";
$markallstart = "";
$markallend = "";
$marktitle = "";
if ( ($checker < $Last) ){
$boardfolder = "newposts.gif";
}
if ($Username) {
$markallstart = "<a href="{$config['phpurl']}/markallread.php?Cat=$Cat&singleforum=$Keyword">";
$markallend = "</a>";
$marktitle = "title="". $ubbt_lang['MARK_TEXT'] . """;
}