I'm still confused.
Are you taking my code which was posted as
#59 reply in this thread?
And you having $allForumsReg enabled?
But this is what I'm talking about (and my thread explains it): my hack is ONLY for $regUsrForums setting i.e. when $allForumsReg is disabled; this is WHAT I was trying to tell you in the very first answer. Also, my reply clearly says that
for hiding all forums from guests locate the hack posted above in this thread.
If you have $allForumsReg enabled and you want ALL forums available to members only AND you want to hide them from guests, then take the hack provided on the 2nd page of this thread (
#18).
Also, if you have modern first page layout, it has User Login fields contained in templates/main_modern_layou
t.html (see the table at the top which contains {$user_logging}) - but this template, in a case of no-allwed forums to show, will not be loaded up at all. You need to bring login fields form to templates/main_header.html (paste it at the very bottom to this file). Then login fields will be displayed even if use is not logged in.
Most likely this also should be done for my own hack, but you need to be careful at what you're trying to implement, as there are 2 different methods.