Home Forums Author Stats Pro Author Stats in page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26171
    AvatarBrian Fuller
    Participant

    Are there any options that can be used with the shortcode to display stats?

    [nnr_author_leaderboard]

    #26172
    AvatarBrian Fuller
    Participant

    I ask to mainly find out if I can do any or all of the following:

    – restrict certain users from showing in the stats list
    – remove the comments column (not used on the site)
    – remove the id number
    – remove the role
    – remove the “view stats” link as you need to be logged in to view the link anyways
    – remove the option for filters (it will only confuse people)
    – always show stats for all time
    – have the table show natively in a page (without a scroll bar) https://www.screencast.com/t/PqnTuCcyy – this would avoid dualing scroll bars (one for the page and one for the content within the page)

    #26196
    AvatarJay Gajjar
    Keymaster

    Hello Brian – We apologize for the late reply!

    All of the properties/functionalities that you inquired about are currently not supported by our plugin. However, there are alternatives/CSS changes that can help achieve the results for most.

    ​Your suggestions are actually on our to-do list, and we will be looking to include quite a few in the upcoming updates to the plugin.

    – restrict certain users from showing in the stats list
    ​Ans: This would not be possible with our plugin – however you can choose to display/restrict the page to certain users. You can make sure that the filters are set to display the stats you want and then you can hide the filter using CSS

    – remove the comments column (not used on the site)
    ​Ans: You can use CSS to hide this column – using the td:nth-child css property

    – remove the id number
    ​Ans: You can use CSS to hide this particular element

    – remove the role
    ​Ans: You can use CSS to hide this column – using the td:nth-child css property

    – remove the “view stats” link as you need to be logged in to view the link anyways
    ​Ans: You can use CSS to hide the element

    – remove the option for filters (it will only confuse people)
    Ans: You can use CSS to hide this element.

    – always show stats for all time
    ​Ans: This is not possible directly with our plugin

    – have the table show natively in a page (without a scroll bar) https://www.screencast.com/t/PqnTuCcyy – this would avoid dualing scroll bars (one for the page and one for the content within the page)
    ​Ans: You can use CSS to avoid this:

    ​.nnr-as-table-container {
    max-height: none;
    overflow-y: auto;
    }

    ​Hope this helps,
    ​Thank you,
    ​Jay

    #26199
    AvatarBrian Fuller
    Participant

    I was able to accomplish almost everything with:

    .nnr-as-table-container {
    max-height: none !important;
    overflow-y: auto !important;
    }
    th:last-child,tr td:last-child, #post-169152 > div > div > div > form > button, .nnr-as-author-id, tr td:nth-child(2), tr th:nth-child(2),span.edit {
    display: none;
    }nnr-as-table-container

    ** note !important; was required to force the .nnr-as-table-container height and overflow

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Author Stats Pro’ is closed to new topics and replies.
-