criat Posted November 6, 2013 Share Posted November 6, 2013 What's the variable for client area? Like {if is client-area} //Do Something {/if} Thanks! 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 6, 2013 Share Posted November 6, 2013 {if $loggedin} 0 Quote Link to comment Share on other sites More sharing options...
criat Posted November 7, 2013 Author Share Posted November 7, 2013 Client can be logged in and be in home Tried that already 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 7, 2013 Share Posted November 7, 2013 Then you will need to use the clientarea hook point or use the $filename var to check what file is loaded while loggedin 0 Quote Link to comment Share on other sites More sharing options...
criat Posted November 7, 2013 Author Share Posted November 7, 2013 I'm doing $filename check, but it's a pain and untrustworthy, so I was looking for somehting more reliable. Maybe something to do with breadcrumbs? If contain "Client Area" in breadcrumbs then show By the way, do you know how I can hide breadcrumbs if it got 4 links or more? It breaks my layout 0 Quote Link to comment Share on other sites More sharing options...
SeanP Posted November 7, 2013 Share Posted November 7, 2013 Maybe something like the following would work: {php} if(strpos($_SERVER['PHP_SELF'], 'clientarea.php')){ {/php} {if $loggedin} Do Something Here... {/if} {php} } {/php} 0 Quote Link to comment Share on other sites More sharing options...
zomex Posted November 9, 2013 Share Posted November 9, 2013 Here is the code you can use: {if $filename eq "clientarea"} Hello Client Area {/if} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.