SMF Support > SMF 2.0.x Support
How to hide something from guest?
fanSte-:
How to hide something from guest
--- Code: ---<div id="nav">
',template_menu(),'
</div>
<a class="ucp" href="http://summer-life.info/ucp/"></a>
</div>
<div id="userinfo">';
--- End code ---
--- Quote ---<a class="ucp" href="http://summer-life.info/ucp/"></a>
--- End quote ---
This is my code, how to hide it from guests?
K@:
Something like...
if ($context['user']['is_guest'])
redirectexit('action=login');
???
fanSte-:
-.- nothing
fanSte-:
Refresh
Storman™:
--- Quote ----.- nothing
--- End quote ---
K@ made a suggestion so did it not work for you ?
Navigation
[0] Message Index
[#] Next page
Go to full version