cotonti.com : Auth blocks in header.tpl https://www.cotonti.com Последние сообщения в теме Cotonti en Mon, 29 Dec 2025 08:39:44 -0000 Trustmaster
Though, it is still the same problem for all our TPLs: optional tags and optional markup, which is hard to do without yet more blocks.]]>
пн, 19 янв 2009 20:34:57 -0000
Kilandor
Also the problem sometimes with trying to have guest/user/admin blocks as core, is that if its inside another block, then it won't work.

Which would be why its only found in header/footer (think it works in footer maybe as well)]]>
пн, 19 янв 2009 18:54:25 -0000
esclkm пн, 19 янв 2009 16:47:04 -0000 medar
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.]]>
пн, 19 янв 2009 16:05:33 -0000