1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

How to disable the login block?

Discussion in 'Showcase Support' started by alfa1, Jun 7, 2015.

  1. alfa1

    alfa1 Active Member AMS Premium CAS Premium RMS Premium SC Premium UBS Premium

    I want to turn off / remove the login button / fb login button from the sidebar of item pages.
    How do I do this?
     
  2. Bob

    Bob Developer Staff Member

    IN ALL of the showcase sidebar templates, you will need to remove the IF statement at the top of the template.

    Remove the if statement wrapping the code that disables the block. It currently only disables the block for logged in users.
    HTML:
        <xen:if is="{$visitor.user_id}">
            <xen:container var="$noVisitorPanel">1</xen:container>
        </xen:if>
    so it looks like this.
    HTML:
        <xen:container var="$noVisitorPanel">1</xen:container>
     
    Last edited: Jun 7, 2015
    alfa1 likes this.
  3. alfa1

    alfa1 Active Member AMS Premium CAS Premium RMS Premium SC Premium UBS Premium

    Thanks!

    I am not sure why, but it suffices to apply this to nflj_showcase_item_sidebar
    The login block does not show up anywhere else.
     
  4. Bob

    Bob Developer Staff Member

    Probably because they are ALREADY disabled...

    ie the nflj_showcase_category_sidebar template is ALREADY disabling the block for ALL. The ITEM was wrapped with a conditional to check if the viewing user was LOGGED IN (hence having a user_id).

    HTML:
    <xen:sidebar>
        <xen:container var="$noVisitorPanel">1</xen:container>
    This template code is what disables the Visitor Panel block. Removing that line of code would display the Block with the Users Avatar and specific user data.
    HTML:
    <xen:container var="$noVisitorPanel">1</xen:container>
     
    alfa1 likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.