• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Hide Online users to Guests


Well-Known Member
Staff member
I'm not sure if there's a post about this I do however know Brogan made a Hide Members Lists to guests but mine is for the users online.

If you're like me and want to stop guests seeing who is viewing what on your forum you can use this simple code.

Go to templates:
Appearance > Styles > Default > StyleTemplates > online_list

Replace all the code in template with:

[/FONT][/COLOR]<xen:if is="{$visitor.user_id}"><xen:title>{xen:phrase current_visitors}</xen:title>
<xen:description>{xen:phrase this_is_list_of_all_visitors_currently_browsing_x, 'board_title={$xenOptions.boardTitle}'}</xen:description>
<xen:require css="member_list.css" />
<xen:require css="xenforo_member_list_item.css" />
<div class="pageNavLinkGroup">
    <xen:pagenav link="online" page="{$page}" perpage="{$usersPerPage}" total="{$totalOnlineUsers}" />
<ol class="section memberList">
    <xen:foreach loop="$onlineUsers" value="$user">
        <xen:include template="member_list_item">           
            <xen:set var="$extraTemplate">
                <xen:if is="{$canViewIps}">
                    <a href="{xen:if '{$user.user_id}', {xen:link online/user-ip, $user}, {xen:link online/guest-ip, '', 'ip={$user.ip}'}}" class="OverlayTrigger ip"><span>{xen:phrase ip}</span></a>
            <xen:set var="$contentTemplate">
                <xen:if is="{$user.activityDescription}">
                    <xen:if is="{$user.activityItemTitle}">
                        <em><a href="{$user.activityItemUrl}"{xen:if '{$user.activityItemPreviewUrl}', ' class="PreviewTooltip" data-previewUrl="{$user.activityItemPreviewUrl}"'}>{$user.activityItemTitle}</a></em>
                <xen:else />
                    {xen:phrase viewing_unknown_page}
                <xen:datetime time="$user.view_date" class="muted" />
<xen:include template="preview_tooltip" />
<div class="pageNavLinkGroup">
    <xen:pagenav link="online" page="{$page}" perpage="{$usersPerPage}" total="{$totalOnlineUsers}" />
    <div class="section">
        <div class="secondaryContent statsList" id="boardStats">
            <h3>{xen:phrase online_statistics}</h3>
            <div class="pairsJustified">
                <dl class="memberCount"><dt>{xen:phrase members_online}:</dt>
                    <dd>{xen:number $onlineTotals.members}</dd></dl>
                <dl class="guestCount"><dt>{xen:phrase guests_online}:</dt>
                    <dd>{xen:number $onlineTotals.guests}</dd></dl>
                <dl class="visitorCount"><dt>{xen:phrase total_visitors}:</dt>
                    <dd>{xen:number $onlineTotals.total}</dd></dl>
            <div class="footnote">{xen:phrase totals_may_include_hidden_visitors}</div>
<xen:else />
<xen:title>{xen:phrase error}</xen:title>
<xen:h1>{$xenOptions.boardTitle} - {xen:phrase error}</xen:h1>
<xen:if is="{$visitor.user_id}">{xen:raw $text}</xen:if>
<xen:include template="helper_login_form" />


If they are a member and logged in:


Else they are a guest they see:


Handy for me and probably for you too if you like the VBulletin idea. Easy edit for a beginner like me

Facebook Comments

New posts New threads New resources