- Posts: 23
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- K2 Content Module - Time range not working as expected.
K2 Content Module - Time range not working as expected.
- Tyler Ancell
- Topic Author
- Offline
- Junior Member
Less
More
8 years 8 months ago #150724
by Tyler Ancell
Replied by Tyler Ancell on topic K2 Content Module - Time range not working as expected.
Please Log in or Create an account to join the conversation.
- Tyler Ancell
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 23
8 years 8 months ago #150731
by Tyler Ancell
Replied by Tyler Ancell on topic K2 Content Module - Time range not working as expected.
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
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 8 months ago #150733
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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?
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 23
8 years 8 months ago #150735
by Tyler Ancell
Replied by Tyler Ancell on topic K2 Content Module - Time range not working as expected.
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 23
8 years 8 months ago #150748
by Tyler Ancell
Replied by Tyler Ancell on topic K2 Content Module - Time range not working as expected.
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 23
8 years 8 months ago #150772
by Tyler Ancell
Replied by Tyler Ancell on topic K2 Content Module - Time range not working as expected.
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
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.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
8 years 8 months ago #150785
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic K2 Content Module - Time range not working as expected.
@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.
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
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 8 months ago #150786
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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.
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 23
8 years 8 months ago - 8 years 8 months ago #150809
by Tyler Ancell
Replied by Tyler Ancell on topic K2 Content Module - Time range not working as expected.
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!
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.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
8 years 8 months ago #150816
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic K2 Content Module - Time range not working as expected.
@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.
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.
- Forum
- K2 Community Forum
- English K2 Community
- K2 Content Module - Time range not working as expected.