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

XF 1.1 How to restrict guests from accessing the Current Visitors page?

Discussion in 'Troubleshooting and Problems' started by Luxus, May 13, 2012.

  1. Luxus

    Luxus Well-Known Member

    I want to restrict guests from accesing the Current Visitors page. I mean this page: http://xenforo.com/community/online/
    I couldn't find a permission option in the ACP. Is there a workaround for this?
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Hi Luxus,

    You could edit the template with a conditional that hides its output from guests.
     
    Luxus likes this.
  3. borbole

    borbole Well-Known Member

    Luxus likes this.
  4. Luxus

    Luxus Well-Known Member

    Ok, I have opened the "online_list" template now. Can you please tell me what I should add in there since I am not familiar with xenforo coding yet?

    Edit: Ninja'd by borbole. Thanks, that's what I was looking for :)
     
    borbole likes this.
  5. Chris D

    Chris D XenForo Developer Staff Member

    That would involve finding template "online_list"

    And at the top add:

    Code:
    <xen:if is="{$visitor.user_id}">
    And at the very bottom add

    Code:
    </xen:if>
     
    borbole likes this.
  6. Chris D

    Chris D XenForo Developer Staff Member

    borbole likes this.

Share This Page