https://www.icyphoenix.com/viewtopic.php?f=35&t=9064&p=59044#p59044 ----------------------------------- portalpez Thu 27 Jun, 2013 11:04 Switch_viewtopic_banner Does Not Run ----------------------------------- Hello, I need to show a banner into the first post only to unregistered user, but the code does not run. I open viewtopic.php and try with this code( In version 1.3 and 1.27 run well): -------------------------------------------------------- [code linenumbers=false]if ( ($i == 0) && (!$user->data['session_logged_in'])) { $template->assign_block_vars('postrow.switch_viewtopic_banner', array()); }[/code] ---------------------------------------- In the viewtopic_body.tpl i try this code: ----------------------------------------------------- [code linenumbers=false]
{postrow.L_MINI_POST_ALT} {postrow.POST_SUBJECT} 
 
ADSENSE CODE {postrow.MESSAGE}
{postrow.ATTACHMENTS}
[/code] -------------------------------- Could you help me? Thanks you in advance.