Jump to content

SMARTY {if} login.tpl is shown


leyton

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated