- Posts: 17
- Thank you received: 0
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
Question Hot Thread Icons
- freddiepete
-
Topic Author
- Offline
- Junior Member
-
Less
More
15 years 10 months ago #50866
by freddiepete
Replied by freddiepete on topic Re: Hot Thread Icons
Good idea, any coders out there willing to try this out?
Please Log in or Create an account to join the conversation.
15 years 10 months ago #50877
by fxstein
We love stars on the Joomla Extension Directory .
Replied by fxstein on topic Re: Hot Thread Icons
sozzled wrote:
Sorry but that would not work. This query would calculate hits for every thread on your system.
First off that information already exists in the messages table, second the absolute number is not really any good for that. You need to calculate the number of views over a time period (e.g. the last 7 days) and optimally you would want to compare it to the system average of views and pick ones that are significant outliers. For example if the system average for views per thread per day is 10 and you have a thread that received 50 or more, you would want to mark it as hot.
If 3 months later that same thread only gets 5 views per day, it would no longer show as hot.
Now - all of that information is currently no collected by the forum. It is a great idea and I have some thoughts on how to make this happen while also making it scale for any size site, without the need for extra queries.
This wont happen for K1.6 though. We need another data model change that is already done in the Kunena 2.0 trunk plus an extra history table that stores views over time.
Great idea though and definitely something I would like to add to a future release.
SELECT thread, SUM(hits), subject, catid, id FROM #__fb_messages GROUP BY thread ORDER BY total_views DESC LIMIT 0,10;
Sorry but that would not work. This query would calculate hits for every thread on your system.
First off that information already exists in the messages table, second the absolute number is not really any good for that. You need to calculate the number of views over a time period (e.g. the last 7 days) and optimally you would want to compare it to the system average of views and pick ones that are significant outliers. For example if the system average for views per thread per day is 10 and you have a thread that received 50 or more, you would want to mark it as hot.
If 3 months later that same thread only gets 5 views per day, it would no longer show as hot.
Now - all of that information is currently no collected by the forum. It is a great idea and I have some thoughts on how to make this happen while also making it scale for any size site, without the need for extra queries.
This wont happen for K1.6 though. We need another data model change that is already done in the Kunena 2.0 trunk plus an extra history table that stores views over time.
Great idea though and definitely something I would like to add to a future release.
We love stars on the Joomla Extension Directory .
Please Log in or Create an account to join the conversation.
15 years 10 months ago #50879
by sozzled
Blue Eagle vs. Crypsis reference guide
Read my blog and
Replied by sozzled on topic Re: Hot Thread Icons
Yes, I agree, fxstein, and the SQL query I gave above was only intended to be used as an example. Yes, it's necessary to put a date range into the query to isolate only, say, the past week or month or whatever timeframe is more appropriate for each user's purposes.
It's an interesting request and one that, I believe, would be useful to the project but, as you say, it won't happen at this present time. Something for the future and something for others to experiment with.
It's an interesting request and one that, I believe, would be useful to the project but, as you say, it won't happen at this present time. Something for the future and something for others to experiment with.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
15 years 10 months ago #51464
by Matias
Replied by Matias on topic Re: Hot Thread Icons
Instead of hits, I would use replies when deciding if the topic is hot or not. If there have been a lot of replies in X last days, topic would be hot. We already store that information and currently we are also reading that data anyway..
Please Log in or Create an account to join the conversation.
Time to create page: 0.268 seconds