Support » Plugin: Top 10 - Popular posts plugin for WordPress » Ignore hits from other admins

  • Resolved heartki

    (@heartki)


    Hi. Just wanted to say this plugin was what I was looking for. Simple tracking of hits, compatible with caching plugins.

    Is there a way to ignore/discard not just the author’s hits on its own post, but any site admin (or a specific list of admins)?

    Even if the functionality isn’t scheduled anytime soon, I’d take any code hack you can give me.

    Thanks.

    http://wordpress.org/extend/plugins/top-10/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ajay

    (@ajay)

    I haven’t tested this yet, but you can try on line 66 of top-10.php file:

    Replace
    if (!(($post_author)&&(!$tptn_settings['track_authors']))) {

    with

    if (!( current_user_can( 'manage_options' ) ) || (!(($post_author)&&(!$tptn_settings['track_authors'])))) {

    As usual, please remember to backup files and databases before making these changes. Double check to ensure that the brackets are properly opened and closed.

    heartki

    (@heartki)

    Worked just fine.
    Nice response speed btw.

    Thanks.

    Plugin Author Ajay

    (@ajay)

    Your welcome

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ignore hits from other admins’ is closed to new replies.