Article ordering by popularity/hits

I made a copy of Minifrontpage pro to display some popular articles by day or by week in the sidebar. The problem however is that, article ordering by popularity/hits seems to work only if you select "All time" in the Time Range. It doesn't work if you select 1 day, 3 days, 1 week, 1 month, etc. Please what could be wrong? Thanks very much.


NB: I am using the current version of joomla 4. PHP 8.0
       
  • Replied by admin on Friday, September 23 2022, 04:12 PM · Hide· #1
    Hi, I tried on localhost and I'm unable to replicate the issue. Please have a look at the video screencast below
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by testos on Friday, September 23 2022, 04:54 PM · Hide· #2
    Please thanks for replying. I upgraded from joomla 3 to joomla 4. I suspect that is where the problem is coming from. I tried disabling caching but that didn't help. The dates work fine but I suspect the hits are not updating. Thanks
  •  
  • Replied by admin on Saturday, September 24 2022, 12:06 AM · Hide· #3
    I see. Maybe it was your server caching. Have you tried to re-install the module?
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by testos on Saturday, September 24 2022, 03:17 AM · Hide· #4
    Yes please. I re-installed the module but that did not help. Also, I tested a couple of the articles just to make sure. Surprisingly, the hits are updating fine even with the joomla caching enabled.
  •  
  • Replied by testos on Monday, September 26 2022, 01:45 AM · Hide· #5
    Please I think I see the problem. Let's say I need to show the top 5 most popular articles on my website in the last 7 days. It would be great if Minifrontpage could go through all the published articles on the website and then select the top 5 articles with the most hits in the last 7 days.

    However, it appears, if you select 1 week, Minifrontpage checks for only the articles created in the last 7 days and then re-arranges them by hits.

    Another problem with this approach is that, even if you have thousands of articles, but have not created a new article in the last week then the module will be empty. Also, let's say you created 2 new articles 3 months ago, choosing 1 day, 3 days, 1 month, or "custom" days of less than 90, will not work, and even if you choose 3 months, the module will only show 2 articles instead of 5 which doesn't look good.

    Please is there a way to fix that? Thanks very much.
  •  
  •  
    Replied by admin on Monday, September 26 2022, 01:51 PM · Hide· #6
    It would be great if Minifrontpage could go through all the published articles on the website and then select the top 5 articles with the most hits in the last 7 days.
    Joomla doesn't record when certain articles get hits. So you can't get it without additional compoment.

    However, it appears, if you select 1 week, Minifrontpage checks for only the articles created in the last 7 days and then re-arranges them by hits.

    Yes it is designed that way, based on what joomla provided.

    Another problem with this approach is that, even if you have thousands of articles, but have not created a new article in the last week then the module will be empty. Also, let's say you created 2 new articles 3 months ago, choosing 1 day, 3 days, 1 month, or "custom" days of less than 90, will not work, and even if you choose 3 months, the module will only show 2 articles instead of 5 which doesn't look good.
    The combination of using hits + time range is intended for using in a busy news / portal website, so you can create something like, what news is trending in a day, a week, a month and so on. If your website doesn't update that often then simply use All Time time range, or use a longer custom days such as 900 for 3 years.
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
Your Response
Please login first in order for you to submit comments