Hiding Metadata Div


Notice: Undefined variable: params in /home/rogerlov/public_html/blog/skins/print/index.main.php on line 63

Warning: array_merge(): Expected parameter 2 to be an array, null given in /home/rogerlov/public_html/blog/skins/print/index.main.php on line 63

Notice: Trying to access array offset on value of type null in /home/rogerlov/public_html/blog/skins/print/index.main.php on line 70

Notice: Trying to access array offset on value of type null in /home/rogerlov/public_html/blog/skins/print/index.main.php on line 80

Notice: Trying to access array offset on value of type null in /home/rogerlov/public_html/blog/skins/print/index.main.php on line 85

Notice: Trying to access array offset on value of type null in /home/rogerlov/public_html/blog/skins/print/index.main.php on line 91

Notice: Trying to access array offset on value of type null in /home/rogerlov/public_html/blog/skins/print/index.main.php on line 93

I've hidden metadata div at end of each post on [posts.main.php]

The reason is that I have stopped feedback unless someone is logged in, there is no option to edit if not logged in and the print link is only available on [posts.single.php]

Done by surrounding by html comment tag if user not logged in

Before metadata div

Code

<?php
if(!isset($current_User)  or (isset($current_User) and ($Item->ID ==627 or $Item->ID ==492)))
echo"<!--"
?>

after metadata div

Code

<?php
if(!isset($current_User) )
  echo"-->"
?>