![]() |
Hide if logged or not logged in
Ok it's my turn to answer a question today :D
im trying to hide or show certain tabs depending on if the user is logged in or not logged in. for example I have 4 tabs in the template "LOGIN / REGISTER, YOUR ACCOUNT, RECOVER PASSWORD & ORDER HISTORY" if not logged in only "LOGIN / REGISTER" & " RECOVER PASSWORD" should be shown if LOGGED IN only "YOUR ACCOUNT" & "ORDER HISTORY" should be shown. i've managed to hide the tabs I want to hide when logged in but I cant work out how to hide the tabs when NOT logged in this is the code i've got so far Code:
<table class"HeadLine" border="0" cellspacing="0" cellpadding="0"> i know it's something simple i've missed but the question is what??? Cheers for any help THIS IS FOR VERSION 4.0.3 |
you probably want to use
{if $login ne ""} eq - equals ne - not equals see http://smarty.php.net for all this and more |
Bingo!!!
Cheers Shan, on another note how is your diary fixed for some mods i need doing. i'll email you the full specs of what im trying to do. |
Re: Hide if logged or not logged in
Hi COTC2001,
Do you know if your code below would work on the 4.1.9 version? Thanks! Quote:
|
Re: Hide if logged or not logged in
Cant tell for certain but it should do
|
All times are GMT -8. The time now is 01:26 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.