• Resolved jordykovic

    (@jordykovic)


    Hi,

    Thank you for this plugin, it’s works perfectly but I’d like to show Stats for editors and not only administrators on my blog Dashboard Menu but I don’t know how to do that ??

    Do you have a solution for that please ?

    Thanks !
    Tom

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Tom,

    Yes, that’s an easy fix. Open wordpress-popular-posts.php using an editor such as Windows’ Notepad or Adobe Dreamweaver and change this code (around line 1110):

    // stats page
    // Since 2.0.3
    function wpp_stats() {
        if ( function_exists('add_submenu_page') ) add_submenu_page('index.php', __('Wordpress Popular Posts Stats'), __('Wordpress Popular Posts Stats'), 'manage_options', 'wpp-stats-display', array(&$this, 'wpp_stats_display'));
    }

    … into this:

    // stats page
    // Since 2.0.3
    function wpp_stats() {
        if ( function_exists('add_submenu_page') ) add_submenu_page('index.php', __('Wordpress Popular Posts Stats'), __('Wordpress Popular Posts Stats'), 'edit_others_posts', 'wpp-stats-display', array(&$this, 'wpp_stats_display'));
    }

    That should do it!

    P.S.: please make sure you actually have permission from your blog’s administrator to do this change, ok? Don’t get me into trouble! LOL

    Thread Starter jordykovic

    (@jordykovic)

    Yeahhh, it’s working !

    Thank you ! It’s perfect ??

    Ikki24 – Just posting a quick thank you. I came to the forums looking for a way to do this as well and this worked perfectly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WordPress Popular Posts] Popular posts Stats for Editors’ is closed to new replies.