leyton Posted December 23, 2012 Share Posted December 23, 2012 Hello Guys, I am approaching you with a question that I had found the answer to, but I cannot seem to locate it now. Essentially, I have been customizing my WHMCS templates to make it fit with the rest of my site, which is easy. But, here's the tricky bit - I want some content to be hidden if the login page is shown. For instance, the design I've got has a footer throughout the site, but I want that to be gone if the login page is shown. In this instance, I can't remember how I dealt with it in the last design I had (I was building it in a dev install, but lost the files by mistake), but I can't use $loggedin as a variable, as I want the footer shown for things people can do in WHMCS without being logged in - like ordering. Similarly I can't do it by page title or $filename as those are taken from the page the user is trying to access rather than login.tpl. Any ideas on how to check if login.tpl is being shown, and then using {if} statements with that? Thanks, Leyton 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted December 23, 2012 Share Posted December 23, 2012 WHMCS sets a variable called $loginpage if the login page is being displayed so you can do something like this: {if $loginpage ne 1} html to display if not the login page. {/if} 0 Quote Link to comment Share on other sites More sharing options...
leyton Posted December 23, 2012 Author Share Posted December 23, 2012 Fantastic! That did the trick. Thanks 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.