Ok do you mean the default miniBB version? This question isn't related to your modifications?
That's right, if user logs in being inactive, he receives only $l_accessDenied message with no back links. But these links would be quite unuseful for him, do you understand it? :-) Even he clicks on any of the links, he can not access the forum. So why display them at all?
However...
In index.php there is only one place which says:
$l_returntoforums=''; $correctErr='';
and this would be the place where you could paste any of the links. And you were right from the beginning - it is part of if ($forb>0) { and nothing additionally can be improved or added here as an add-on or hack.
And by the way, it loads up the footer in full, but that's right, it won't parse any of the additional variables, because this condition works out even before loading of any plugins is started. But I personally don't see much problems in it, or the reason of confuse coming from your users.
Anyway, I think now there is no big problem to implement in the default miniBB version, that in this place, it loads up the script time and $includeFooter if specified. I will release it in 2.1.
If you want to modify it in advance, here is the solution:
1) In the $forb>0 condition, disable
//$l_loadingtime=''; //echo ParseTpl(makeUp('main_footer')); //exit;
2) Before /* End stuff */ comment, paste: else {
3) closer to the end of index.php where it says
} else { //loginError=1 if($loginError==1) $tpl='main_warning'; else $tpl='main_posthold'; echo load_header(); echo ParseTpl(makeUp($tpl)); }
BEFORE it paste the closing parenthese:
}//forb
It works on my side in all aspects. |