Jump to content

Remove WHO IS ONLINE WIDGET


Recommended Posts

17 hours ago, mywebguy said:

Yes,  the Staff Online. Also the  Client Activity widget 

usually, the admin dashboard widgets contains permissions of who is allowed to view them...

https://docs.whmcs.com/Admin_Dashboard#Showing.2FHiding_Widgets

Quote

The following table itemises all widgets that are included with WHMCS by default and the permissions required for each.

Name Description Required Permission
Activity Recent system activity to keep you up to date with what's happening View Activity Log
Automation An overview of system automation. Click a miniature graph to see a the full version on the Automation Status page Configure Automation Settings
Billing An overview of income over four periods; daily, monthly, yearly and all time View Income Totals
Client Activity A brief overview of the last 5 client logins, including dates/times & IP addresses List Clients
Health An overview of System Health, links through tot he main System Health Status page Health and Updates
Network Status Listing your servers and allowing you to check the status (if status url monitoring has been implemented) None
System Overview An overview of orders and income in graphical format. The timescale can be changed to show daily, monthly or yearly View Income Totals
System Overview Badges Displayed at the top of the page, the colourful badges provide a quick statistical overview including orders, cancellation, and tickets None
Staff Online Shows currently logged in staff. If the staff member's email address corresponds with a Gravatar account, the Gravatar image will be used. None
Support An overview of support awaiting reply tickets, tickets assigned to your account and tickets with recent activity List Support Tickets
To-Do List An overview of support awaiting reply tickets, tickets assigned to your account and tickets with recent activity To-Do List

as you can see from the above list, "Client Activity" requires the admin role to have "List Clients" enabled in their role in order to see the widget - if it is unticked, then they will not see this widget.

vXTAJG5.png

so if this admin role doesn't need to see the list of clients, then keeping this option unticked in their admin role settings is the simplest solution... if they do need to see the list of clients, then you could modify the widget code and choose another permission that is ticked for your "Full Administrator" role, but is unticked for the roles that you want to hide the widget from - it wouldn't really matter which permission you choose.

the "Staff Online" widget doesn't contain any permission restrictions, so all admins will see it - however, as with the "Client Activity", if you modify the widget code (/modules/widgets/Staff.php) and assign it a permission, e.g "List Clients", then only those admin roles with that permission ticked will see the widget...

protected $requiredPermission = 'List Clients';

though a default widget which has modified code would probably get replaced by the Automatic Updater - you may rename the file to avoid the file being overwritten, but the updater would probably restore the original file anyway.

there is another problem with Staff Online in that the list of online admins is shown in the sidebar - to remove that, you would either have to edit the sidebar.tpl template (which again would get replaced by the automatic updater), or null the array used using a AdminAreaPage action hook, which would null it conditionally based on the role of the admin.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated