1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Is there a way to hide the default login form from logged out users?

Discussion in 'XenForo Questions and Support' started by Andrew Dillon, Jun 30, 2016.

  1. Andrew Dillon

    Andrew Dillon Member

    OK So the style that I'm using has this nice welcome message that I have customized to have the steam login button for steam integration. But I have found that it's still easy for a user to make there way to an unauthorized area on the site, giving them the "You must be logged in to do that" error, and the login form

    Basically what I want to know is if there is a place I can put a Xen:if statement to hide this form to users that are logged out.

  2. Mike

    Mike XenForo Developer Staff Member

    You may want to have a look at the error_with_login template.
    Andrew Dillon likes this.
  3. Andrew Dillon

    Andrew Dillon Member

    Yep that was where I needed to go, thanks! I changed the code of the login helper form there to this.

    <xen:if is="!{$visitor.user_id}">
    <center> <font size="5"> Where do you think you are going??? Sign in with steam first! </font> </center>
    Looks Good (y)

    Last edited: Jul 1, 2016

Share This Page