WordPress.org

Ready to get started?Download WordPress

Forums

ThreeWP Activity Monitor
Allow Editor User Role to see Activity Monitor Data? (5 posts)

  1. erostad
    Member
    Posted 1 year ago #

    Is it possible to allow users at the Editor role to view the Activity Monitor data? I changed "View Other Users' Login Statistics" to Editor but my Editor roles are still unable to view the information within their profiles. Any suggestions?

    http://wordpress.org/extend/plugins/threewp-activity-monitor/

  2. maxgx
    Member
    Posted 1 year ago #

    same here, editor role doesn't "View own login statistics" or "View other users' login statistics"

  3. greensween
    Member
    Posted 1 year ago #

    This is same for me... I have my client assigned as an Editor role. as I don't want to give them administrator privileges.. but I would like them to be able to see info like the logins etc... It looks to me that it should work... but I can't seem to get it to work.

    Thanks

  4. greensween
    Member
    Posted 1 year ago #

    I've found a bit of a workaround for this one.. I'm not a great programmer but I think this works... If this is going to mess up things please do let me know.. but so far it works for me...

    In ThreeWP_Activity_Monitor.php
    Comment out the line 220:

    add_submenu_page('index.php', $this->_('Activity Monitor'), $this->_('Activity Monitor'), 'read', 'ThreeWP_Activity_Monitor', array (&$this, 'admin'));

    Change the line 224(ish) in ThreeWP_Activity_Monitor.php. Make sure it is outside the

    if ( current_user_can('delete_private_posts') ) {
    add_submenu_page('index.php', $this->_('Activity Monitor'), $this->_('Activity Monitor'), 'read', 'ThreeWP_Activity_Monitor', array (&$this, 'admin'));
    }

    Makesure it is outside the if block:
    if ($this->role_at_least( $this->get_site_option( 'role_logins_view_other') ))
    {
    }

    This allows the page to be displayed on the the admin member for an editor.

    Hope it helps someone.

  5. maxgx
    Member
    Posted 1 year ago #

    hey greensweeen, it does work! congrats!
    shame we have to resort to a hack, something else to bare in mind if/when an update comes along... but hey, i can live with it until Edward gives us a proper solution!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic