Remove Members Online Now

Remove Members Online Now 1.3

No permission to download

AndyB

Well-known member
AndyB submitted a new resource:

Remove Members Online Now - Removes Members Online Now block.

Description:

Removes the Members Online Now block.

(Example of Members Online Now block)

View attachment 75180

Modifies the following template:
  • sidebar_online_users
Installation:
  1. Download removemembersonlinenow_v1.0.zip and unzip it
  2. From your Admin Control Panel, go to the "Install Add-on" page
  3. Upload the addon-RemoveMembersOnlineNow_v1.0.xml file
  4. Click the Install Add-on button
Sending a donation:

If you...

Read more about this resource...
 
great Addon!

it would be great if there would be an option for hiding it for "guests" only.



Many thanks!


:)
 
Hi @AndyB, I actually want people to be able to see the Members Online Now widget at the sidebar. What I want to prevent is to allow them to view more details about other's activity which is available at /online/. It would be a good idea if you can include that functionality to your add-on or maybe take in consideration this idea for a further add-on.
 
Hello Andy. I am having an issue with your add-on "Remove Members Online Now 1.2". In my AdminCP User Group Permissions area, I have set the Administrators user group to "Allow" and all other user groups to "No", but the "Members Online Now" sidebar still shows to all user groups. Any idea what I might be doing wrong?

I have these add-ons, created by you, currently installed:

Sidebar Positions
Staff Online Now
Members Online Now
New Profile Posts
Share This Page
 
Whichever permissions I set it to it does nothing, no matter what it always shows the members online now tab. Any updates on this?

Edit: Fixed
 
Last edited:
Doesn't working with BD widget Framework. :-( Once I installed the BD Widget Framework, all the members online, etc came back.
 
I couldn't get it to work on 1.5.

Can I simply remove or comment out contents of the template that contains that info?

I use PE's stats on the bottom and want to remove stats and users from the sidebar to make room for different things.
 
If this helps anyone, I commented it out like this. My question is this - will it still cause DB queries when commented out like this? If so, how to eliminate those?

I did this on forum_list template.

Code:
<xen:comment>
        <xen:if is="{$canViewMemberList}">
            <xen:include template="sidebar_online_users" />
        </xen:if>
        </xen:comment>

Addon is great, but for some reason it didn't work for me on 1.5.

Thanks
 
Code:
<!-- block: sidebar_online_users -->
<div class="section membersOnline userList">       
    <div class="secondaryContent">
        <h3><a href="{xen:link online}" title="{xen:phrase see_all_online_users}">{xen:phrase members_online_now}</a></h3>
       
        <xen:if is="{$onlineUsers.records}">
       
            <xen:if is="{$visitor.user_id}">
                <xen:if hascontent="true">
                <h4 class="minorHeading"><a href="{xen:link account/following}">{xen:phrase people_you_follow}:</a></h4>
                <ul class="followedOnline">
                    <xen:contentcheck>
                        <xen:foreach loop="$onlineUsers.records" value="$user">
                            <xen:if is="{$user.followed}">
                                <li title="{$user.username}" class="Tooltip"><xen:avatar user="$user" size="s" img="true" class="_plainImage" /></li>
                            </xen:if>
                        </xen:foreach>
                    </xen:contentcheck>
                </ul>
                <h4 class="minorHeading"><a href="{xen:link members}">{xen:phrase members}:</a></h4>
                </xen:if>
            </xen:if>
           
            <ol class="listInline">
                <xen:foreach loop="$onlineUsers.records" value="$user" i="$i">
                    <xen:if is="{$i} <= {$onlineUsers.limit}">
                        <li>
                        <xen:if is="{$user.user_id}">
                            <a href="{xen:link members, $user}"
                                class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{$user.username}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
                        <xen:else />
                            {xen:phrase guest}<xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
                        </xen:if>
                        </li>
                    </xen:if>
                </xen:foreach>
                <xen:if is="{$onlineUsers.recordsUnseen}">
                    <li class="moreLink">... <a href="{xen:link online}" title="{xen:phrase see_all_visitors}">{xen:phrase and_x_more, 'count={xen:number $onlineUsers.recordsUnseen}'}</a></li>
                </xen:if>
            </ol>
        </xen:if>
       
        <div class="footnote">
            {xen:phrase online_now_x_members_y_guests_z_robots_a, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number $onlineUsers.guests}', 'robots={xen:number $onlineUsers.robots}'}
        </div>
    </div>
</div>
<!-- end block: sidebar_online_users -->

@AndyB - Please update the "find" portion to the code above. I found that the template modification does not work in v1.5.2
 
Regardless of what i try or do, doesn't work. Must be widget framework which is well needed for me. Damn.
 
Top Bottom