Forums / Cotonti / Core Labs / Archive / Auth blocks in header.tpl

admin-user-guest differentiation

medar
#5494 2009-01-19 16:05
Now we have one block for auth info - <!-- BEGIN: USER -->...<!-- END: USER --> . It is inconvenient. For example, i want have caption "Logged as user" ({HEADER_LOGSTATUS}) in one place of site and usermenu ({HEADER_USER_PROFILE} , {HEADER_USER_PFS} etc) in others. Now i can't do it.

I propose add to header.php $t->parse("HEADER.USER2"); , $t->parse("HEADER.USER3"); and $t->parse("HEADER.GUEST2"); , $t->parse("HEADER.GUEST3"); for additional two auth blocks (or more).

Not an elegant solution, i see.
Ideally, we need unlimited blocks for differentiation displaying content for admin-user-guest in any tpl file. I think, without X-Template, with own solution.
rangjungyeshe.ru