You are here: Home
Support site for Tips and Tricks HQ premium products
Hi,
Could you advise on where abouts in the header.php file that the code:
<?php
global $auth;
$user_id = $auth->getUserInfo('member_id');
if (!empty($user_id))//User is logged in so display the menu
{
<li><a href="example.com/secretPage">Some Secret Page</a></li>
}
?>
actually goes…
I have placed the whole of that code in the header in two places. I have placed it just before the basic meta data and just before the closing head tag, and the whole site dies.
many thanks