https://www.icyphoenix.com/viewtopic.php?f=35&t=9064&p=59120#p59120
-----------------------------------
portalpez
Sun 11 Aug, 2013 12:39

Re: Switch_viewtopic_banner Does Not Run
-----------------------------------
Thanks you but Does not run... I try with your code, but does not show "Hello word" to unregistered users

I put exactly this:

In viewtopic.php:

[code linenumbers=false]if (!$user->data['session_logged_in'])
{
$template->assign_block_vars('postrow.switch_viewtopic_banner', array());
}[/code]

In viewtopic_body.tpl:

[code linenumbers=false]<!-- BEGIN switch_viewtopic_banner -->
			Hello word
<!-- END switch_viewtopic_banner -->[/code]

Thanks you very much!!!


