News:

Wondering if this will always be free?  See why free is better.

Main Menu

How to hide something from guest?

Started by fanSte-, May 01, 2012, 01:43:07 PM

Previous topic - Next topic

fanSte-

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?

kat

Something like...

   if ($context['user']['is_guest'])
      redirectexit('action=login');

???

fanSte-



Storman™

Quote-.- nothing

K@ made a suggestion so did it not work for you ?

Colin

Will you copy and paste the entire code you have on that page including the PHP snippet K@ gave you.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Advertisement: