Keyword

K2 Content Module - Time range not working as expected.

  • Tyler Ancell
  • Tyler Ancell's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 8 months ago #150724 by Tyler Ancell

Please Log in or Create an account to join the conversation.

  • Tyler Ancell
  • Tyler Ancell's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 8 months ago #150731 by Tyler Ancell
I've posted the link to my site, though, I'm not sure how that will help - all I've changed was the html :(

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 8 months ago #150733 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Content Module - Time range not working as expected.
It does help. It is not an issue of your overrides. I accessed your site from three different browsers and the hits where not registering.
Is your server located behind or using a proxy?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Tyler Ancell
  • Tyler Ancell's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 8 months ago #150735 by Tyler Ancell
It's cached right now with a cron job set up to clear cache every 12 hours, hits refresh on the front end at that time. Hits are registering in the backend though.

Please Log in or Create an account to join the conversation.

  • Tyler Ancell
  • Tyler Ancell's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 8 months ago #150748 by Tyler Ancell
Actually, I'm wrong. The hits were not being added into the backend. I've made adjustments and hits are now being recorded properly, however, I did leave caching disabled for over a day and the most popular items were still not being populated correctly. I had the time range set to 1 day, and it still showed zero items.

Please Log in or Create an account to join the conversation.

  • Tyler Ancell
  • Tyler Ancell's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 8 months ago #150772 by Tyler Ancell
Hits have been recording since my last post, still no change in how "Most Popular" is showing.

1 day, 3 days, and 1 week show nothing

2 weeks shows one item

1 month shows two items

3 month shows eight items

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #150785 by Lefteris
@Tyler Ancell

The time range filter is applied on the items creation date not on the item hits. So setting this to 1 week for example will first fetch the last week's items ( if any ) and then sort them by the hits counter.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 8 months ago #150786 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Content Module - Time range not working as expected.
Have items been inserted items in that period?
Keep in mind that if no items have been inserted in the past x period, no items will be shown. Most popular items within a week, means that the module will fetch the most popular items that were created within the past week.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Tyler Ancell
  • Tyler Ancell's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 8 months ago - 8 years 8 months ago #150809 by Tyler Ancell
If that's the case, then its really not working as I thought it was supposed to :(

What I thought to be the case, was that the time range would show the most popular items over that time range. Like a "whats trending" sort of thing.

Something like this:

www.joomlahill.com/demos/5-recently-hit-articles

or

extensions.joomla.org/extensions/extension/news-display/popular-content/most-popular-content-by-date-range
(This one looks fairly simple, but my php skills are probably insufficient to rewrite this to work with K2 items rather than Joomla articles)

Would there be a way to duplicate and override the K2 content module and make it so it displays the most popular items within a specific time range, regardless of when the items were created?


Also, thank you for all your help so far, it's definitely appreciated!
Last edit: 8 years 8 months ago by Tyler Ancell.

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #150816 by Lefteris
@Tyler Ancell

No, that's not so easy. In order to have trending items the way you want you need to track the time each item is hit. This is not done by K2, so this means that you need a third-party extension for that.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum