How to hide something from guest
<div id="nav">
',template_menu(),'
</div>
<a class="ucp" href="http://summer-life.info/ucp/"></a>
</div>
<div id="userinfo">';
Quote<a class="ucp" href="http://summer-life.info/ucp/"></a>
This is my code, how to hide it from guests?
Something like...
if ($context['user']['is_guest'])
redirectexit('action=login');
???
-.- nothing
Refresh
Quote-.- nothing
K@ made a suggestion so did it not work for you ?
Will you copy and paste the entire code you have on that page including the PHP snippet K@ gave you.