• Resolved KKMDK

    (@kkmdk)


    Is it possible (where to comment out?) to remove the brackets that are around the count values in the list.

    Example:

    Postsomething 6
    Postsometing else 4
    Postmore 2

    in stead of

    Postsomething (6)
    Postsometing else (4)
    Postmore (2)

    • This topic was modified 8 years, 4 months ago by KKMDK.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter KKMDK

    (@kkmdk)

    nvm
    Found it (/includes/public/display-posts.php)

    Plugin Author Ajay

    (@ajay)

    Instead of editing the files, please try this filter first that you can add to your theme’s functions.php

    https://gist.github.com/ajaydsouza/9f04c26814414a57fab4

    Thread Starter KKMDK

    (@kkmdk)

    You’re right. Was just testing different customization options …

    BTW, I have noticed that ajax is updating hourly, “on the clock” (Ajaxurl based, Transients API not enabled), can this be changed to for instance every 10 minutes?

    Thx,

    Plugin Author Ajay

    (@ajay)

    I’m confused on the ajax updating point.

    Thread Starter KKMDK

    (@kkmdk)

    OK, I’ll try to explain it a little better. My aim is to make the top ten list dynamic within a shorter time period. Could be 12 hours or so. The 12 hours is no problem with your fine plugin. What I see, though, is that +1 views are counted “now”, while “old” views are recalculated only every hour. So every hour I’ll have a drop of views instead of a more “floating” calculation of the views.

    I was testing by having a 4-hour period. And on the hour (8:00, 9:00 etc) these drops was experienced. Therefore, but is of course dependent on whether the tables include minutes, I was wondering if the plugin was set so the ajax only requested newer than 4 hour views on the hour.
    Hope it make better sense now.

    Plugin Author Ajay

    (@ajay)

    Can you check if the cache is enabled in the settings page and if so disable this?

    Thread Starter KKMDK

    (@kkmdk)

    Yes, it is disabled (and has never been enabled).

    Plugin Author Ajay

    (@ajay)

    I think I understand a bit better the issue. The plugin saves hits in the table only on an hourly basis. It used to be days earlier but many people requested more granularity. The issue with moving it to minutes means a lot more data saved in the tables.

    I’m not sure if this is something that people are OK with. Potentially high traffic sites.

    Is that what you’re looking for?

    Thread Starter KKMDK

    (@kkmdk)

    Thanks for your reply on this. I concluded exactly what you are pointing out. It is a tradeoff between the amount of data stored and the feeling of an active site. One idea however, could be to make an option for update every 15 minutes. This would quadruple the data in the table. Recommended for high traffic sites would then be NOT to count total views based on this table, and, at the same time having the 15 minutes table automatically cleaned for entries more than 48 hours old or the like.

    Plugin Author Ajay

    (@ajay)

    That’s something I might implement in a future add on, but given the work involved, it is most likely going to be a paid one. …

    Thread Starter KKMDK

    (@kkmdk)

    Fair.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Removing the ( ) around count’ is closed to new replies.